Dustin Johnson ← Design Primitives
Design Primitive Reference · Part I · October 2026

Data Tables

Columns, rows, and the working surface. A table is for peers compared by value: each row read across, each column read down, every row the same shape and known by its key. The decisions that keep one legible at five rows and at five hundred: which column leads, how wide each is, how its cells align, how tall the rows are, and what sorting, filtering, selecting, acting and editing do to it.

I. A Table or Cards

Make it a table when the user compares the items by their values, and cards when the user picks one to open. Tables are informational and comparative: every item is a row of values read down a column, identified by a key, and every row has the same shape. Cards are editorial and navigational: every item is a destination, recognised by a picture or a title and read on its own terms, and the items may differ in shape.

Both forms manage a list of things, which is why products confuse them. The split is written once, in Cards I §IV, and this page takes it from there. The decisive questions, in order, with the answer that settles each:

The questionA tableCards
The user's taskCompare items by a value: the fullest, the latest, the late onesChoose one to open
Known byAn identifier and its fieldsA picture or a title
Ordered bySorting on any of several columnsThe eye, scanning
ShapeIdentical, requiredEqual or unequal
ReadDown a column, then across a rowOne card at a time, top to bottom

The specimens on this page are in the ferry operator's timetable office from Modal I: the sailings of Saturday 13 February in the Winter 2026 timetable, out of Ostrand on MV Tern, Skua, Fulmar and Gannet. The dispatcher's question is which sailings are nearly full and which are running late.

Sailings · Sat 13 Feb
07:40On time
Ostrand – Hollin QuayMV Tern184 of 240 booked
08:15On time
Carrow – FenmouthMV Skua96 of 180 booked
09:05Delayed 10 min
Ostrand – CarrowMV Fulmar251 of 320 booked
09:50On time
Hollin Quay – OstrandMV Tern212 of 240 booked
10:30On time
Fenmouth – CarrowMV Gannet64 of 120 booked
11:10Cancelled
Ostrand – Hollin QuayMV Skua138 of 180 booked
SailingVesselStatusBookedSeats
Ostrand – Hollin QuayMV TernOn time184240
Carrow – FenmouthMV SkuaOn time96180
Ostrand – CarrowMV FulmarDelayed 10 min251320
Hollin Quay – OstrandMV TernOn time212240
Fenmouth – CarrowMV GannetOn time64120
Ostrand – Hollin QuayMV SkuaCancelled138180
6 of 10 sailings
Booked at 3 x positions on 2 rows · the eye's path through 6 values 1,353px · no shared edge, no header to sort byBooked ends on one right edge, x = 994 · the path through 6 values 160px, straight down · Booked sorts by a clickThe day's sailings as cards · Wrong: the comparison the page exists for is goneThe same sailings as a table · Right

The cards are good cards, and they still fail. Each one has a time, a route, a vessel, a load bar and a count, cleanly set. But the question the screen exists for, which sailing is fullest, is a comparison, and the cards scatter the values it compares over a grid: the eye has to zigzag between them and read each number, because nothing lines them up for a glance. In the table every booking ends on one right edge, the longest number is visibly the longest, and the Booked header sorts them. The gallery case runs the other way, a list of route maps forced into rows with a 40px thumbnail; that one belongs to Cards I, which draws it.

The boundaries, stated once. Layout III §II set the table's column kinds, its order and its fill column, and §VII put the toolbar, the bulk bar and the pagination on the collection screen; this page builds inside that frame. Layout II §VI and Type II §VI set the numbers. Border I §V gave the hairlines, Elevation II §VII the depth inside a table, Checkbox I §XI the selection column. Cards & Card Lists owns the card; Forms (planned) owns editing a whole record; Feedback & Notification and Loading & Skeleton States (planned) own the copy and the skeletons of section XV; Drag, Resize & Reorder (planned) owns resizing and reordering columns and rows.

If the user compares the items, it's a table; if the user picks one to open, it's cards. The shape of the data matters less than what the user is trying to do with it.

II. Anatomy

A table has five parts, top to bottom: the rail of controls, the header row, the body rows, the cells inside them, and the footer with the count and the pages. Rows are 32px at the default posture, divided by the .10 hairline, with no zebra stripes. The header is the --text-header voice, 11/16 at 400 in the muted ink, in sentence case.

Sailings · Sat 13 Feb
SailingVesselStatusBookedFare £
Ostrand – Hollin QuayMV TernOn time18414.20
Carrow – FenmouthMV SkuaOn time969.80
Ostrand – CarrowMV FulmarDelayed 10 min25112.60
Hollin Quay – OstrandMV TernOn time21214.20
Fenmouth – CarrowMV GannetOn time649.80
Ostrand – Hollin QuayMV SkuaCancelled13814.20
10 sailings1–10 of 10
rail 48header 32 · 11 · 400rule .14 · 1.31:1row 32 = 20+6+6line .10 · 1.2:1cell inset 6 / 12footer 40
Header labels 170px across 5 columns at 400 · th 32 · row 32 · rail 48 · footer 40 · #6b6b6b on white 5.33:1Labels 178px at 600, 4.8% wider · the header now outweighs every cell under it · Type I §IV: 600 is for the one emphasisLabels 216px in caps at +0.06em, 27% wider · Booked 63 → 72, Fare 60 → 63 · "BOOKED" is 48px over values 22px wideStripe #f3f2ee 1.12:1 on white · the selected tone #efede8 is 1.04:1 off the stripe · hover 1.03:1 · three greys for three meaningsRail 48 · header 32 · rows 32 · footer 40 · RightThe header at 600 · Wrong: a second emphasis on every columnThe header in caps · Avoid: the label, not the data, sets the widthZebra rows at 540 · Avoid: a stripe for rows the eye can already hold

A row is its leading plus its inset. A cell holds one line of the UI voice, 13/20, and nothing taller than that line except a 16px checkbox. So the row height is 20 plus the block inset twice: 20 + 6 + 6 = 32 at the default posture, 20 + 4 + 4 = 28 compact, 20 + 10 + 10 = 40 comfortable. That is one step tighter than the list rows of Spacing I §VII (28 / 36 / 44), which are sized to hold a control of their own posture's height. A table row holds text, and its columns and hairlines already separate one value from the next, which is the work extra air does in a list. At 32 a default 32px icon button just fits the row. Layout III §II gave the table one step looser, 32 / 40 / 48, before this chapter measured it; these are the values, and that page's figure should follow them. The inline inset is 12, the squish shape of Spacing I §VI at 1:2.

Hairlines between rows, at .10. Border I §V gave rows the subtle token, rgb(46 40 30 / .10), 1.2:1 on white, and the table's frame and the rule under the header the default .14, 1.31:1. The rule under the header is the one line in the table a step darker, because it marks where the data starts. Zebra striping does the same job as the row hairline and is a second way to say it, so a table gets one or the other. Stripes are justified only in a table wider than about 1000px whose cells carry no hairline, where a reader tracking a row across that distance can slip a line; a 680px table never needs them, and they turn the selected tone and the hover tint into a third and fourth shade of the same grey.

The header is 400, muted, not caps. The series has two weights, and 600 is the one emphasis (Type I §IV). A column header is a role, not an emphasis: it names what is below it, and its position, its ink and the rule under it already separate it from the cells. Set at 600 the header row becomes the loudest thing in the table, louder than the one cell a row might mark, and its labels run 4.8% wider for nothing. Caps cost more: Type III gave tile labels and dashboard headers the uppercase --text-header, and for a three-column summary that is right, but a records table sizes its columns to content, and a numeric column's header is usually wider than its values. In caps at +0.06em the five labels here run 27% wider, 170px to 216, and the numeric columns widen with them, Booked from 63 to 72, for no gain in the data. Caps also change the unit: "Fare £" is fine, "WEIGHT KG" says Kelvin. Sentence case at 11 in #6b6b6b reads at 5.33:1, above the 4.5 its size needs.

PostureCellsHeaderRow = leading + inset × 2Inline inset
Compact13 / 2011 / 1628 = 20 + 4 + 48
Default13 / 2011 / 1632 = 20 + 6 + 612
Comfortable13 / 2011 / 1640 = 20 + 10 + 1016

The rail above holds what changes which rows are shown, at its start, and what changes how they are shown, at its end (Layout III §VII); it is 48 tall, with 28px controls. The footer is 40, the count at its start and the pages at its end. Both sit inside the table's frame, on the same white, so the table reads as one object, which is what Border I §VI calls an object: bounded by its hairline.

One line of text plus its inset makes the row; one hairline divides it from the next; the header names its column at 400 and stays out of the way.

III. Columns

The identifier column leads, is never hidden, and never wraps or truncates. Every other column sizes to its content; one column, the fill column, takes what is left and is the one that gives way when the table narrows. Rows are one line: only a notes column may wrap, and only in a table that exists to read notes.

Sailings · Sat 13 Feb
SailingVesselBookedSeatsNotes
Ostrand – Hollin QuayMV Tern184240Swell warning after 14:00
Carrow – FenmouthMV Skua96180
Ostrand – CarrowMV Fulmar251320Holding for the Carrow connection
Hollin Quay – OstrandMV Tern212240
Fenmouth – CarrowMV Gannet64120
Ostrand – Hollin QuayMV Skua138180Engine fault; moved to the 11:45
Sailing 201 · Vessel 91 · Booked 63 · Seats 53 · Notes 271, the fill, every note in full · 0 truncatedFive columns of 136 · the identifier truncated in 6 of 6 rows · Seats holds 3 digits in 136At 520 Notes falls from 271 to 111 and truncates · Sailing holds at 201, 0 truncatedEvery column at its content, Notes takes the rest · RightFive equal columns · WrongNarrowed · Notes gives way, the identifier never · Right

The identifier is how the user finds the row again, so it is the one column the table can't lose. A sailing is known by its departure and its route; a booking by its reference; a vessel by its name. It goes first, in the position the eye starts from and the one a drawer leaves visible (Modal I §V), and a column chooser lists it but won't untick it. It doesn't truncate, because "Hollin Qu…" and "Hollin Qu…" are two different sailings that now look alike, and it doesn't wrap, because a two-line row breaks the rhythm every other row keeps and makes the identifier look like two records. When the identifier is genuinely too long, a path or a long reference, it truncates in the middle, keeping the end that tells the rows apart (Type II §VII).

Widths from content is Layout III §II's rule, and the specimen measures what breaks without it. Each column takes the width of its widest value or its header, whichever is wider, within limits: a minimum of the header's own width plus the inset, so a column never truncates its label; a maximum for text columns, 320 at this size, past which a description stops being a column and belongs on the record. One column takes the slack: Notes here, the dominant descriptive field in general. Equal widths give the 3-digit Seats column the same room as the route and then truncate the route, the field that identifies the row.

Narrowing takes from the fill column first. Notes truncates to one line with an ellipsis, and the full text goes in the record and in a tooltip that keyboard focus also opens. When Notes reaches its minimum, the table hides lower-priority columns, the last in the column order first, and never the identifier; past that it scrolls horizontally with the identifier frozen (section XI). Wrapping a notes column is legitimate when reading notes is the table's job, an incident log, say, and then every row grows to fit and the rows are read one at a time, which is a list's job more than a table's. A wrapped identifier is never right.

Lead with the identifier and never let it go; size everything else to what it holds, and let one column give.

IV. The Long Header

The header never sets a column's width. A numeric column is as wide as its values, and when the name over it is longer, the name gives way: shortened first, abbreviated for readers who know the terms, grouped under a shared qualifier, or set in two lines by design. Truncation with a tooltip is the last resort; a rotated or scrolling header is never the answer.

This is the commonest table failure, and the specimens so far have dodged it with headers like "Booked" and "Seats". In a metrics table the value is a percentage, a count or a price, four to six characters, and the header is the metric's full name from whoever defined it: "YTD Average Volume Per Store" over "18,420". Sized to content, the header is the content, and every numeric column becomes a strip of white with a number at its far edge.

Shop sales · year to dateto 13 Feb · growth against the same shops a year ago
ShopYTD Average Volume Per StoreAverage Transactions Per Opening HourAverage Basket Value £Same-Store Sales Growth YoY %Average Gross Margin %Shrink Rate %
ShopVolumePer hourBasket £Growth %Margin %Shrink %
ShopYTD volAvg tx/hAvg basket £SSS YoY %Avg GM %Shrink %
Sales, year to dateMargin, year to date
ShopVolumePer hourBasket £Growth %Gross %Shrink %
ShopVolume
per shop
Sales
per hour
Basket
value £
Same-store
growth %
Gross
margin %
Shrink
rate %
ShopYTD Average Volume Per StoreAverage Transactions Per Opening HourAverage Basket Value £Same-Store Sales Growth YoY %Average Gross Margin %Shrink Rate %
ShopYTD Average Volume Per StoreAverage Transactions Per Opening HourAverage Basket Value £Same-Store Sales Growth YoY %Average Gross Margin %Shrink Rate %
Ostrand terminal18,42038.47.40+3.841.21.9
Hollin Quay terminal9,81521.76.15+1.238.62.4
Carrow terminal12,06029.08.20−0.743.01.6
Fenmouth terminal7,34217.35.85+5.136.93.1
MV Tern, on board4,98044.69.10+2.652.40.8
MV Fulmar, on board6,21540.28.75−1.950.71.1
Table 1,136 wide in a 678 frame, 458px off-screen · headers 70–205 over values 22–43 · Per hour 229 for a 29px value · squeezed to 678 instead, the same headers wrap 2–4 ragged lines and the header grows to 80Headers 39–50 over values 22–43 · numeric columns 67–74 · header 32 · Shop, the fill, takes 263 · "year to date" and the same-shops rule said once, in the railHeaders 38–66 · columns 67–90 · header 32 · a dotted underline marks each tooltip, opened on hover and focus, 4 below the headerGroup row 24 + header 32 = 56 · rules span 4 and 2 columns with 24 between them · columns 66–74 · no vertical rulesHeader 48 = 16 + 16 + 8 + 8 · all 6 headers 2 lines, bottom-aligned, broken by the author · widest line 62 · columns 57–86Header 32 · every column 80 (56 of label + 24 of inset) for values 22–43 · 6 of 6 labels cut · the name only on hover or focusHeader 225 tall, seven 32px rows of height · labels 70–205 long, read sideways · columns 46–67Headers set the widths · WrongA shorter name · Right, and the first fixAbbreviations, the full name on hover · Right for readers who say them aloudA group header over the shared qualifier · Right for a fixed-shape tableTwo lines, broken by the author, bottom-aligned · OKTruncated, the name in a tooltip · OK, the last resortRotated 90° · Avoid

As delivered, the headers set the widths. Each numeric column is as wide as its name, the table runs past the frame and scrolls, and the values the table exists to compare are spread so far apart that a row can't be read across in one movement. Squeezed back into the frame instead (the caption measures it), the browser wraps each header wherever its column happened to end, into two to four ragged lines, and the header row grows to fit the longest. Both are the same mistake: nobody edited the names.

A shorter name is the first fix, and the best, because the long name says most things twice. "Per store" is what a row is; "year to date" applies to the whole table, so the rail says it once; "average", "rate" and "value" are implied by a percentage or a price; the unit goes after the word, as "%" or "£", as section V puts it. What is left is one or two words, "Volume", "Basket £", "Shrink %", and the column takes the width of its values. The definition the name was carrying, that growth compares the same shops a year earlier, goes in the rail or in the column's tooltip, where it is said once. This is an editing problem before it is a layout one.

Abbreviations are right for readers who already say them. "YTD", "YoY", "Avg", "SSS", "GM" and "Δ" are compact and exact in a finance team or a retail operations room. The test is whether every reader of this table says these words aloud in meetings; if a new hire has to ask what SSS means, it is the wrong audience for it. Each abbreviation is an <abbr> with the full name as its tooltip, shown on hover and on keyboard focus, which is a backstop for the occasional reader and not the fix.

A group header is right when the table's shape is fixed. When several columns share a qualifier, a spanning row above them says it once: "Sales, year to date" over Volume, Basket and Growth, "Margin, year to date" over Gross and Shrink. It earns its second header row only when the columns are known and won't be added or hidden by a column chooser, when the density it saves is real, and when the qualifier is true of every column under it. The group row is muted and 24 tall, its rule spans only its columns, and there are no vertical rules between groups; the gap between the two rules is enough.

Two lines by design are acceptable when the whole header row is built for them: 48 tall, two lines of 11/16 and the 8px inset, every header bottom-aligned so the last lines share a baseline, and each name broken where its author put the break, "Same-store / growth %", not where the column ran out. One accidental third line breaks it, so the breaks are written into the labels, not left to the width. Truncation keeps the row 32 and the column near its values' width, with the full name in a tooltip on hover and focus. It is the weakest of the working fixes, because the header is the one place a user reads to learn what a column is, and the sort target becomes an ellipsis.

Rotated headers fail. Turned 90°, a name is read letter by letter with the head tilted, and the header row becomes as tall as the longest name, taller than the rows it labels; at 45° it is a little more legible and takes the same height plus a diagonal that no column edge lines up with. A header that scrolls or marquees inside its cell is the last variant seen in the wild, and it fails outright: text that moves can't be read at a glance, scanned across the row, or found again to sort by. The type of the header, its size, case and weight, is Type III §V's, settled in section II; this section only decides what it says.

Edit the name until it is no wider than the numbers under it. If the readers know the abbreviation, use it; if the columns share a qualifier, say it once above them.

V. Alignment Inside the Cell

Text to the start, numbers to the end. Numbers carry one precision per column, their unit in the header and their figures from the mono; dates take one format; a status is a word with an optional dot, never a filled pill in every row. The header aligns with its cells.

Sailings · Sat 13 Feb
SailingStatusBookedLoadFareUpdated
07:40 Ostrand – Hollin QuayOn time184 of 24077%£14.22h ago
08:15 Carrow – FenmouthOn time96 of 18053.3%£9.8013/02/2027
09:05 Ostrand – CarrowDelayed251 of 32078%£12.608:41
09:50 Hollin Quay – OstrandOn time212 of 24088.3%£14.20Yesterday
10:30 Fenmouth – CarrowOn time64 of 12053%£9.8Yesterday
11:10 Ostrand – Hollin QuayCancelled138 of 18076.7%£14.208:02
SailingStatusBookedSeatsLoad %Fare £Updated
Ostrand – Hollin QuayOn time18424076.714.2013 Feb 06:52
Carrow – FenmouthOn time9618053.39.8013 Feb 07:05
Ostrand – CarrowDelayed 10 min25132078.412.6013 Feb 08:41
Hollin Quay – OstrandOn time21224088.314.2012 Feb 18:30
Fenmouth – CarrowOn time6412053.39.8012 Feb 17:12
Ostrand – Hollin QuayCancelled13818076.714.2013 Feb 08:02
Right edges of Booked spread over 8px, Load 12px, Fare 12px · 4 date formats in 6 rows · 6 pillsBooked, Load %, Fare £ each end on one x, 0px spread · figures IBM Plex Mono 12 · one date format · 2 dots in 6 rowsEverything start-aligned, the sans's figures, a pill per row · WrongText to the start, numbers to the end, one precision, one date · Right

The shipped table is what a team gets from a component library's defaults and a few hurried columns, and none of its choices is absurd alone. Every column starts at its left edge, so the numbers' last digits wander and 96 sits beside 184 as if it were the larger. "184 of 240" packs two values into one cell, so neither can be sorted or compared. "£14.2" and "£9.80" mix precisions, and the currency repeats in every row. The updated times arrive in three formats, so the eye can't sort them by looking, and a pill in every row makes the status the loudest column even when every sailing is on time.

The aligned table makes the same values comparable. Booked, Seats, Load and Fare are end-aligned with their headers, one precision each, and their figures come from IBM Plex Mono at 12, because this series' sans, DM Sans as served, has no tabular figures: Layout II §VI measured "1111111" identical with and without tabular-nums, and Type II §VI took the mono for figures from then on. The pound sign moves to the header, where it is said once ("Fare £"). Booked and Seats split into two columns, and the load becomes a third, a derived value with one decimal. The pier in section X, though a digit, stays start-aligned, because it is a label like a ZIP code and nobody compares piers by size. The departure time in the identifier is a label too and stays at the start.

Status is a word. "On time" is the normal case and is set in the muted ink; an exception, "Delayed 10 min" or "Cancelled", takes the full ink and an 8px dot (the mark Status I settles on, a size a ring can share), so the exceptions are found by scanning the column and the normal rows recede. A coloured pill is the right mark for a rare state on a card; in a table where every row has a status, a pill per row is 10 shapes competing for the same attention, and the one that matters is no louder than the rest. Colour, when the Color chapter adds it, reinforces the dot and the word and never replaces them (Icons I §IX).

A number's place value lines up only if the number is end-aligned, in fixed-width figures, at one precision. Get those three right and the column reads at a glance.

VI. Sorting

One column is sorted at a time, and only that column shows an indicator: an arrow after its header text, 16px, in the header's ink, which the sorted header raises to the full ink. An unsorted header shows nothing until it is hovered or focused. A click sorts ascending, a second descending, a third returns to the default sort, which the table states in its footer.

Sailings · Sat 13 Feb
Ostrand – Hollin QuayMV TernOn time18424014.20
Carrow – FenmouthMV SkuaOn time961809.80
Ostrand – CarrowMV FulmarDelayed 10 min25132012.60
Hollin Quay – OstrandMV TernOn time21224014.20
Fenmouth – CarrowMV GannetOn time641209.80
Ostrand – Hollin QuayMV SkuaCancelled13818014.20
Carrow – FenmouthMV FulmarOn time1773209.80
Ostrand – CarrowMV TernOn time20324012.60
8 sailings · sorted by departure, earliest first

Click a header: ascending, descending, then back to the default. Hover an unsorted one to see where its arrow will be.

Arrow 16 × 16, 4 after the label, in #1a1a1a 17.4:1 · unsorted headers #6b6b6b, their hover arrow #8a877f 3.59:1One sorted column, one arrow, the default stated in the footer · RightAn arrow pair on every column · Wrong: which one is sorted?

An indicator on every column says nothing. Libraries ship a pair of faint arrows on every sortable header, so that the user can see what is sortable; the effect is six identical marks and a seventh, slightly darker, that the user has to find. Sortability is learnable once, from the cursor and the hover arrow; which column is sorted, and which way, has to be readable at every glance. The arrow follows the label, and for an end-aligned column it sits before the label, so the label itself keeps the column's edge (Layout II §VI: a header labels the edge the eye scans down).

The default sort is part of the data. A timetable sorted by departure is the timetable; the same rows sorted by bookings are a view of it. The footer says which order the user is looking at, "sorted by departure, earliest first", and the third click comes back to it, so the user always has a way home that isn't a page reload. The header button carries aria-sort on its th, which the WAI-ARIA sortable table example puts on the sorted column only, for the same reason the arrow goes there only.

Multi-column sorting is a power feature, not a default. Sorting by vessel, then by departure within each vessel, is a real need in an operator's screen, and it belongs behind shift-click or a sort menu in the rail that lists the order ("Vessel, then Departure"), with the indicator numbered. A table that sorts by several columns without saying so shows rows in an order nobody can explain.

One sorted column, one arrow, and a way back to the default. Everything else is discovered on hover.

VII. Filtering & Search

Search and filters sit at the start of the rail. Each active filter shows as a chip below it, removable one at a time, and the footer gives the result count. Under about a thousand rows, changes apply as they are made; past that, a filter waits for Apply.

Sailings · Sat 13 Feb
SailingVesselStatusBookedSeats
Ostrand – Hollin QuayMV TernOn time184240
Carrow – FenmouthMV SkuaOn time96180
Ostrand – CarrowMV FulmarDelayed 10 min251320
Hollin Quay – OstrandMV TernOn time212240
Fenmouth – CarrowMV GannetOn time64120
Ostrand – Hollin QuayMV SkuaCancelled138180
Carrow – FenmouthMV FulmarOn time177320
Ostrand – CarrowMV TernOn time203240
Hollin Quay – OstrandMV GannetDelayed 25 min118120
Fenmouth – CarrowMV SkuaOn time42180

Type "tern" or "carrow", open Filter, remove a chip. Ten rows, so every change applies as you make it.

Popover 240 wide, 8 below its button, end-aligned to it because start-aligned it would leave the frame · chips 24 tallSearch and filters above the table, one chip per active filter, the count in the footer · Right

Live filtering for small tables, Apply for large ones, because of the latency the user can see. Ten or a few hundred rows filter in the browser in a frame or two, and each tick of a checkbox changes the rows under the user's eye, which is the best feedback a filter can give. A table backed by a server query, tens of thousands of rows or more, takes a few hundred milliseconds per change, and live filtering then turns three ticks into three requests and three redraws, each one moving the rows the user is looking at while they are still choosing. Past about a thousand rows, or wherever a filter round-trips to a server, the popover holds the choices until Apply, and the table updates once. The count is the threshold's real test: if the "6 of 1,284" can't be shown before the user's next click, filter on Apply.

The filter popover is a form popover, Popover I §IX: anchored 8px under its button, start-aligned to it, and closed by light dismiss: a click outside, Escape, or the button again. Live, closing it loses nothing because nothing is pending. On Apply, a light dismiss throws away unapplied choices, which is acceptable because they are a few ticks the user can redo and the chips show what is actually applied; anything longer belongs in a drawer (Modal I §VII, filters, live).

The chips are the record of what is hiding rows. One per active filter, named with its field ("Status: Delayed"), each with its own ×, and a Clear all when there are two or more. A user who has filtered to nothing reads the chips to see why. Search filters too, but it isn't a chip: its query is already visible in its field. The empty result keeps the header and the chips and says what produced it (section XV).

Show every active filter as a chip that removes itself. Apply as the user chooses when the table can keep up, and wait for Apply when it can't.

VIII. Selection & Bulk Actions

Selection is a 32px checkbox column before the identifier, with the header's box as select-all. While any row is selected, the bulk bar replaces the rail: the count, the verbs, and Clear. The row itself is the selection target only when a row click does nothing else.

Sailings · Sat 13 Feb
3 selected
SailingVesselStatusBookedSeats
Ostrand – Hollin QuayMV TernOn time184240
Carrow – FenmouthMV SkuaOn time96180
Ostrand – CarrowMV FulmarDelayed 10 min251320
Hollin Quay – OstrandMV TernOn time212240
Fenmouth – CarrowMV GannetOn time64120
Ostrand – Hollin QuayMV SkuaCancelled138180
Carrow – FenmouthMV FulmarOn time177320
Ostrand – CarrowMV TernOn time203240
8 sailings

Tick rows, or the header box. A click anywhere else on a row would open the sailing, so the box column is the target.

Box column 32, the 16 box 8 in · bulk bar 48, the rail's height · rows moved 0px when it appeared · Delete… apart, at the endThe bulk bar takes the rail's place while rows are selected · Count, verbs, Clear · Right

The box gets its own column, 32 wide with the 16px box centred, so every box sits on one x and the select-all box sits above them (Checkbox I §XI). Its cell is the target, all 32 × 32 of it, not just the box. A selected row takes the selected tone, #efede8, and a 2px bar on its leading edge, so the selection reads from across the table and survives the pointer leaving (Elevation II §VII).

Who owns the row click. In this table a click on a row opens the sailing, so a click must not also select it; the checkbox cell is the selection target, and Shift-click on a second box selects the range between. In a table whose rows open nothing, a picker of sailings to move or a list of passengers to notify, the whole row becomes the target, the row is the target as Checkbox I §IV has it for a list. One row has one click; a row that both opens and selects on the same click forces the user to guess which one happened.

Select-all is the mixed parent. The header box is computed from the rows: empty when none is selected, the dash when some are, checked when all are, and a click from the dash selects all (Checkbox I §VII). "All" means the rows loaded and filtered, never the whole database. When a table has more pages, the bulk bar offers the jump explicitly: "50 selected · Select all 1,284".

The bulk bar replaces the rail, in its place and at its height, so nothing below moves (Layout III §VII). It leads with the count, in the one 600 of the bar, because the count is what every verb in it will act on. Routine verbs come next, Move… and Export CSV; a destructive verb stands apart at the end, never beside a routine one, and opens a confirmation that names the count (Modal I §X). Clear is a text button at the trailing end, and Escape does the same. There is no Save: a bulk bar acts at once on each verb, and if a bulk change needed saving it would belong in a drawer.

The box column selects, the row opens; the bulk bar counts, acts, and clears, and it takes the rail's place without moving the rows.

IX. Row Actions

A row click opens the record. Beyond that, a row shows at most two icon-only buttons, 32px, on hover and focus, and always on touch; every other action goes in the ⋯ menu, as text with no icons. The actions column is the last column and has a fixed width.

Sailings · Sat 13 Feb
SailingVesselStatusBookedActions
Ostrand – Hollin QuayMV TernOn time184
Carrow – FenmouthMV SkuaOn time96
Ostrand – CarrowMV FulmarDelayed 10 min251
Hollin Quay – OstrandMV TernOn time212
Fenmouth – CarrowMV GannetOn time64
Ostrand – Hollin QuayMV SkuaCancelled138
SailingVesselStatusBookedActions
Ostrand – Hollin QuayMV TernOn time184
Carrow – FenmouthMV SkuaOn time96
Ostrand – CarrowMV FulmarDelayed 10 min251
Hollin Quay – OstrandMV TernOn time212
Fenmouth – CarrowMV GannetOn time64
Ostrand – Hollin QuayMV SkuaCancelled138
Actions column 164 = 5 × 32 + 4, the widest column after Sailing · 30 icon buttons on 6 rowsActions column 100 = 3 × 32 + 4 at rest and on hover · Sailing gains 64px · menu 200 wide, 8 below ⋯, no iconsNo hover on touch · the two stay, the column is still 100, nothing movedFive icon buttons on every row · WrongTwo on hover and focus, the rest in ⋯ with no icons · RightOn touch the two stay visible · Right

Where the row click goes is Modal I §I–III's three questions. An edit checked against the rows, a retime that mustn't clash with the next departure, opens a drawer, which leaves the identifier column readable beside it. A dispatcher working down the table opens the inspector, which swaps its record on each row click. A record that needs a page, a vessel with its crew, its certificates and its season of sailings, opens a page, and the row's click is a link with a URL.

Five buttons on every row is a toolbar repeated forty times. In the wrong frame the actions column is 164px of identical icons, the widest column after the identifier; the eye reads past it on every row, and the glyphs have to name verbs that have no conventional picture (notify, retime), which the cover test fails. Two visible actions, chosen because they are the two the operators use most, cover the frequent case. The ⋯ button is always visible, so the row says it has actions even before it is hovered; it is one of the universal six, and like every icon-only button it is a 32 target around a 16 glyph with a tooltip and an aria-label.

The menu has no icons, because Icons I §IX gives icons to no item of a menu by default, and these verbs have no glyph anyone knows. The destructive item comes last, after a separator, and ends in an ellipsis because it opens a confirmation. The menu is level 2 on the popover layer, outside the table's overflow, and closes by light dismiss (Popover I §VI). The hover buttons appear on :focus-within as well as :hover, so a keyboard user tabbing along a row finds them; on touch, where there is no hover, they stay visible, and the column is the same 100px either way, so nothing shifts when they appear.

The row opens; two buttons appear when the row is hovered or focused; everything else is a word in a menu.

X. Inline Editing

A cell edits in place when it is a single value with no dependencies on the rest of the record. It becomes a field at the row's height and inset, so its text doesn't move; Enter or Tab commits, a click elsewhere commits, Escape reverts. A value that fails validation keeps the field open, with the message in a tooltip under the cell.

Sailings · Sat 13 Feb
SailingVesselBookedFare £Pier
Ostrand – Hollin QuayMV Tern18414.202
Carrow – FenmouthMV Skua969.801
Ostrand – CarrowMV Fulmar25112.603
Hollin Quay – OstrandMV Tern21214.202
Fenmouth – CarrowMV Gannet649.801
Ostrand – Hollin QuayMV Skua13814.202

Only Fare and Pier edit. Click one, or Tab to it and press Enter; Enter or Tab commits, Escape reverts. Try a fare of 140 or a pier of 7.

Nothing edited yetFare and Pier edit, Booked doesn't, and at rest and on hover nothing says whichA .52 edge under the pointer only · 0 of 12 editable cells visible at rest · keyboard and touch never see itBox 4px inside the cell, 24 tall · rest .14 1.31:1 · hover .52 3.22:1 · editing #1a1a1a 17.4:1 · text 12 from the edge in all threePencil 16 in #6b6b6b 5.33:1, #1a1a1a on hover · 8 from the cell's end · the column grows 24 · gone while the field is openDone in the rail: all 12 editable cells at the .52 field edge, the rest unchanged · Edit turns it off and the cells stop editingNo signal · WrongHover only · OK, not greatA quiet field edge at rest · RightA trailing pencil at rest · RightA table-level Edit mode · Right for a working surface

An editable cell has to say so before it is touched. By default editability is invisible: the fare and the pier look exactly like the booked count beside them, which doesn't edit. Hover is not a signal, it is a confirmation: it answers "is this one editable?" only for a cell the pointer has already reached, and keyboard and touch users never see it. More than one way of saying it at rest is valid, and the specimen grades five.

No signal leaves the user clicking around to find what edits, and they mostly don't. Hover only, an edge under the pointer, is what most tables ship, and it is not enough on its own: nothing is discoverable until the pointer wanders onto the right cell. A quiet field edge at rest draws the input's own box inside each editable cell at the hairline alpha, .14; hover raises it to the control edge, .52, and a click turns it into the field. The box sits 4px inside the cell and the text stays 12px from the cell's edge at rest, on hover and while editing, so nothing moves between the three. A trailing pencil, 16px in the muted ink at the end of each editable cell, names the act (Icons I §VI), reads on touch as well as with a pointer, and costs 24px of column width; it takes the full ink on hover and goes while the field is open. A table-level Edit mode is the third valid way, for a working surface where many cells are changed in one sitting: Edit in the rail turns every editable cell into a field at once, read-only cells stay as they are, and Done leaves. The per-cell signals are for occasional edits; the mode is for a session of them.

In every state the signal is the column: every cell in Fare and Pier carries it, and no other cell does. A pencil in the header of an editable column is optional and never a substitute, because the header is out of sight thirty rows down and the cell is where the click happens.

Say it at rest, in the column, the same way in every cell. Hover confirms; it never discovers.

In place, or a drawer. A fare and a pier stand on their own: changing the 07:40's fare from 14.20 to 15.00 touches nothing else in the record, so the cell is the right place to change it. A departure time is the opposite. It changes the arrival, may clash with the next sailing from the same pier and must be checked against the rows, so it opens the drawer of Modal I §I. The test is whether the new value can be judged without seeing any other field change. Several dependent fields edited cell by cell commit one at a time, and between commits the record is in a state nobody chose.

The field takes the cell's box. It fills the cell exactly, 32 tall, with its text at the cell's own inset and alignment: a fare is end-aligned in the mono before the edit and stays end-aligned in the mono during it, so the digits don't jump when the field appears. The edge is the 2px focus ring drawn inside the cell, which Border I §V reserves for focus and selection. An editable cell shows that it is one on hover with the strong 1px edge, and it is a tab stop, opened by Enter or by typing.

Commit on Enter, revert on Escape. Enter and Tab commit and move on; blur commits, because a value the user typed and walked away from is one they meant. Escape restores the value the cell had when it opened. An invalid value doesn't commit and doesn't revert: the field stays open, its ring thickens to the error edge, and the reason sits in a tooltip-voice note under the cell, 4px off it, as Inputs II §XI keeps the error signal on while the user is in the field to fix it. The message names the rule, "Fares are 0.00 to 99.99", rather than "Invalid". Once committed, the cell saves optimistically, as Checkbox I §IX has a toggle do: the value shows at once, and only a failure is reported, in the row.

Edit in the cell when the value stands alone, in a drawer when it moves other values. In the cell, Enter keeps it and Escape takes it back.

XI. Fixed Headers & Columns

Once a table scrolls inside its own region, its header row sticks to the top, and when it scrolls horizontally, its identifier column sticks to the start. Each takes level 1 only while rows are passing under it, and is a hairline at rest.

SailingVesselMasterStatusBookedSeatsCarsFare £PierArrivesUpdated
Ostrand – Hollin QuayMV TernA. StrandOn time1842401414.20208:2513 Feb 06:52
Carrow – FenmouthMV SkuaJ. RookOn time9618099.80108:5513 Feb 07:05
Ostrand – CarrowMV FulmarM. IlvesDelayed 10 min2513202212.60310:0513 Feb 08:41
Hollin Quay – OstrandMV TernA. StrandOn time2122402014.20210:3512 Feb 18:30
Fenmouth – CarrowMV GannetT. VargaOn time6412069.80111:1012 Feb 17:12
Ostrand – Hollin QuayMV SkuaJ. RookCancelled1381801114.20211:5513 Feb 08:02
Carrow – FenmouthMV FulmarM. IlvesOn time177320199.80312:2512 Feb 16:47
Ostrand – CarrowMV TernA. StrandOn time2032401712.60213:1012 Feb 15:20
Hollin Quay – OstrandMV GannetT. VargaDelayed 25 min1181201214.20414:0513 Feb 09:10
Fenmouth – CarrowMV SkuaJ. RookOn time4218049.80114:2012 Feb 14:05

Scroll the table down and across. The header and the Sailing column stay; each casts its shadow only once something is under it.

Scroll to see the statescrollTop 0 · scrollLeft 0 · both shadows drawn anywayHeader and identifier frozen, level 1 only over content · RightBoth shadows at scroll 0 · Wrong: nothing is underneath

The header sticks because the columns lose their names otherwise. Thirty rows down, "184" could be bookings, seats or cars. A table that scrolls with the page sticks its header under the top bar; a table that scrolls inside its own region, as this one does, sticks it to the region's top. The identifier column sticks for the same reason across: scrolled to the Updated column, a row with no Sailing is a row of anonymous numbers. These are the wide tables Layout III §II allowed to scroll horizontally, comparisons wide by nature, and only those; a records table past seven columns moves its extra fields to the record instead.

Depth is a scroll state. Elevation II §VII put it in one sentence: the header and the pinned column take level 1 only while scrolled, and only toward the content they cover. Scrolled down, the header casts level 1's key and ambient shadow down onto the rows; scrolled across, the identifier column casts it to the end, the same pair turned on its side. At scroll 0 each is a hairline, because nothing is under it. The far edges, the bottom and the end, follow the same rule in reverse: section XII. The shadow is a pseudo-element whose opacity is cross-faded over 150ms, never an animated box-shadow (Elevation II §IV), and its z-index is local to the table.

Freeze what names the data: the header for the columns, the identifier for the rows. Shadow them only while the data is underneath.

XII. Showing There Is More

A scroll region never ends flush. A partial row or column peeks past the far edge, the far edge takes level 1 while content continues past it, and the count is always said. The scrollbar is not a hint: macOS hides it until the user has already decided to scroll.

SailingVesselStatusBookedSeatsMasterCarsFare £Arrives
Ostrand – Hollin QuayMV TernOn time184240A. Strand1414.2008:25
Carrow – FenmouthMV SkuaOn time96180J. Rook99.8008:55
Ostrand – CarrowMV FulmarDelayed 10 min251320M. Ilves2212.6010:05
Hollin Quay – OstrandMV TernOn time212240A. Strand2014.2010:35
Fenmouth – CarrowMV GannetOn time64120T. Varga69.8011:10
Ostrand – Hollin QuayMV SkuaCancelled138180J. Rook1114.2011:55
Carrow – FenmouthMV FulmarOn time177320M. Ilves199.8012:25
Ostrand – CarrowMV TernOn time203240A. Strand1712.6013:10
Hollin Quay – OstrandMV GannetDelayed 25 min118120T. Varga1214.2014:05
Fenmouth – CarrowMV SkuaOn time42180J. Rook49.8014:20
Ostrand – CarrowMV FulmarOn time188320M. Ilves1612.6015:05
Hollin Quay – OstrandMV TernOn time97240A. Strand814.2015:35
Carrow – FenmouthMV GannetDelayed 15 min111120T. Varga109.8016:25
Ostrand – Hollin QuayMV SkuaOn time156180J. Rook1314.2016:50
Fenmouth – CarrowMV FulmarOn time232320M. Ilves219.8017:25
Ostrand – CarrowMV TernOn time219240A. Strand1812.6018:10
Hollin Quay – OstrandMV SkuaOn time174180J. Rook1514.2018:40
Carrow – FenmouthMV GannetOn time58120T. Varga59.8019:10
Ostrand – Hollin QuayMV FulmarOn time143320M. Ilves914.2019:50
Fenmouth – CarrowMV TernOn time36240A. Strand39.8020:20
Rows 1–7 of 20 · columns 1–6 of 9

Scrollbars are hidden here, as macOS hides them until the user scrolls. Scroll the region down and across.

Region 256 = header 32 + 7 rows × 32 · the last row and the last column end on the frame's edges · 13 rows and 3 columns out of sight · no scrollbar, no count: nothing in the frame says soRegion 272 = 32 + 7½ × 32 · 16px of row 8 peeks · Master cut at 60 of its 90, mid-name · 12 rows and 3 columns beyond · the footer counts rows 1–8 of 20The partial row and column, plus level 1 on the bottom and right edges: the shadow reaches 5px inward, darkest at 2px · a hairline again at the last row and columnFlush again, and the footer alone says rows 1–7 of 20, columns 1–6 of 9 · the hint that is still there after the others are scrolled pastEnds flush, scrollbar hidden, no count · WrongA partial row and column peek, the count in the footer · RightPartial, the far edges at level 1 while content continues, the count · RightFlush, but the count says it · Right, and always

A region that ends on a row boundary looks complete. Seven rows fill the frame exactly, the last one sits on the bottom edge, the last column ends on the right edge, and with the scrollbar hidden nothing says thirteen sailings and three columns are out of sight. That is harmless in a table someone reads to the end and costly in one that is checked: a dispatcher clearing a queue, or glancing to see whether anything is still active, stops at the edge and misses the rest.

A partial row and column are the cheapest hint, because the cut is the message. The rule is geometric: the region's height is never a whole number of rows; it is n rows plus half a row, so 16px of the next row shows at the bottom whatever the scroll position. Across, the column widths are set so the frame's edge falls inside a text column, never on a boundary; here Master is cut mid-name. The far edge takes level 1 while content continues past it, the mirror of section XI's header: Elevation II §VI's scrolled state applied to the bottom and the end, cast inward, and gone at the last row or column. The count works when the others have been scrolled past: "Rows 1–8 of 20" in the footer, or "1–50 of 1,284" with pages (section XIII), or for a card list the count beside the title. It costs nothing, so it is always there.

The hints stack, a partial row plus the shadowed edge plus the count, and a working surface where a missed item has a cost, a queue or an "is anything active?" check, uses at least two. The same rule holds for a card grid and for a horizontal shelf: Cards I §VII's shelf shows 3.1 of 9 cards, and the .1 is this rule.

Never let the last visible row or column end on the frame's edge, and always say how many there are.

XIII. Large Datasets

Virtualise by default: draw the rows in the window, fetch them in pages as the user scrolls, show no buttons, and always say the count. Paginate when a page is costly to load, needs an address, or belongs to a table that shouldn't own the scroll. Load more is a deliberate action, and infinite scroll over a footer is wrong because the footer is never reached.

A table is a finite set. It can be sorted and counted, so the system knows the whole set even when it draws only a window of it. A feed with no end, the literal infinite scroll, can't be sorted or counted and isn't a table; nothing in this section applies to it. Every choice below is about how much of a known set to draw, never about whether the set has an end.

Sailings
SailingVesselStatusBookedSeats
Ostrand – Hollin QuayMV TernOn time184240
Carrow – FenmouthMV SkuaOn time96180
Ostrand – CarrowMV FulmarDelayed 10 min251320
Hollin Quay – OstrandMV TernOn time212240
Fenmouth – CarrowMV GannetOn time64120
rows 6–50 not drawn
12,418 sailings · rows 4,201–4,207 in viewsorted by departure
1,284 sailingsRows501–50 of 1,284
50 of 1,284 shown
Loading more sailings
Timetable officeFares & termsContact the harbour
7 rows in view, 2 of them 32px skeletons not yet loaded · thumb top at 33.8% of the track for row 4,201 of 12,418, 24px at its floor · the footer counts 12,418 and stays fixed50 rows × 32 = 1,600px · URL ?page=1&size=50&sort=departure · right for a costly page, an address, or a table that doesn't own the scroll; otherwise slower than scrolling50 of 1,284 shown, the count kept · each batch a click the user chooses · right on a metered API or a phone, otherwise a slower virtualisationThe next 50 load as the footer comes into view, so its count, pages and totals are never reached · a virtualised table keeps its footer fixedVirtualised: drawn for the window, fetched in pages, counted · Right, the defaultPages of 50 with an address · Right when a page is costly, needs a URL, or the table shouldn't own the scrollLoad more · OK when the next batch has a visible costInfinite scroll over a footer · Wrong: the count and the footer are never reached

Virtualised scrolling is the default for a working surface. A dispatcher in a table of 4,000 to 100,000 sailings, sorted by departure, reaches "last week" faster with one flick of a trackpad than by clicking through ten pages of 100 or typing a date into a filter. The API may still paginate; the interface shows none of it. What makes it honest: the count is always said, "12,418 sailings" in the footer (section XII); the scrollbar stands for the whole set, with a fixed or estimated row height so the thumb's position and size are proportional; sort and filter apply to the whole set, never the loaded part; rows not yet loaded show a skeleton at the row's height inside the window, never a spinner that collapses the table (Loading & Skeleton States, planned, owns the skeleton); the position survives a refresh; and keyboard selection and Shift-click ranges work across unloaded rows, or are disabled with the reason said. A "Go to date" or "Go to row" control in the rail is a useful accelerator for a very large sorted set.

Pagination is right in three cases, and outside them it is slower than scrolling. Each page is costly to load: a heavy query, a report rendered on the server. The user needs an address: a page that is bookmarked or shared, "page 3 of the audit". Or the table is one region of a page that shouldn't own the scroll. Then pages of 25, 50 or 100 with "1–50 of 1,284" and a URL per page are the honest form.

Load more is a deliberate action, right when the next batch has a visible cost, bandwidth, a metered API, a phone, or when the set is modest and the user should decide to see more. Otherwise it is a slower virtualisation. Infinite scroll over a footer is wrong, not because scrolling is wrong but because the footer, with its count, its pages and its totals, recedes as each batch lands and is never reached, which breaks the count rule above. A virtualised table keeps its footer fixed.

FormWhenGrade
VirtualisedThe default for a working surface: the count said, the scrollbar for the whole set, sort and filter over the whole set, skeleton rows, the position keptRight
PagesA page is costly to load, needs an address, or the table shouldn't own the scrollRight when one holds
Load moreThe next batch has a visible cost, or the set is modest and seeing more is a choiceOK
Infinite scrollOver a footer, never: the count and the totals can't be reachedWrong
Virtualise by default, paginate when a page is costly or needs an address, and never lose the count.

XIV. Density

The three postures, applied to a table: compact 28 for an operator's screen worked all day, default 32, comfortable 40 for a table read occasionally or on touch. The row height and the inset change; the type, the column widths, the icons and the hairlines don't. A user's density switch belongs at the end of the rail and is remembered per table.

Sailings · Sat 13 Feb
SailingVesselStatusBookedSeatsFare £
Ostrand – Hollin QuayMV TernOn time18424014.20
Carrow – FenmouthMV SkuaOn time961809.80
Ostrand – CarrowMV FulmarDelayed 10 min25132012.60
Hollin Quay – OstrandMV TernOn time21224014.20
Fenmouth – CarrowMV GannetOn time641209.80
Ostrand – Hollin QuayMV SkuaCancelled13818014.20
Carrow – FenmouthMV FulmarOn time1773209.80
10 sailings
Row 28 · inset 4 / 8 · text 13 · 7 rows in 224pxRow 32 · inset 6 / 12 · text 13 · 7 rows in 256pxRow 40 · inset 10 / 16 · text 13 · 7 rows in 320pxOne table, three postures · Row and inset move, type and widths hold

What changes is air. Compact takes the block inset from 6 to 4 and the inline inset from 12 to 8, which fits one row in seven more into the same height as default (32 / 28 = 1.14); comfortable takes them to 10 and 16. The 13/20 cell text holds in all three, the 11/16 header holds, the 16px box and the 16 glyphs hold, and the hairlines stay 1px. That is Spacing I §VIII's rule applied to one component: a density change that alters the type is a different design. The product's own posture, set once for the whole system, may move the UI voice a step (Type I §VI: 12 / 13 / 14); a user's switch on one table changes only its air, so the table never sets its text in a voice the rest of the screen doesn't use.

The switch is a view control, so it goes at the end of the rail beside sort and columns, and it is remembered per table, per user: the operator who compacts the bookings table every morning wants it compact tomorrow, and still wants the vessels table, which they read once a week, at default. At 28 an icon-only button no longer fits the row at 32; it drops to 24, the floor of Icons I §VII, and compact is never offered on touch, where 40 is the row and 44 the target.

Density moves the air in a table and nothing else. The user picks it per table, and the table remembers.

XV. Empty, Loading & Error

Every state happens inside the table's frame. Zero results is one sentence and one action, under a header that stays. Loading keeps the header and holds the rows' height. A failed refresh keeps the rows it had and says how old they are.

Sailings · Sat 13 Feb
Vessel: MV GannetStatus: Cancelled
Couldn't refresh. Showing sailings as of 09:12.
SailingVesselStatusBookedSeats
No sailings match Vessel: MV Gannet with Status: CancelledMV Gannet has no cancelled sailings on 13 Feb. Clear the filters to see all 10.
Ostrand – Hollin QuayMV TernOn time184240
Carrow – FenmouthMV SkuaOn time96180
Ostrand – CarrowMV FulmarDelayed 10 min251320
Hollin Quay – OstrandMV TernOn time212240
Fenmouth – CarrowMV GannetOn time64120
Something went wrongWe couldn't load sailings.
0 of 10 sailingsLoading…10 sailings · as of 09:12—
Zero results · the header and the filters stay · RightLoading · the header stays, the rows hold their height · RightA failed refresh keeps the rows it had · RightA failed refresh that throws the rows away · Wrong

The frame stays, because the user's next move is in it. With zero results, the user's next move is to change the search or a filter, so the rail, the chips and the header stay where they were, and the message names what produced nothing and offers Clear filters (Layout III §VII, true empty vs zero results). Loading keeps the header and draws placeholder rows at the row height, so the table doesn't jump when the data lands. A refresh that fails keeps the last data it had, dimmed to the muted ink and dated, with Try again in a banner above the rows: 10 sailings as of 09:12 are worth more to a dispatcher than a blank table that says something went wrong.

The words and the skeleton's shape belong to their chapters. Feedback & Notification (planned) owns the copy of every empty state and banner; Loading & Skeleton States (planned) owns the skeleton, its timing and when a spinner is right. This section fixes only where they go and what the table keeps around them.

Never lose the frame, and never lose data the user already had.

XVI. Dark Mode & Contrast

In dark mode the table sits on #1a1a1a, its hairlines turn to white at low alpha, and each alpha is chosen to match the light ratio, not copied from it: rows at .07 (1.21:1), the header rule at .10 (1.34:1), the frame at the inverse token, .14. The header's ink is #b0b0ae, the selected row #262626 with its bar in the text's ink.

3 selectedMove…Export CSVDelete…
Ostrand – Hollin QuayMV TernOn time184240
Carrow – FenmouthMV SkuaOn time96180
Ostrand – CarrowMV FulmarDelayed 10 min251320
Hollin Quay – OstrandMV TernOn time212240
Fenmouth – CarrowMV GannetOn time64120
Ostrand – Hollin QuayMV SkuaCancelled138180
10 sailings · sorted by departure
Light · rows .10 1.2:1 · header rule .14 1.31:1 · header #6b6b6b 5.33:1 · selected #efede8 1.17:1 + the 2px bar · arrow 17.4:1Dark #1a1a1a · rows white .07 1.21:1 · header rule .10 1.34:1 · frame .14 · header #b0b0ae 8.0:1 · selected #262626 1.15:1 + bar · arrow #ecebe8 14.6:1Ported · row lines 1.01:1, gone · header #6b6b6b 3.27:1 · the sorted header in #1a1a1a vanishes · selected #efede8 14.9:1 off the rows · WrongLight · the referenceDark · matched ratios, not matched alphas · RightDark · light values ported · Wrong

Match the ratio, not the alpha. White at .10 on #1a1a1a is 1.34:1, already a step stronger than the 1.2 the light row line makes, so rows take .07 and the header rule .10, and the table keeps the same two-step ladder in both modes. Border I §V's inverse token, .14, draws the frame, which has the canvas to separate from. The selected row is #262626, a 1.15:1 step off the surface that would be too faint alone; the 2px bar in #ecebe8 is what carries it, as it does in light. The sort arrow takes the header's raised ink, #ecebe8, 14.6:1, and the muted header #b0b0ae is 8.0:1.

Ported, the table loses its lines and its header. The paper-tinted hairlines are dark on dark and vanish; #6b6b6b, the light header ink, is 3.27:1 on #1a1a1a, under the 4.5 an 11px label needs; and the light selected tone becomes a glaring white band, 14.9:1 against the rows around it, the loudest thing on the screen for a state that should be quiet. Everything stays opaque in both modes, as Elevation II §IX requires.

Measure each line in the dark against its light twin and pick the alpha that matches. The bar carries selection in both modes; the tone only helps.

XVII. The Checklist

Decide each table in this order; each step assumes the ones before it.

1
Confirm it's a tableThe user compares items by value, knows them by an identifier, and needs to sort them; every row has the same shape. Otherwise cards (Cards I).
2
Pick the identifier and the fill columnThe identifier leads, is never hidden, never wraps, never truncates except in the middle. One descriptive column takes the slack and gives way first.
3
Size the rest to contentWidest value or header, within a min of the header and a max of 320 for text. About seven data columns at 1440; the rest go to the record.
4
Never let the header set the widthEdit the name first: the row, the rail and the unit already say "per shop", "year to date" and "%". Then abbreviate for readers who say the terms aloud, group a shared qualifier, or set every header in two lines by design. Truncate with a tooltip last. Never rotate, never scroll.
5
Align every cellText to the start, numbers to the end in the mono at one precision, units in the header, one date format, status as a word and a dot. Headers align with their cells.
6
Set the rows28 / 32 / 40 = 20 + inset × 2. Rows divided at .10, the header rule and frame at .14, no zebra under 1000px. Header 11/16, 400, muted, sentence case.
7
One sort, one indicatorThe sorted column alone shows a 16 arrow in the raised ink; others only on hover. Asc, desc, back to the default; the default stated in the footer; aria-sort on the sorted th.
8
Filter at the rail's startSearch, then filters in a form popover with light dismiss. A chip per active filter, the count in the footer. Live under ~1000 rows, Apply past that or over a server.
9
Give selection its column32 wide, 16 box, the header box the mixed parent of what is loaded. The row is the target only when it opens nothing. The bulk bar replaces the rail: count, verbs, the destructive one apart, Clear. Never Save.
10
Two visible, the rest in a menuThe row click opens: drawer, inspector or page by Modal I §I–III. Two 32 icon buttons on hover and focus, always on touch; ⋯ always; the menu in words; a fixed trailing column.
11
Edit in place only what stands aloneMark every editable cell at rest, the same way down the column: a quiet field edge or a trailing pencil, or an Edit mode for a working surface. The field takes the cell's box, text unmoved. Enter, Tab or blur commits; Escape reverts; an invalid value stays open with its reason under the cell. Dependent fields go to a drawer.
12
Freeze what names the dataSticky header once the table scrolls; frozen identifier once it scrolls across. Level 1 only while content is under each, cross-faded.
13
Show there is moreNever end a region flush: n rows plus half a row, the frame's edge inside a text column. The far edge takes level 1 while content continues; the count is always said. A queue or an "is anything active?" check uses at least two.
14
Virtualise by defaultDraw the window, fetch in pages, no buttons; the count said, the scrollbar for the whole set, skeleton rows, the position kept. Pages only when a page is costly, needs an address, or the table shouldn't own the scroll. Never infinite scroll over a footer.
15
Offer density per table28 / 32 / 40 in the rail's end, remembered per table. Air changes; type, widths, icons and hairlines don't.
16
Keep the frame in every stateZero results under the header with Clear filters; loading keeps the header and the row height; a failed refresh keeps its rows, dated.
17
Measure the darkRows .07, header rule .10, frame .14 on #1a1a1a; header ink #b0b0ae; selection #262626 with the bar. Opaque throughout.

Steps one, two, four, ten and eleven are the judgement; the rest are contracts written once and inherited by every table. The audit: cover every column but the first and ask whether each row can still be named; read a numeric column from across the room and see whether the longest value looks longest; count the indicators in the header row; filter to nothing and see what stays; select three rows and check nothing below the rail moved; tab along a row and find its actions; edit a cell and watch whether its text jumps; scroll to the bottom-right corner and read the row you're on.

Cards & Card Lists takes every list that is chosen from rather than compared, and owns the split this page cites. Forms (planned) takes the record a row opens and the validation of whole forms. Feedback & Notification (planned) takes the empty states' words and the toast that follows a bulk action; Loading & Skeleton States (planned) the skeleton; Drag, Resize & Reorder (planned) resizing and reordering columns and dragging rows. A Part II would take grouping and subtotals, expandable rows, the column chooser, and the spreadsheet: a table whose every cell is a field.

Part I of Data Tables.
A table is a promise that every row can be compared with every other. Keep it, and five hundred rows read like five.