Content
List item
A list item is one row of a list that sits flat on paper, such as a payment in a statement, an entry in the timeline or a project in a web list.
In kanso-ui as ListItem
Anatomy
- Lead: an avatar (
k-avatar, 36px) or the time (k-item__time, mono, 44px wide so times line up). - Body (
k-item__body): the title (k-item__title, 16px medium) and the meta line (k-item__meta, 13px,ink-muted), which opens with a status mark (k-mark) in the timeline. - Trail (
k-item__trail): a mono figure with its sign, or a chevron (k-item__chevron) on a row that opens something. - Hairline: 1px of
dividerabove every row after the first (.k-item + .k-item).
Measurements
From the design’s stylesheet, each design token with the value kanso-ui gives it in light.
| Class | Property | Value |
|---|---|---|
k-list | padding | 0 |
k-list--inset | padding | 0 16px (space-lg) |
Tokens used
| Design token | In kanso-ui | Light | Dark |
|---|---|---|---|
paper | --kui-color-paper | #fafafa | #121212 |
ink | --kui-color-ink | #1a1a1a | #ececec |
ink-muted | --kui-color-ink-muted | #5c5c5c | #b3b3b3 |
divider | --kui-color-divider | #e3e3e3 | #333333 |
surface-sunken | --kui-color-surface-sunken | #f0f0f0 | #262626 |
accent-soft | --kui-color-accent-soft | #e9e9e9 | #2b2b2b |
on-accent-soft | --kui-color-on-accent-soft | #1a1a1a | #ececec |
positive | --kui-color-positive | #1e6b35 | #7bd99a |
caution | --kui-color-caution | #b25b00 | #ffb870 |
accent | --kui-color-accent | #1a1a1a | #ececec |
focus-ring | --kui-color-focus-ring | #1a1a1a | #ececec |
size-row | --kui-sizing-kanso-row | 60px | 60px |
size-row-compact | --kui-sizing-kanso-row-compact | 44px | 44px |
space-lg | --kui-spacing-kanso-lg | 16px | 16px |
space-md | --kui-spacing-kanso-md | 12px | 12px |
space-2xs | --kui-spacing-kanso-2xs | 2px | 2px |
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 |