Navigation
Tabs
Switch between related views in the same area of a page.
Anatomy
- Selected tab and underline
- Other tab
- Tab panel
Live example
12 swatches across two colour scales.
Updated after the latest contrast review.
Check text and surface pairings in dark mode.
Design tokens used
| Category | Token | Value | Where it’s used |
|---|---|---|---|
| Colour | --cc-foreground | — | Unselected labels on hover |
--cc-muted-foreground | — | Unselected labels and panel text | |
--cc-border | — | Rule beneath the tab list | |
--cc-primary | — | Selected label and underline | |
--cc-focus-ring | — | Keyboard focus ring |