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
Variants and sizes
k-table: the compact table, with 16px (space-lg) cell padding.k-num: right-aligned mono with tabular figures, for amounts, durations and counts: "46.90", "50 min", "3 items".- Status badges:
k-badge--positivefor Done,k-badge--cautionfor Late, the neutralk-badgefor Upcoming and Paid.
States
- Row hover:
surface-sunkenunder the pointer, to help the eye follow a row across. It does not make the row a control. - Status: the badge word says it, "Done", "Late", "Upcoming"; the mark's fill and the badge colour are extra.
- Focus: the wrap takes focus and shows the 2px
focus-ring, so keyboard users can scroll it. Links and buttons in cells keep their own ring.
Do and don’t
Do
Right-align figures in mono so the decimal commas line up.
Write the unit with the figure.
Keep each row to one line and let the wrap scroll.
Don’t
Tell a status by colour alone: the badge always has its word.
Stripe rows or draw vertical lines; the hairlines are enough.
Centre columns.
What you provide
- The caption.
- The columns: header labels, and which ones hold figures.
- The rows: time, item name, the mark's type and state, the detail figure with its unit, the status label.