Theme

Colours

The swatch shows the active theme. The light and dark columns are the values from tokens.generated.css.

Page background

GradientBackgroundC1 → GradientBackgroundC2 at 135deg. Applied to the root element in styles/theme.css, so it is the default background on every page.

Theme colour tokens
SwatchTailwindCSS variableLightDark
bg-background--theme-color-background#f2f2f2#262626
bg-gradient-background-c1--theme-color-gradient-background-c1#ffffff#262626
bg-gradient-background-c2--theme-color-gradient-background-c2#f2f2f2#000000
bg-max-contrast--theme-color-max-contrast#000000#ffffff
bg-contrast--theme-color-contrast#4d4d4d#e5e5e5
bg-medium-contrast--theme-color-medium-contrast#808080#b2b2b2
bg-max-blend--theme-color-max-blend#ffffff#000000
bg-blend--theme-color-blend#e5e5e5#4d4d4d
bg-medium-blend--theme-color-medium-blend#b2b2b2#808080
bg-menu-background--theme-color-menu-background#f2f2f2#000000
bg-menu-selection--theme-color-menu-selection#e5e5e5#4d4d4d
bg-interaction--theme-color-interaction#e2ff00#e2ff00
bg-interaction-contrast--theme-color-interaction-contrast#000000#000000
bg-interaction-blend--theme-color-interaction-blend#ffffff#ffffff
bg-uber-primary-border--theme-color-uber-primary-border#000000#e2ff00
bg-chrome--theme-color-chrome#e5e5e5#4d4d4d
bg-table-0--theme-color-table-0#e5e5e5#262626
bg-table-1--theme-color-table-1#f2f2f2#333333
bg-success--theme-color-success#18a957#18a957
bg-success-blend--theme-color-success-blend#e8f6ee#07331a
bg-warning--theme-color-warning#ffbb38#ffbb38
bg-warning-blend--theme-color-warning-blend#fff8eb#4d3811
bg-error--theme-color-error#df1642#df1642
bg-error-blend--theme-color-error-blend#fce8ec#430714
bg-primary-grey-1--theme-color-primary-grey-1#515151#ededed
bg-primary-grey-2--theme-color-primary-grey-2#252525#f6f6f6
bg-primary-blue-1--theme-color-primary-blue-1#50616b#d5e7ec
bg-primary-blue-2--theme-color-primary-blue-2#243a46#eaf3f5
bg-primary-green-1--theme-color-primary-green-1#485d58#e8f1ea
bg-primary-green-2--theme-color-primary-green-2#1a342e#f4f8f5
bg-primary-brown-1--theme-color-primary-brown-1#5a5b57#e5e6e0
bg-primary-brown-2--theme-color-primary-brown-2#31322d#f2f2ef
bg-secondary-grey-1--theme-color-secondary-grey-1#ededed#515151
bg-secondary-grey-2--theme-color-secondary-grey-2#f6f6f6#252525
bg-secondary-blue-1--theme-color-secondary-blue-1#d5e7ec#50616b
bg-secondary-blue-2--theme-color-secondary-blue-2#eaf3f5#243a46
bg-secondary-green-1--theme-color-secondary-green-1#e8f1ea#485d58
bg-secondary-green-2--theme-color-secondary-green-2#f4f8f5#1a342e
bg-secondary-brown-1--theme-color-secondary-brown-1#e5e6e0#5a5b57
bg-secondary-brown-2--theme-color-secondary-brown-2#f2f2ef#31322d
bg-accent-1--theme-color-accent-1#d5fd8b#d5fd8b
bg-accent-2--theme-color-accent-2#f6ffb9#f6ffb9
bg-chart-primary-blue-1--theme-color-chart-primary-blue-1#4892ab#b2d6e0
bg-chart-primary-yellow-1--theme-color-chart-primary-yellow-1#e2e466#faf3a1
bg-chart-primary-green-1--theme-color-chart-primary-green-1#92bb9c#c1dbca
bg-chart-primary-blue-2--theme-color-chart-primary-blue-2#3e6a7c#779aaa
bg-chart-primary-yellow-2--theme-color-chart-primary-yellow-2#8d8e79#c0c0b3
bg-chart-primary-green-2--theme-color-chart-primary-green-2#5a7c77#92b0a6
bg-chart-secondary-blue-1--theme-color-chart-secondary-blue-1#b2d6e0#4892ab
bg-chart-secondary-yellow-1--theme-color-chart-secondary-yellow-1#faf3a1#e2e466
bg-chart-secondary-green-1--theme-color-chart-secondary-green-1#c1dbca#92bb9c
bg-chart-secondary-blue-2--theme-color-chart-secondary-blue-2#779aaa#3e6a7c
bg-chart-secondary-yellow-2--theme-color-chart-secondary-yellow-2#c0c0b3#8d8e79
bg-chart-secondary-green-2--theme-color-chart-secondary-green-2#92b0a6#5a7c77

Typography

Each utility rendered in its own class. Sizes change once, at the md breakpoint (800px) - the active bucket is the one in bold.

Buttons

Three colour treatments of one shape. Every colour is a semantic token, so the same markup inverts with the theme - uber-primary keeps its yellow but drops its outline in the dark theme.

Hover, press and disable each button to see its states. They change colour only, over the system 250ms. See docs/components/button.md.

Checkboxes

A 24px square with its label. The border turns interaction yellow on hover; ticking fills the box with it and keeps the uber-primary border.

Clicking the label toggles the box. The last one has no label, for a table header or a cell whose column heading already names it. See docs/components/checkbox.md.

Radios

The same circle-and-label shape as the checkbox. The border turns interaction yellow while hovering an unselected option; selecting one fills a dot in max-contrast and leaves the border alone.

Sind Sie bereits Kunde?

Stacked, with states

Nothing selected, and invalid

Clicking a label selects its option. The group carries the question, so each set has its own aria-label or aria-labelledby. See docs/components/radio-group.md.

Switches

The thumb slides end to end and the label shifts across to the side it left. The track is sized to the longer label and holds that width in both states, so toggling never resizes it.

Longer labels

Toggle one and watch the track hold its width while the thumb slides. The labels report the state rather than what the switch controls, so each one carries its own aria-label. See docs/components/switch.md.

Toggles

A pill that stays down once chosen. Pressed fills with max-contrast and adds a tick; the tick is only in the layout while pressed, so an unpressed pill is narrower.

Either or, as a group

Several at once

The group carries what the pills filter, so each set has its own aria-label. See docs/components/toggle.md.

Selects

An underlined trigger with a chevron. The popup opens flush beneath it and takes the trigger's width, so the surrounding layout decides how wide both are.

A single option disabled

Labels longer than the trigger

The popup matches the trigger, so a label wider than the trigger is truncated rather than widening the menu. Size the trigger to the content it has to show. See docs/components/select.md.

Tables

Rows in one colour, separated by a gap, that lighten under the pointer. Below md the header is hidden and every row becomes a card, with each cell repeating its column heading beside the value. The second row is selected.

Investment Regulations.pdfDescriptionIssue date 01.2026
Appendix to the Pension Fund Regulations.pdf
Investment Regulations.pdfDescriptionIssue date 01.2025

See docs/components/table.md.

Page title, sections and fields

The read-only display vocabulary. Every FieldGrid cell is the same width and every Field splits its cell in half, so labels line up across both columns.

Page Title

Section Sub-title

First name
John
Name
Elway
Social security number
012.3456.7890.12
Sex
Male
Date of birth
11.3.1964

Grouped and empty values

Address
Hauptstrasse 315d9876 Eggersriet
Addition
-
P.O. Box
-

Form fields

A label, a control and the text underneath. The description turns into an error without changing the layout.

Correspondence Settings

Subject: Tax documents

PensFlex – Company Name

Street and number

Text input and select share one underline.

Document delivery

You can choose whether you want to receive new documents by post or online.

Notifications

Please select at least one channel.

Textareas

Multi-line text on the input underline. It starts one line tall and grows as you type, up to a maximum height.

Message

0 of 500 characters

See docs/components/textarea.md.

File inputs

A secondary button that opens the file picker. The caller keeps the chosen files; here their names are listed.

See docs/components/file-input.md.

Summary cards

Coloured card with a heading, a few figures and a link onwards. Pale in the light theme, dark in the dark theme.

Benefits

Projected retirement assets
325’461.35 CHF
Disability pension
21’456.00 CHF

Financing

Savings employer
5’960.40 CHF
Savings employee
-

Tones: blue and brown. The card is a region named by its heading. See docs/components/summary-card.md.

Call-to-action banners

Full-width strip with an icon tile, a title, a line of text and one button. Pale in the light theme, dark in the dark theme.

Personal pension certificate

Download a personal pension certificate for this pension relationship.

Unavailable action

The button is disabled until the action exists.

The icon tile is hidden below md. See docs/components/cta-banner.md.

Action cards

Card with an icon header, a line of text and one button. The tone sets a darker header over a paler body in the light theme, and a lighter header over a darker body in the dark theme.

Investment strategy

Evaluate and select the right investment strategy for you.

Start

Departure

Guidance through the necessary steps when leaving your employer.

Start

Purchase simulation

Analyse the effects of a regulatory purchase.

View

Home ownership

Analyse the effects of an advance withdrawal for home ownership.

View

Salary simulation

See the effects of a change in salary on your pension performance.

View

See docs/components/action-card.md.

Info notes

Small explanatory text with an info icon, set under a chart or a figure.

Monthly custody account value incl. savings contributions, deposits/purchases made. If you leave during the year, a pro rata correction will be made.

The icon is decorative. See docs/components/info-note.md.

Contact cards

A contact's role, image, name, email and phone. Without an image the card shows a neutral placeholder, and a missing detail shows a dash.

Your PensExpert advisor

Your bank advisor

-

-

-

Email and phone render as mailto and tel links; a missing detail shows a dash. See docs/components/contact-card.md.

Charts

Recharts composed from shared primitives: horizontal gridlines only, Swiss grouped value ticks, square legend swatches and a lime callout on the active mark. Each use case gets its own chart component.

Pension capital chart

  • Main depot
  • Additional depots

Retirement assets chart

Salary history chart

  • AHV salary
  • Salary (savings)
  • Salary (risk)

Callout

January 2026

982’673.15 CHF

Legend with values

Pledge
500’000.00 CHF
Early withdrawal for home ownership
300’000.00 CHF

Legend in a row

  • AHV salary
  • Salary (savings)
  • Salary (risk)

Hover or focus the chart and use the arrow keys to move the callout. Colours are theme tokens, so the chart follows the theme. See docs/components/charts.md.

Layout

The four breakpoints the theme defines. Tailwind's defaults are cleared, so these are the whole set - there is no 2xl. Resize the window to watch them fire.

Active breakpoint

extra-small (below 680px)
Responsive breakpoints
Prefixrempx
sm:42.5rem680px
md:50rem800px
lg:75rem1200px
xl:90rem1440px

Sizing uses two buckets only, so a size change belongs at md: and nowhere else. Navigation is the exception: it changes at md: and lg:. See docs/theme/layout.md.

Sizing

The three spacing which the theme defines. Tailwinds defaults are preserved.

Spacing

1

space-1

12px

2

space-2

16px

3

space-3

40px