Navigation
Breadcrumbs
Breadcrumbs show where a web page sits below a destination and link back up to each level, such as Payments › Projects › Studio.
In kanso-ui as Breadcrumbs
Anatomy
- Landmark:
<nav aria-label="Breadcrumbs">. - List (
k-crumbs): an ordered list, 14px, 6px between parts, wrapping when it runs out of room. - Link: one per level above the current page,
ink-muted, underlined inoutline, at least 32px tall. - Separator (
k-crumbs__sep): thechevron_righticon at 18px, hidden from screen readers. - Current page: plain text in
inkat weight 600, witharia-current="page".
Measurements
From the design’s stylesheet, each design token with the value kanso-ui gives it in light.
| Class | Property | Value |
|---|---|---|
k-crumbs | gap | 6px |
padding | 0 | |
font | 500 14px/20px font-plain |
Tokens used
| Design token | In kanso-ui | Light | Dark |
|---|---|---|---|
ink | --kui-color-ink | #1a1a1a | #ececec |
ink-muted | --kui-color-ink-muted | #5c5c5c | #b3b3b3 |
outline | --kui-color-outline | #8a8a8a | #8c8c8c |
paper | --kui-color-paper | #fafafa | #121212 |
focus-ring | --kui-color-focus-ring | #1a1a1a | #ececec |
size-control-sm | --kui-sizing-kanso-control-sm | 32px | 32px |
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 |