Content
Table
A table sets records that share the same fields in columns so people can read across and compare, such as the timeline's entries on the web.
In kanso-ui as Table
Anatomy
- Name: a
<caption>("Timeline"), oraria-labelledbypointing at a visible title. - Header row:
thcells, 40px tall, 13pxink-muted, adividerline under them. - Body rows: 44px (
size-row-compact), withdividerhairlines between rows and none under the last. - Cells: the time in mono, the item with its status mark, the detail as a right-aligned mono figure (
k-num), the status as a badge. - Wrap:
k-table-wrap, which scrolls sideways on narrow widths.
Measurements
From the design’s stylesheet, each design token with the value kanso-ui gives it in light.
| Class | Property | Value |
|---|---|---|
k-table | width | 100% |
font | 400 14px/20px font-plain |
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 |
container | --kui-color-container | #e9e9e9 | #2b2b2b |
positive-soft | --kui-color-positive-soft | #ddf2e2 | #123a20 |
on-positive-soft | --kui-color-on-positive-soft | #0b3a1b | #c6f2d2 |
caution | --kui-color-caution | #b25b00 | #ffb870 |
caution-soft | --kui-color-caution-soft | #ffe7cc | #4a2a00 |
on-caution-soft | --kui-color-on-caution-soft | #5c2e00 | #ffddb3 |
focus-ring | --kui-color-focus-ring | #1a1a1a | #ececec |
size-row-compact | --kui-sizing-kanso-row-compact | 44px | 44px |
space-lg | --kui-spacing-kanso-lg | 16px | 16px |
space-sm | --kui-spacing-kanso-sm | 8px | 8px |
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 |
font-voice | --kui-typography-font-family-voice | 'Roboto Serif', 'Iowan Old Style', Georgia, serif | 'Roboto Serif', 'Iowan Old Style', Georgia, serif |