How to lay out a table¶
Tables¶
- Put a table in
af-table-wrap(raised, no border, scrolls sideways when narrow). Never box a table again inside a card. - Headers have no fill:
label-s(sentence-case sans) infg-subtle, left-aligned (right-aligned over numbers), with a 1pxlinerule beneath. - Divide rows with
line-subtle. No zebra stripes, no vertical rules. Hover is a faintfgtint; the selected row (aria-selected="true") takesselectedand a 2pxfgedge on its first cell. - Lead with the tail number. A hangar fleet table reads: ID, environment, harness and model, status, CPU, age, cost.
- Right-align numbers with
af-numand tabular figures. Truncate descriptions with an ellipsis; never truncate an ID or a number. - A row that needs a person (
is-attention) takes a 3pxstatus-approvaledge on its first cell; nothing in a table is tinted. Failed and denied rows show their status mark and word only. A selected lit row keeps the status edge and says "selected" with its fill. - Draw in-cell bars (CPU, budget) as 2px hairlines:
fg-mutedfill on alinetrack, never a status color.
Part of Data, a chapter of the brand book. See also Status and Products.