Navigation
App bar
The app bar is the strip at the top of every screen of a product: on the web it holds the product, search, Add, notifications and the signed-in person, and on phones it becomes the top bar above the page title.
In kanso-ui as AppBar
Anatomy
- Product (
k-appbar__product): the product's accent square (k-appbar__dot) and the product's name in the voice face. - Search (
k-search): a pill onsurface-sunken, centred between twok-appbar__spacers on the web. - Add: the strong button,
k-btn k-btn--ink k-btn--md, with theaddicon. - Notifications: an icon button (
k-iconbtn) withnotifications. - Account: the signed-in person (
k-avatar k-avatar--ink, 36px) inside a 48pxk-iconbtn. - Page title block (
k-pagehead): the date line (k-pagehead__date,t-label) and the title (k-pagehead__title,t-headline).
Measurements
From the design’s stylesheet, each design token with the value kanso-ui gives it in light.
| Class | Property | Value |
|---|---|---|
k-appbar | gap | 16px (space-lg) |
height | 64px | |
padding | 0 24px (space-2xl) | |
min-width | 0 |
Tokens used
| Design token | In kanso-ui | Light | Dark |
|---|---|---|---|
paper | --kui-color-paper | #fafafa | #121212 |
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 |
accent | --kui-color-accent | #1a1a1a | #ececec |
focus-ring | --kui-color-focus-ring | #1a1a1a | #ececec |
space-xs | --kui-spacing-kanso-xs | 4px | 4px |
space-lg | --kui-spacing-kanso-lg | 16px | 16px |
space-2xl | --kui-spacing-kanso-2xl | 24px | 24px |
radius-pill | --kui-radius-kanso-pill | 999px | 999px |
size-control-md | --kui-sizing-kanso-control-md | 40px | 40px |
size-control-lg | --kui-sizing-kanso-control-lg | 48px | 48px |
size-avatar-md | --kui-sizing-kanso-avatar-md | 36px | 36px |
size-icon-md | --kui-sizing-kanso-icon-md | 20px | 20px |
size-icon-lg | --kui-sizing-kanso-icon-lg | 24px | 24px |
font-voice | --kui-typography-font-family-voice | 'Roboto Serif', 'Iowan Old Style', Georgia, serif | 'Roboto Serif', 'Iowan Old Style', Georgia, serif |
t-label | --kui-typography-t-label-size | 13px | 13px |
t-headline | --kui-typography-t-headline-size | 34px | 34px |