Navigation
Navigation pane
The navigation pane is the column on the left of a product on the web that holds the top-level destinations and, below them, the person's projects; it replaces the navigation bar on windows 840px and wider.
Designed, coming to kanso-ui
Anatomy
- Container (
k-pane): 248px wide, flat onpaper, 20px above and below, 12px at the sides. - Destination (
k-pane__item): a 44px link with a 22px icon and a label. - Selection bar: a 3 × 18px
accentbar inside the left edge of the current item. - Section heading (
k-pane__heading): 13px,ink-muted, such as "Projects". - Project lead: a group avatar (
k-avatar k-avatar--sm k-avatar--group), a rounded square with the project's initial. - Trailing figure (
k-pane__trail): the project's balance in mono, with its sign.
Measurements
From the design’s stylesheet, each design token with the value kanso-ui gives it in light.
| Class | Property | Value |
|---|---|---|
k-pane | gap | 4px (space-xs) |
padding | 20px (space-xl) 12px (space-md) | |
width | 248px | |
max-width | 100% |
Tokens used
| Design token | In kanso-ui | Light | Dark |
|---|---|---|---|
paper | --kui-color-paper | #fafafa | #121212 |
surface | --kui-color-kanso-surface | #ffffff | #1c1c1c |
surface-sunken | --kui-color-surface-sunken | #f0f0f0 | #262626 |
shadow-1 | --kui-shadow-kanso-1 | 0px 1px 2px 0px rgba(0, 0, 0, 0.06), 0px 2px 8px 0px rgba(0, 0, 0, 0.04) | 0px 1px 2px 0px rgba(0, 0, 0, 0.5) |
ink | --kui-color-ink | #1a1a1a | #ececec |
ink-muted | --kui-color-ink-muted | #5c5c5c | #b3b3b3 |
accent | --kui-color-accent | #1a1a1a | #ececec |
positive | --kui-color-positive | #1e6b35 | #7bd99a |
container | --kui-color-container | #e9e9e9 | #2b2b2b |
focus-ring | --kui-color-focus-ring | #1a1a1a | #ececec |
radius-md | --kui-radius-kanso-md | 12px | 12px |
radius-sm | --kui-radius-kanso-sm | 8px | 8px |
space-xs | --kui-spacing-kanso-xs | 4px | 4px |
space-md | --kui-spacing-kanso-md | 12px | 12px |
space-lg | --kui-spacing-kanso-lg | 16px | 16px |
space-xl | --kui-spacing-kanso-xl | 20px | 20px |
size-avatar-sm | --kui-sizing-kanso-avatar-sm | 28px | 28px |
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 |
font-mono | --kui-typography-font-family-mono | 'Roboto Mono', ui-monospace, 'SF Mono', Menlo, monospace | 'Roboto Mono', ui-monospace, 'SF Mono', Menlo, monospace |