Navigation
Tabs
Tabs switch between views of one thing without leaving the page, such as the payments, members and settings of a project.
In kanso-ui as Tabs
Anatomy
- Tab list (
k-tabs): a row with 24px between tabs and adividerhairline below. - Tab (
k-tab): a 48px button with a one- or two-word label. - Indicator: a 3px
inkbar under the selected tab, over the hairline. - Panel: the selected tab's content, right below the list.
Measurements
From the design’s stylesheet, each design token with the value kanso-ui gives it in light.
| Class | Property | Value |
|---|---|---|
k-tabs | gap | 24px (space-2xl) |
padding | 4px (space-xs) 4px (space-xs) 1px |
Tokens used
| Design token | In kanso-ui | Light | Dark |
|---|---|---|---|
ink | --kui-color-ink | #1a1a1a | #ececec |
ink-muted | --kui-color-ink-muted | #5c5c5c | #b3b3b3 |
divider | --kui-color-divider | #e3e3e3 | #333333 |
paper | --kui-color-paper | #fafafa | #121212 |
focus-ring | --kui-color-focus-ring | #1a1a1a | #ececec |
space-2xl | --kui-spacing-kanso-2xl | 24px | 24px |
size-control-lg | --kui-sizing-kanso-control-lg | 48px | 48px |
font-plain | --kui-typography-font-family-plain | 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif | 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif |
t-label-strong | --kui-typography-t-label-strong-size | 15px | 15px |