Navigation
Navigation bar
The navigation bar is the row of three to five destinations at the bottom of a phone screen; use it to move between a product's top-level sections.
In kanso-ui as NavigationBar
Anatomy
- Container (
k-navbar):surface, adividerhairline on top, 72px tall, one equal column per destination. - Destination (
k-navbar__item): a link that fills its column. - Pill (
k-navbar__pill): 56 × 32px behind the icon,inkwhen current. - Icon: Material Symbols Rounded at 24px, outlined at rest, filled when current.
- Label: one word at 12px (
t-caption), always visible.
Measurements
From the design’s stylesheet, each design token with the value kanso-ui gives it in light.
| Class | Property | Value |
|---|---|---|
k-navbar | height | 72px |
padding | 8px 4px 12px |
Tokens used
| Design token | In kanso-ui | Light | Dark |
|---|---|---|---|
surface | --kui-color-kanso-surface | #ffffff | #1c1c1c |
divider | --kui-color-divider | #e3e3e3 | #333333 |
ink | --kui-color-ink | #1a1a1a | #ececec |
on-ink | --kui-color-on-ink | #fafafa | #121212 |
ink-muted | --kui-color-ink-muted | #5c5c5c | #b3b3b3 |
surface-sunken | --kui-color-surface-sunken | #f0f0f0 | #262626 |
focus-ring | --kui-color-focus-ring | #1a1a1a | #ececec |
radius-md | --kui-radius-kanso-md | 12px | 12px |
space-xs | --kui-spacing-kanso-xs | 4px | 4px |
size-control-lg | --kui-sizing-kanso-control-lg | 48px | 48px |
size-icon-lg | --kui-sizing-kanso-icon-lg | 24px | 24px |
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-caption | --kui-typography-t-caption-size | 12px | 12px |