Content
Divider
A divider is the 1px hairline that separates content on paper, and its accented form, the now line, marks the current time inside the timeline.
In kanso-ui as Separator
Anatomy
Hairline:
- A 1px line of
divider, the full width of its container, with no margin.
Now line (k-now):
- Label (
k-now__label): "Now · 14:32", anaccentpill withon-accenttext, 26px tall. - Line (
k-now__line): 2px ofaccent, filling the rest of the row.
Measurements
From the design’s stylesheet, each design token with the value kanso-ui gives it in light.
| Class | Property | Value |
|---|---|---|
k-divider | height | 1px |
border | 0 |
Tokens used
| Design token | In kanso-ui | Light | Dark |
|---|---|---|---|
divider | --kui-color-divider | #e3e3e3 | #333333 |
accent | --kui-color-accent | #1a1a1a | #ececec |
on-accent | --kui-color-on-accent | #fafafa | #121212 |
paper | --kui-color-paper | #fafafa | #121212 |
outline | --kui-color-outline | #8a8a8a | #8c8c8c |
radius-pill | --kui-radius-kanso-pill | 999px | 999px |
space-md | --kui-spacing-kanso-md | 12px | 12px |
space-xl | --kui-spacing-kanso-xl | 20px | 20px |
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 |