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.
| Swatch | Tailwind | CSS variable | Light | Dark |
|---|---|---|---|---|
| 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.
The quick brown fox
- class
- type-h1
- family
- standard
- weight
- 400
- transform
- —
- size
- 36px / 56px
The quick brown fox
- class
- type-h2
- family
- standard
- weight
- 400
- transform
- —
- size
- 24px / 36px
The quick brown fox
- class
- type-h3
- family
- standard
- weight
- 700
- transform
- —
- size
- 20px / 24px
The quick brown fox
- class
- type-hero
- family
- standard
- weight
- 400
- transform
- —
- size
- 20px / 24px
The quick brown fox
- class
- type-paragraph
- family
- standard
- weight
- 400
- transform
- —
- size
- 14px / 16px
The quick brown fox
- class
- type-paragraph-strong
- family
- standard
- weight
- 500
- transform
- —
- size
- 14px / 16px
The quick brown fox
- class
- type-label
- family
- standard
- weight
- 400
- transform
- uppercase
- size
- 14px / 16px
- class
- type-main-menu-button
- family
- standard
- weight
- 400
- transform
- —
- size
- 20px / 20px
- class
- type-button
- family
- condensed
- weight
- 700
- transform
- uppercase
- size
- 14px / 16px
The quick brown fox
- class
- type-filters
- family
- condensed
- weight
- 500
- transform
- —
- size
- 14px / 16px
The quick brown fox
- class
- type-mini
- family
- standard
- weight
- 400
- transform
- —
- size
- 12px / 12px
The quick brown fox
- class
- type-ultra
- family
- condensed
- weight
- 700
- transform
- —
- size
- 64px / 88px
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.
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.
Links
Condensed uppercase text with a trailing arrow. Hovering turns the arrow the interaction colour and leaves the label alone.
In flowing text
Read more about how the portal handles your data, then continue when you are ready.
The arrow is hidden from assistive technology, so the accessible name is the label alone. Pass render to turn one into a router link. See docs/components/link.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.
| Filename | Description |
|---|---|
| Investment Regulations.pdf | DescriptionIssue date 01.2026 |
| Appendix to the Pension Fund Regulations.pdf | |
| Investment Regulations.pdf | DescriptionIssue 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
Text input and select share one underline.
You can choose whether you want to receive new documents by post or online.
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.
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.
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.
StartDeparture
Guidance through the necessary steps when leaving your employer.
StartPurchase simulation
Analyse the effects of a regulatory purchase.
ViewHome ownership
Analyse the effects of an advance withdrawal for home ownership.
ViewSalary simulation
See the effects of a change in salary on your pension performance.
ViewSee 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
| Prefix | rem | px |
|---|---|---|
| sm: | 42.5rem | 680px |
| md: | 50rem | 800px |
| lg: | 75rem | 1200px |
| xl: | 90rem | 1440px |
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
space-1
12px12px
space-2
16px32px
space-3
40px80px
- p-space-1, p-space-2, p-space-3
- m-space-1, m-space-2, m-space-3
- gap-space-1, gap-space-2, gap-space-3
- w-space-1, w-space-2, w-space-3
- size-space-1, size-space-2, size-space-3