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

Grid & Layout

Collections & Composition — how each presentation form is built from the inside, and how a screen is assembled from a few templates instead of from scratch.

I. Why Composition Is Its Own Topic

Part I chose a presentation form for each kind of record, and Part II settled where edges go. Neither tells a team how to build a good table, or how to put a screen together. Those are composition problems, and when nobody owns them every screen gets composed from scratch.

Composition is the work between the grid and the component. The grid says a block may span eight columns; the component library supplies a table. Neither says which columns the table has, in what order, at what widths, or what sits above it. Neither says which blocks a record's screen contains or in what order they appear. A team that hasn't written those answers down still makes the decisions, one screen at a time and differently each time, and the product ends up with as many layouts as it has screens.

Here is a screen of the kind that results: the overview of one monitoring site in an invented environmental-sensing product. It has a header, some summary numbers, the site's stations, and its recent field visits. Every block came from the component library, and every block is reasonable on its own. Look at it before showing the problems.

4
Sites / North estuaryHarlow Marsh6 stations · 2 field visits this month
Edit siteAdd station
1
Readings · 24h8,640100% of expected
Open alerts31 alarm
Battery avg71%
Uptime · 30d99.2%
Last visitOct 9
Stations6
2
North channel

Water level and temperature at the north sluice, one reading a minute.

Online
Boardwalk gauge

Staff gauge with a camera.

Online
Outfall pipe

Flow and turbidity where the marsh drains to the estuary. Battery replaced in March; the enclosure floods on spring tides.

Alarm
South lagoon

Salinity probe.

Calibrating
East reed bed

Water table depth.

Online
Tidal weir

Upstream and downstream level, paired with the outfall station for flow estimates.

Offline
Field visits
3
DateOct 9, 2026
TechnicianN. Adeyemi
NotesReplaced desiccant in the outfall enclosure; battery swap booked.
DateSep 4, 2026
TechnicianI. Varga
NotesCalibrated North channel and South lagoon against the reference gauge.
  1. 1A 2-up row over a 3-up row in one container, each with its own gap and inset.
  2. 2Stations as a masonry wall here, a table on the Stations screen.
  3. 3Field visits as a stack of read-only forms standing in for a list.
  4. 4No template: part dashboard, part detail page, part editor.
As found · Every block from the library · No rule for putting them together Look first, then show the problems. None of them is a component bug.

None of the four problems would show up in a component review. The tiles are correct tiles, the cards are correct cards, the inputs are correct inputs. The screen fails at the level above them. Problem 1 is Part I's two grids in one container, now in the summary row. Problem 2 is a form chosen per screen: stations are a table everywhere else in the product, so on this screen the user has to relearn where a station's status is and loses the ability to compare battery levels at a glance. Problem 3 is the editing form used to present records, every past visit displayed as if it were about to be changed. Problem 4 is the one that causes the other three: the screen isn't any particular kind of screen, so there was no template to say what goes where, and each block was placed by whoever needed it.

This part supplies the rules that screen was missing, in two halves. Sections II–V are the internal rules of each presentation form: how a table sizes and orders its columns, how a list becomes master/detail, how a card grid handles uneven content, how a form uses its columns. Sections VI–X are assembly: the detail screen, the collection screen, the small set of page templates every screen belongs to, how collections nest, and how one entity keeps one form across all the screens that show it. Section XI audits the screen above and fixes it.

The boundary, stated once: which form a kind of record takes is Grid & Layout Part I §IX, and edges and number alignment are Part II. The table's behavior (sorting, filtering, selection, bulk actions, sticky headers, frozen columns, inline editing) belongs to the Data Tables chapter, and field types and validation belong to Forms. This part covers the table, the list, the card grid, and the form as blocks of a screen: their widths, their order, their anatomy, and what surrounds them.

A component library answers "what does a table look like." Composition answers "which table, where, beside what." Without written answers to the second question, the first doesn't produce consistent screens.

II. The Table's Columns

A table is not a column grid. Its columns size to their content, and exactly one column, the record's dominant field, absorbs the remaining width. Equal-width columns are the most common table mistake, and they come from treating a table like a row of grid spans.

StationSiteStatusLast readingBattery %Readings 24h
North channelST-0412Harlow MarshOnline2 min ago641,440⋯
Outfall pipeST-0419Harlow MarshAlarm6 min ago181,436⋯
Ridge mastST-0388Kestrel RidgeOffline6 h ago—1,082⋯
Point buoyST-0611Scarrow PointCalibrating14 min ago771,398⋯
Equal columns · table-layout: fixed · Wrong
StationSiteStatusLast readingBattery %Readings 24h
North channelST-0412Harlow MarshOnline2 min ago641,440⋯
Outfall pipeST-0419Harlow MarshAlarm6 min ago181,436⋯
Ridge mastST-0388Kestrel RidgeOffline6 h ago—1,082⋯
Point buoyST-0611Scarrow PointCalibrating14 min ago771,398⋯
Content-sized · Station takes the slack · Right
IdentityDescriptorStatusTimeQuantityQuantityAction
Drag the box's bottom-right corner. In the top table every column changes width and the station names truncate first. In the bottom one only Station moves; everything else stays the width of what it holds. The density control changes row height, nothing else.

In the equal-width table, the 3-character battery figure gets the same 90px as the station name, which truncates. Widen the box and the extra width is spread across seven columns, so the numbers drift away from their headers and the status pills float in empty cells. Narrow it and the name is the first thing cut, though it's the one field that identifies the row. In the content-sized table, every column except Station is exactly as wide as its widest value, and Station gets the rest. Extra width goes to the one field that can use it, which is Part I's wide-canvas rule applied inside a table.

Column Kinds

Every column in a records table is one of six kinds, and the kind decides its width and alignment. Decide the kind when the column is added and the table sizes itself.

KindWidthAlignNotes
IdentityFluid, min ~200px, takes all slackStartThe dominant field: name, title, subject. One per table, always first, and the link to the record.
DescriptorContent, capped at ~240pxStartSecondary text such as site, owner, or category. Truncate at the cap with the full value in a tooltip.
StatusFixed to the longest statusStartSize it for the longest label the column can hold ("Calibrating"), not the longest one on screen, so the column doesn't jump when data changes.
TimeFixed, one format per columnStartRelative ("6 min ago") or absolute ("Oct 15, 09:12"), never both in one column.
QuantityFixed to the widest valueEndTabular figures, units in the header (Part II §VI). The header aligns with its cells.
ActionFixed, 32–40pxEndOne overflow menu, last. Several icon buttons per row means the row wants to be a record screen.
.records { width: 100%; table-layout: auto; } .records .col-identity { width: 100%; } /* takes every spare pixel */ .records .col-fit { width: 1%; white-space: nowrap; } /* shrinks to its widest cell */ .records .col-status { min-width: 96px; } /* the longest possible label */

Column Order

Identity first, then descriptors, status, time, quantities, and the action last. The order follows the questions a reader asks of a row: which one is this, what is it, what state is it in, when did it last change, how much. Putting quantities together at the right edge means their right-aligned ends share the table's right rail (Part II §V), so the eye can compare down the column and across the numeric block in one motion. Interleaving numbers with text columns breaks that block up and makes every number sit next to a ragged text edge. The action goes last because it isn't data. It sits outside the information the row presents, at the end the eye reaches after reading.

Row Height and Width Limits

Row height comes from the product's density posture, not from the table. For a table whose cells hold one line of the UI voice, Data Tables §II derives the row from the leading plus the inset twice: 32 default, 28 compact, 40 comfortable; rows that hold taller content take the next step up (Spacing & Density §VII). A product may map all of its tables to compact, but it decides that once, in writing. Height is the only thing the density control above changes; column widths, type, and pills stay as they are.

A records table shows about seven data columns at 1440px. Past that, the table is no longer for comparing rows; it's showing each record in full, one row at a time, and the remaining fields belong on the record's detail screen or in the inspector beside the table. A column chooser lets each user pick their seven. Horizontal scrolling is right only for tables whose purpose is wide comparison, spreadsheets and pivot views, and those need a frozen identity column, which is the Data Tables chapter's subject.

Give every column the width of what it holds, and give the remaining width to the column that names the record. Nothing else in the table should get wider when the window does.

III. The List & the Master/Detail Frame

A list lives in a pane 360px wide, rarely more. When a user needs to read records one after another, the list becomes the left pane of a master/detail frame and the record opens beside it. A full-width list is never the answer.

Part I §IX set the list's width at 360–640px, because a list row is one dominant field read left to right, and past about 640px the eye loses the connection between a title and its trailing status. That cap is what makes the master/detail frame work: a 360px list leaves the rest of main for the record. On a 1440px screen with a 260px sidebar, that's about 800px for the detail pane, enough for a header, a set of properties, and a paragraph at a readable measure.

Search alertsOpen ▾
No readings for 6 hRidge mast · ST-0388
6hOpen
Battery below 20%Outfall pipe · ST-0419
2hOpen
Calibration overduePoint buoy · ST-0611
1dAck
Level above thresholdNorth channel · ST-0412
2dAck
Enclosure openedUpper sluice gate · ST-0502
3dClosed
Gap in readingsTidal weir · ST-0431
4dClosed
Battery below 20%Outfall pipe · ST-0419
Acknowledge
Opened
Oct 15, 09:12
Level
18%, falling 2% a day
Owner
N. Adeyemi
Rule
Battery < 20% for 3 readings

At the current rate the station stops sending in about nine days. A battery swap is booked for the next visit.

Toolbar
Search, filter
Selected row
Fill + bar
Row
2 lines + slots
List · 360
Scrolls alone
Detail head
Stays put
Measure
Capped
Detail
Fluid, scrolls
Master/detail · An alerts queue · Drawn at about 40% · Thin bars mark regions that scroll

The List Row

A list row has two lines and fixed trailing slots. The first line is the dominant field, the alert or the subject or the name, at the body size and medium weight. The second line is secondary context in the muted voice, truncated with an ellipsis rather than wrapped, so every row is the same height. Trailing content (time, status, a count) sits in fixed-width slots at the right, as Part II §V requires, so a row without a status doesn't shift its timestamp. A leading slot (avatar, icon, checkbox) is optional, but if any row has one, every row reserves it. Three lines is a card's job; a row that needs a third line is showing too much for a list.

The Frame

The list pane has a fixed width; the detail pane is fluid. 320–400px for the list, 360 by default, user-resizable within those bounds if the product wants it. The detail pane takes the rest of main, and its reading content keeps the prose measure (about 720px), so on a very wide screen the record's text stays readable and the surplus becomes margin. This is Part I's fixed-regions-and-one-fluid-region rule, applied inside main. Material 3's list-detail layout and Apple's split views are the same structure.

Each pane scrolls on its own, and the detail header stays. Scrolling the detail never moves the list, and changing the selection never resets the list's scroll position. The detail pane's header (the record's title and its actions) stays fixed at the top of the pane while the body scrolls under it, so the primary action is always in reach. The selected row stays visibly selected with a fill and a leading bar, which is stronger than hover, because hover moves with the pointer and the selection has to survive the pointer moving over other rows.

With nothing selected, the detail pane shows an empty state, a short centered line such as "Select an alert to see its details," with the queue's count if that's useful. Don't auto-select the first record. Auto-selection marks a record as read that the user didn't choose, and it hides that nothing has been selected yet. The exception is a triage queue whose whole job is working top to bottom; there, opening the first item is the expected first step.

Select an alert
6 open
≥ 1024 · Nothing selected
≥ 1024 · Selected
→
< 1024 · List
‹ Alerts
< 1024 · Detail
Below 1024 the frame becomes two screens with their own routes. Back returns to the list at the same scroll position, with the last record still marked.

Below 1024px, the list and the detail are two screens. At that width main is too narrow for a 360px list and a readable detail pane side by side, and squeezing both produces a list that truncates every title and a detail pane too narrow for its properties. Each becomes its own route: the list, then the record, with a back control that returns to the list at the same scroll position and with the record just viewed still marked. Because the detail is a route, it can be linked and bookmarked, which the side-by-side version should allow as well: selecting a row updates the URL.

A list is the left half of something. Give it 360px and a detail pane beside it, or give it its own screen on a phone, but don't stretch it across the canvas.

IV. The Card Grid & Uneven Content

Cards in a grid are the same height, and every card's parts are in the same positions: fixed media ratio, titles and descriptions clamped to a set number of lines, footer anchored to the bottom. Real content is uneven. The card's job is to hide that, so the grid reads as rows.

Harlow Marsh
6 stations · North estuary

Tidal marsh with two sluices and a boardwalk gauge.

1 alarmOpen
Brennock Fen, upper sluice and the four reed beds
11 stations · Fenland basin

Peat fen drained by a pumped sluice. Stations track water-table depth across four reed beds and the pump-house outflow, with a weather mast on the dyke and a spare logger in the pump house.

All onlineOpen
Kestrel Ridge
3 stations · Upland

Exposed mast and two soil-moisture probes. Winter access on foot only.

1 offlineOpen
Each card as tall as its content · Media at the photo's own ratio · Wrong
Harlow Marsh
6 stations · North estuary

Tidal marsh with two sluices and a boardwalk gauge.

1 alarmOpen
Brennock Fen, upper sluice and the four reed beds
11 stations · Fenland basin

Peat fen drained by a pumped sluice. Stations track water-table depth across four reed beds and the pump-house outflow, with a weather mast on the dyke and a spare logger in the pump house.

All onlineOpen
Kestrel Ridge
3 stations · Upland

Exposed mast and two soil-moisture probes. Winter access on foot only.

1 offlineOpen
16:9 media · Title 2 lines · Description 3 lines · Rows shared by subgrid · Footer anchored · Right In the top row the eye can't compare the three sites, because the station counts, the statuses, and the Open links each sit at a different height. In the bottom row each kind of information is on one line across the row.

The uneven row has the problem masonry has, on a smaller scale. The eye compares cards across a row, and it does that by finding the same part in each card at the same height. When the media ratios differ, every part below the media shifts. When a title wraps to three lines, its meta line drops below its neighbors'. When the footer follows the description directly, the status pills and the Open links scatter. The cards still sit on the grid, but nothing inside them lines up.

Anatomy

Media
Fixed 16:9, cover
Brennock Fen, upper sluice and the four reed bedsTitle
2 lines, reserved
11 stations · Fenland basinMeta
1 line, truncates
Peat fen drained by a pumped sluice. Stations track water-table depth across four reed beds and the pump-house outflow, with a weather mast on the dyke.Description
3 lines, clamped
All onlineOpenFooter
Anchored to bottom
A record card · Five parts, always in this order, each with a fixed height or a line budget

Media has a fixed aspect ratio, usually 16:9 or 4:3 for a product, cropped with object-fit: cover. Images arrive in any ratio, and letting each one set its own height is the first thing that breaks a row. Titles get a line budget, two lines, and reserve both, so a one-line title leaves a blank line rather than pulling the meta line up. Meta is one line, truncated. The description is clamped, usually at three lines, with the full text on the detail screen. The footer is anchored to the bottom of the card, so statuses and actions sit on one line across the row however long the description was. The clamp is line-clamp, still behind its -webkit- prefix in most browsers. The shared rows are subgrid: each card spans five of the grid's row tracks and adopts them, so the title row is as tall as the tallest title in that row and every meta line starts at the same height.

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--gutter); } .card { display: grid; grid-row: span 5; /* media, title, meta, body, footer */ grid-template-rows: subgrid; /* share the row's tracks with siblings */ row-gap: 0; } .card-media { aspect-ratio: 16 / 9; object-fit: cover; } .card-title { -webkit-line-clamp: 2; min-height: 2lh; } /* + display: -webkit-box */ .card-body { -webkit-line-clamp: 3; } .card-footer { align-self: end; }

Width: Auto-Fill, Bounded

A card grid's column count comes from the card's width, not from a fixed number. Choose a minimum card width (240px is typical for record cards, 160–200px for thumbnails) and let repeat(auto-fill, minmax(min, 1fr)) compute how many fit. The maximum takes care of itself: a card can't grow past the point where another column would fit, so it never exceeds about twice its minimum. A fixed count gives the opposite behavior, squeezing cards narrow in a narrow main and stretching them into slabs on a wide one, which is Part I's stretching failure inside a grid.

repeat(3, 1fr) · Wrong
repeat(auto-fill, minmax(240px, 1fr)) · Right
Same five cards · Drawn at 50% · Main width switches between three real widths At 720 the fixed grid makes cards about 220px wide, below the minimum; auto-fill makes two. At 1360 the fixed grid makes 430px slabs; auto-fill makes five cards near their designed width.

Use a fixed count only when the number of items is fixed and small, such as three plans on a pricing page or four tiles in a summary row. Those aren't collections; they are spans on the page grid (Part I §V), and they map down at breakpoints the way spans do.

A 2-column card row and a 3-column card row never share a container. A "featured" pair over a row of three is Part I §V's two grids in one container, the same failure as problem 1 in section I. If the featured items are a separate group, give them a heading and the same track grid; a short row then leaves an empty track instead of inventing a new grid.

A card grid is read across its rows. Fix the media ratio, give every text part a line budget, anchor the footer, and the row reads as one row however uneven the content is.

V. The Form's Columns

A form is one column of fields with their labels on top. A second column is allowed only for short fields that together make one value, such as a start and end date or a latitude and longitude. Field widths show how long the expected input is.

Edit station
1Station nameNorth channel
2SiteHarlow Marsh
3Station IDST-0412
4OwnerN. Adeyemi
5Interval1 min
6NotesMounted on the…
CancelSave changes
Two columns by default · Wrong

Unrelated fields side by side, every field the same width. The eye zig-zags, and a 7-character ID gets the same box as a paragraph of notes.

Edit station
Station nameNorth channel
Station IDST-0412
SiteHarlow Marsh
Latitude51.7324
Longitude0.4181
Interval1 min
NotesMounted on the north sluice wall, 0.4 m above the spring-tide line.
CancelSave changes
One column · One paired row · Right

Read top to bottom. Latitude and longitude share a row because they are one location. Widths come from the column's grid: full for the name, a half for the site, a third for the ID and the interval.

One column is the default because a form is read in order. A single column gives one path from the first field to the action row, with no decision at the end of each line about where to look next. Two columns of unrelated fields can be read across or down, and users do both, which is how fields get skipped. The Z-order numbers in the left specimen show the path a reader has to take. Practice has converged here: GOV.UK's question pages go further and ask one thing per page, and most product systems lay out settings and edit forms in a single column.

A paired row is legitimate when its fields are one value split in parts. Start and end date, latitude and longitude, city / region / postcode, first and last name in locales that use both. The pair is read as one thing, so reading across is the natural path. A paired row never holds two unrelated fields to save height. If the form is too long, split it into sections with headings or into steps, not into columns.

Labels and Widths

Labels go above their fields, in this series, always. Top labels scale to any label length and any locale, stack cleanly on a phone, and keep the label and the field on one left rail. Left-aligned side labels make a label column, which is the inline label–value pattern from Part II §VII; it suits dense read-only inspectors, not editing.

Field width signals the expected input. A full-width field for a two-digit value looks like it wants more, and a narrow field for a long address looks like it will truncate. Pick widths from a short set, the same way containers have a set, and take the set from the column: full (the form column, 560px) for names, descriptions, and addresses; half (272px) for emails, selects, and searches; third (176px) for IDs, dates, and phone numbers; quarter (128px) for counts, years, and prices. The fractions tile a row with 16px gutters, which is what keeps a paired row from looking arbitrary. Only a fixed-format value, a two-letter state, a five-digit ZIP, a three-letter currency code, a time, goes narrower, at its character count plus the inset, rounded up to 8. Numbers sit right-aligned in their field with the unit after it. Forms I §V takes the grid further, to forms whose inputs share the screen with a result. GOV.UK's text input ships fixed widths for the same reason.

The Action Row

The action row ends on the form column's right edge, not the window's. In a 560px form centered in a wide main, Save changes belongs under the last field's right edge, where the eye is when the form ends. Pushing it to the far right of the screen puts the primary action 700px from the content it submits. The row itself follows Part II §V: Cancel then Save changes, primary last, the gap smaller than the buttons' inset. On a long form the row sticks to the bottom of the viewport so it's always reachable.

NotesMounted on the north sluice wall, 0.4 m above the spring-tide line.
CancelSave changes
Retire station

Stops readings and removes the station from every dashboard. Stored readings stay, read-only.

Retire station…
Routine pair · Irreversible in its own section

Cancel and Save changes end the form. Retire sits below a full rule, at the leading edge, and opens a confirmation.

Retire North channel (ST-0412)?

Readings stop now. The station leaves 3 dashboards and 2 alert rules, and its 412,600 stored readings become read-only. This can't be undone.

CancelRetire station
The confirmation names the consequence

The button repeats the verb. The body says what changes, how much, and that it's permanent.

Irreversible actions never join the routine pair. This is the rule from Part II §V, and it matters most in forms, because Save changes is pressed by reflex. Retire, delete, publish, send, and deploy each get their own position, separated from the action row by a full-width rule, at the leading edge, never styled as the form's default button, and always through a confirmation that names what will happen. When the irreversible action is the whole point of the screen (an editor whose job ends in publishing), there is no Save button for it to sit next to: drafts save on their own, and the publish action stands alone in the header.

Q3 calibration report Draft Saved automatically · 12:04 Submit to regulator…
Editor header · Drafts save on their own · The irreversible action stands alone and opens a confirmation
One column, top labels, widths that match the answer. Two fields share a row only when they are one value, and nothing irreversible ever shares a row with Save.

VI. The Detail Screen

One record's screen is assembled in a fixed order: header, summary strip, properties, related collections, activity. The order goes from identity to history, and it is the same for every kind of record in the product.

Stations / Harlow MarshNorth channel ST-0412 OnlineWater level and temperature · installed Mar 12, 2024
EditSchedule visit
Level now1.84m+0.12 vs 24h ago
Readings · 24h1,440100% of expected
Battery64%−3 pts a week
Calibrated41d agoDue in 49 days
Alerts12View all
AlertStatusOpened
Level above thresholdAcknowledgedOct 13
Gap in readings · 9 minClosedOct 2
Level above thresholdClosedSep 28
Enclosure openedClosedSep 4
Activity
Battery fell to 64%2h
N. Adeyemi completed a field visitOct 9
I. Varga recorded a calibrationSep 4
PropertiesEdit
Site
Harlow Marsh
Location
51.7324, 0.4181
Sensor
Pressure + thermistor
Firmware
4.2.1
Interval
1 min
Owner
N. Adeyemi
A station's detail screen · One 12-column grid · Header 12 · Tiles 3 + 3 + 3 + 3 · Body 8 + 4 The numbers are reading order. At this width properties take the 4-column side; below 1024 the regions stack in the numbered order.

The Order, and Why

1 · Header. Identity first: the record's name, its code, its status, and where it sits in the hierarchy (the breadcrumb). The header carries the record's next step as its primary action, here Schedule visit, with Edit beside it as a secondary action. Everything rare or irreversible (retire, transfer, delete) goes in the overflow menu, apart from the routine actions. 2 · Summary strip. The three or four numbers that describe the record's state right now, as stat tiles with one anatomy on the page grid's tracks (Part II §VII). Four is the usual maximum, and if the record has no numbers worth a tile, it has no strip. 3 · Properties. The record's stored facts as label–value pairs, read-only. 4 · Related collections. The other records that point at this one, each a short collection in the related entity's own form. 5 · Activity. What happened to it, newest first.

The order holds because each region answers a question that only makes sense after the one before: what is this, how is it doing, what are its facts, what is it connected to, what has happened to it. A detail screen that leads with its activity feed, or that puts the related table above the summary, makes the reader scroll past history to learn what they're looking at. At 1024 and above, properties move to a 4-column side column beside the related collections (Part I's 8 + 4, primary and secondary), because a narrow column of label–value pairs is exactly the shape that column has. Below 1024 they stack back into the numbered order. When a record has more than two related collections, they move behind tabs below the summary strip, with an Overview tab holding properties and activity; one or two stay on the page.

Show Values, Not Fields

Properties
SiteHarlow MarshLocation51.7324, 0.4181SensorPressure + thermistorInterval1 min
Detail as a disabled form · Wrong

Every value in a box that looks editable and isn't. The page reads as a form someone left half-filled.

PropertiesEdit
Site
Harlow Marsh
Location
51.7324, 0.4181
Sensor
Pressure + thermistor
Interval
1 min
Values as text · Edit per section · Right

Read mode shows values. Edit opens this section's fields, or the editor template for the whole record.

A detail screen shows values as text. The always-on form, where every property sits in a disabled input, is the detail-screen version of section I's stack of forms. It's tempting because one component serves both reading and editing, but it doubles the visual weight of every value, hides which fields can actually change, and leaves the user unsure whether the screen is saved. Editing is a mode. Either a section switches to its fields in place, with its own Cancel / Save changes, or the Edit button opens the editor template for the whole record. Don't make a read-only screen look editable.

Identity, state, facts, relationships, history. A detail screen that keeps that order for every kind of record is one the user only has to learn once.

VII. The Collection Screen

A screen of many records has four regions, always in this order: the page header with the create action, the toolbar, the collection, and the pagination. Its empty states come in two kinds that must never be confused: nothing exists yet, and nothing matches.

Stations 48
ExportNew station
Search stationspell Site: All ▾ Status: Any ▾ Status: Alarm × Sort: Last reading ▾
StationSiteStatusLast readingBattery %
Outfall pipeST-0419Harlow MarshAlarm6 min ago18⋯
North channelST-0412Harlow MarshOnline2 min ago64⋯
Upper sluice gateST-0502Brennock FenOnline1 min ago91⋯
Pump house outflowST-0507Brennock FenOnline1 min ago88⋯
Ridge mastST-0388Kestrel RidgeOffline6 h ago—⋯
Point buoyST-0611Scarrow PointCalibrating14 min ago77⋯
No stations match “pell” with Status: AlarmTry a different search, or clear the filters to see all 48 stations.Clear filters
No stations yet Stations send readings from a site. Add the first one to start collecting data, or import a list from a spreadsheet.
Import CSVNew station
1–6 of 48
PreviousNext
The stations collection · Same screen, three states Switch states. With zero results the toolbar and column headers stay, because the user's next move is to change them. With nothing at all there is nothing to filter, so the toolbar goes and the empty state explains the screen.

Header and Toolbar

The create action belongs to the page header, at its trailing end, because it acts on the collection as a whole and is the same action on every collection screen. Putting it in the toolbar mixes it with controls that only change the view. The toolbar has two ends. At the start, everything that changes which records are shown: search, then filters. At the end, everything that changes how they are shown: sort, view, columns, density. The split gives each end one job, and it means a user who has filtered down to nothing knows exactly where to look to undo it. When rows are selected, the toolbar is replaced by a bulk-action bar; what goes in it is the Data Tables chapter's subject, but where it goes is decided here: it takes the toolbar's place, so nothing below moves.

Pagination or Load More

Tables scroll a finite set; browsing grids load more. A table is a working surface: users sort it, come back to it, and need to know where they are and how many there are. A virtualised table that keeps its count and a proportional scrollbar gives them that by default, and numbered pages ("1–50 of 1,284") when a page is costly to load or needs an address (Data Tables §XIII). A card grid browsed for recognition, or an activity feed, can load more at the bottom, because position in it doesn't matter. Infinite scroll is never right for a screen with something below the collection, because the something can't be reached, and never right for a table in the literal sense of a set with no end, because a table is sorted and counted and a feed can be neither.

True Empty and Zero Results

True empty means no records exist. The screen's job is to explain what the collection is for and offer the way to start, so it gets a centered empty state (one of the few compositions Part II §IV lets center) with a short explanation and the create action. The toolbar is hidden, because there's nothing to search or filter. Zero results means records exist and the current search or filters exclude them all. The screen's job is to get the user back to their records, so the toolbar and column headers stay exactly where they were, the message names the query and filters that produced nothing, and the action is Clear filters. The common failure is showing the true-empty state for zero results: "Create your first station" to a user who has 48, which reads as if the data has disappeared. The content of both states belongs to the Feedback & Notification chapter; this chapter fixes their position and what stays on screen. Carbon's empty-states pattern draws the same line between "no data" and "no results."

The page header says what the collection is and how to add to it. The toolbar's start decides which records, its end decides how they're shown. When nothing matches, keep the controls on screen, because changing them is how the user gets their records back.

VIII. Page Templates

A product needs about five page templates: collection, detail, editor, dashboard, and settings. Every screen is one of them. A screen that doesn't fit any of them is usually two screens.

Full · no cap
Wide · 1280
Narrow · 560–640
Wide · 1280 · 12-column spans
Narrow · beside a sub-nav

Header with create · Toolbar · Collection · Pagination · Full width, because tables get better with width

Header with next step · Summary 3 + 3 + 3 + 3 · Related and activity 8 · Properties 4

Header · One column of fields · Action row on the column's right edge

Stat row · Primary chart 8 + list 4 · Two recent collections 6 + 6 · Every panel links to its collection

Sub-nav of sections · Each section saves on its own

One frame, five mains · The frame never changes; the template decides the container and the regions
TemplateContainerRegions, in orderPrimary action
CollectionFullPage header · toolbar · collection · paginationCreate, in the page header
DetailWide, or full if data-heavyHeader · summary strip · properties · related · activityThe record's next step, in the header
EditorNarrow, 560–640Header · sections of fields · action rowSave changes, in the action row; publish-type actions alone in the header
DashboardWide, 12-column spansStat row · primary panel + secondary · recent collectionsUsually none; each panel links to its collection
SettingsNarrow, beside a sub-navSub-nav · sections, each self-containedPer section, at the section's foot

The container column comes straight from Part I §III: a template's first decision is whether its content gets better with width. Collections do, so they get the full container. Editors and settings are read field by field, so they get the narrow one. Detail and dashboard screens are composed of a few blocks whose relationships matter more than their size, so they get the wide container and the 12-column grid. Material 3's canonical layouts (list-detail, supporting pane, feed) are the same idea at the level of the frame: a few named arrangements that every screen picks from instead of inventing.

The template decides the regions and the primary action's position, and the screen fills them in. A team building a new screen starts by naming its template. If the answer is "a detail page, but with a dashboard at the top and a form at the bottom," that's section I's screen, and it's two or three screens that have been merged. Split them: the dashboard panel becomes the detail template's summary strip, and the form becomes the editor template behind the Edit button. The inspector is not a sixth template. It's the detail template reduced to a 360px column: header, summary as a two-by-two, properties, and at most one related collection, with "Open" leading to the full detail screen.

Five is enough for most products. A product with a canvas (a map, a diagram, a design surface) adds a canvas template, where the frame's main region is the work surface and everything else is a panel. A wizard is an editor split into steps. A sixth or seventh template needs the same justification a new breakpoint does: what does it do that none of the five can?

Every screen is a collection, a detail, an editor, a dashboard, or a settings page. If a screen is two of them at once, it should be two screens.

IX. Nesting Collections

Collections nest one level deep. A detail screen may hold a related collection, and a row may expand to show a summary of its record, but no collection sits inside an item of another collection. A table inside a card inside a table is never right.

StationStatusLast
▸North channelOnline2 min
▾Outfall pipeAlarm6 min
Battery18%, falling
Open alerts1
OwnerN. Adeyemi
Last visitOct 9
Open station
▸Tidal weirOffline6 h
Row expands to a summary · Right

The expansion is a band of label–value pairs on the row's text rail, and a link to the full record. It holds facts, not another collection.

SiteStations
▾Harlow Marsh6
North channel
Level1.84
Temp11.2
Battery64
Outfall pipe
Flow0.31
Turbidity42
Battery18
▸Brennock Fen11
Table in card in table · Wrong

Three levels of collection, three sets of borders, and readings that can't be compared with anything. The stations deserve their own screen.

Alerts38View all 38
Battery below 20%Outfall pipe · ST-0419
2hOpen
Level above thresholdNorth channel · ST-0412
2dAck
Gap in readings · 14 minTidal weir · ST-0431
4dClosed
Related collection, capped · Right

A site's alerts on the site's detail screen: the newest few, and a link to the alerts collection already filtered to this site. No toolbar, no pagination, no second level.

One level is the limit because every level of nesting costs a full set of context. A collection inside a detail screen works because the detail screen is about one record, and the related collection answers one question about it ("what alerts has this site had"). A collection inside a row of a collection asks the reader to hold two lists in mind at once, each with its own columns and its own scroll position, and inside a card it adds a third set of borders. The readings in the wrong specimen can't be sorted, compared across stations, or reached by search, because they exist only inside an expanded row. They are records, and records belong on their own collection screen.

A related collection is capped and links out. Show the newest or most relevant five to ten rows, in the related entity's own form, with a count in the heading and a "View all" link to that entity's collection screen, already filtered to this record. A related collection never gets its own toolbar or pagination. If a user needs to search or page through it, they need the real collection screen, and the link should take them there with the filter applied. A row expansion holds a summary, not a collection: a few label–value pairs and a link to the record, laid out as a band on the row's text rail (Part II §X) rather than a nested box with its own inset.

The spacing follows the nesting rule, which matters more here than anywhere because nested collections are exactly where the levels pile up. The gap between label and value inside the expansion is smaller than the row's own padding, which is smaller than the gap between the related collection and the next section of the detail screen. When an expansion's internal gaps match the gaps between rows, the expanded content reads as more rows of the table rather than as the inside of one.

One level of nesting. A detail can hold a collection, a row can hold a summary, and anything deeper is a link to another screen.

X. Consistency Across Screens

The same entity takes the same form on every screen. Where a screen has less room, it shows a derivation of that form: fewer columns in the same order, then a list built from the same fields, then a single row. It never switches to a different form.

That is Part I §IX's rule, and this section is about how to keep it when the same records show up at very different sizes. Stations appear on the stations screen, in a site's detail screen, in the inspector when a site is selected on a map, and in search results. The failure is designing each of those places on its own: cards in the panel, a table on the screen, a sentence in search. The fix is to derive every appearance from the full table.

StationSiteStatusLast readingBattery %Readings 24h
North channelST-0412Harlow MarshOnline2 min ago641,440
Outfall pipeST-0419Harlow MarshAlarm6 min ago181,436
Tidal weirST-0431Harlow MarshOffline6 h ago—1,102
1 · Stations screen · The full table
Stations6View all
StationStatusLast reading
North channelOnline2 min ago
Outfall pipeAlarm6 min ago
Tidal weirOffline6 h ago
2 · Site detail · Narrower table

The top three columns by priority, in the same order. Site is dropped because the screen already answers it.

Stations6
North channelST-0412
Online2 min ago
Outfall pipeST-0419
Alarm6 min ago
Tidal weirST-0431
Offline6 h ago
3 · Inspector panel · List

At 360px the same three fields become a list row: identity on the left, status and time in the trailing slots.

StationNorth channelST-0412 · Harlow MarshOnline2 min ago
StationNorth dykeST-0515 · Brennock FenOnline3 min ago
AlertLevel above threshold · North channelAcknowledgedOct 13
4 · Search · One row per record, same fields, same order

Read the four specimens left to right and the station never changes shape. Its name is always first and always the link. Its status is always the same pill with the same words. Its last reading is always relative time in the same format. What changes is how many fields fit, and that's decided by a field priority set once per entity, not by whoever builds the panel.

Station fieldPriority1 · Table2 · Related3 · List4 · Search
Name + code1Column 1Column 1Line 1, line 2Main text
Status2Column 3Column 2Trailing slotTrailing slot
Last reading3Column 4Column 3Trailing slotTrailing slot
Site4Column 2Implied by screenImplied by panelSecondary text
Battery %5Column 5———
Readings 24h6Column 6———

Four rules make derivations consistent. Keep the order. A derived view takes the fields it has room for and shows them in the full table's order, so a user's eye goes to the same place in every view. Drop by priority, and drop what the context answers. Fields leave in reverse priority order, except that a field the surrounding screen already answers (the site, on a site's screen) leaves first. Format identically. The same status labels, the same pill, the same time format, the same number precision; "6 min ago" in one place and "09:06" in another is a different form as far as the eye is concerned. Link to the same place. The identity in every derivation opens the same detail screen.

A second view of the same entity is legitimate when it serves a different task: stations on a map when the question is where, sites as a card gallery when the question is which one looks right. Offer it as a view switch on the collection screen's toolbar (the end that changes how records are shown), remember the user's choice, and keep the table as the default and as the form used everywhere else. What isn't legitimate is a screen choosing its own form for an entity because it looked better in that spot.

Decide each entity's form and its field priority once. Every other appearance of that entity is the same form with fewer fields, never a different form.

XI. Auditing a Screen

The rules above reduce to a check that anyone on a team can run on a screen without arguing about taste. Here is section I's site screen after one pass.

Sites / North estuaryHarlow Marsh 1 alarmTidal marsh · 6 stations · established 2019
Edit siteAdd station
Readings · 24h8,640100% of expected
Open alerts31 alarm
Battery avg71%Lowest 18%
Uptime · 30d99.2%1 station offline
Stations6View all
StationStatusLast readingBattery %
Outfall pipeAlarm6 min ago18
North channelOnline2 min ago64
South lagoonCalibrating14 min ago76
Tidal weirOffline6 h ago—
Field visits2View all
Replaced desiccant in the outfall enclosureN. Adeyemi · battery swap booked
Oct 9
Calibrated North channel and South lagoonI. Varga · against the reference gauge
Sep 4
PropertiesEdit
Region
North estuary
Type
Tidal marsh
Location
51.73, 0.42
Access
Boardwalk, at low tide
Owner
I. Varga
Last visit
Oct 9
After the audit · Same content · Detail template, one grid, each entity in its own form Nothing was redesigned. The tiles moved onto the screen's grid, the stations took the form they have everywhere else, the visits became a list, and the properties found their column.
CheckFound in §IFix
TemplateNone: part dashboard, part detail, part editorDetail template; regions in the order header, summary, properties, related, history.
One grid2-up row over 3-up row, private gapsFour tiles at span 3 on the screen's 12 columns; "Last visit" moved to properties.
Entity formStations as masonryThe stations table, derived by priority: site dropped, battery kept because this screen is about the site's health.
Forms for editingVisits as read-only formsVisits as a list: summary on line 1, technician on line 2, date trailing. Editing a visit opens the editor.
Internal rulesCard heights set by contentContent-sized columns with Station taking the slack; two-line list rows with fixed trailing slots.
NestingEvery related record inlineRelated collections capped, each with a count and a View all to the filtered collection.

The Method

Name the template. Collection, detail, editor, dashboard, or settings. If the honest answer is two of them, the screen is two screens, and that finding comes before any other.

Mark the regions and check their order. Draw a box around each region and number it in reading order. Compare with the template's order. A detail screen with activity above properties, or a collection screen with its create button in the toolbar, fails here.

Trace every entity. For each kind of record on the screen, write down its form here and on its own collection screen. Any mismatch is a finding. Then check the derivation: same column order, fields dropped by priority, same status labels, same time format.

Check each form's internal rules. Tables: one fill column, the rest content-sized, the column kinds in order, numbers at the right edge, no more than about seven columns. Lists: two lines, fixed trailing slots, under 640px wide. Card grids: one track grid, fixed media ratio, clamped text, anchored footers. Forms: one column, top labels, widths by expected input, the routine pair on the form's right edge and irreversible actions apart.

Count nesting and check the states. No collection inside a collection's item. Every related collection capped with a View all. Then look at the screen with no records, with a search that matches nothing, and with the longest real names, because composition problems hide in placeholder content the same way alignment problems do.

Fix in the same order, because each step changes what the next one sees. Template first, since choosing it settles the regions and their order and often removes whole blocks. Then entity forms, since replacing masonry with the entity's table removes a dozen smaller problems at once. Then internal rules, which are now applied to the right forms. Then states, which only make sense once the structure is fixed. Teams that audit their three busiest screens this way usually find the same thing the spacing and alignment audits find: not dozens of independent problems, but a missing template and two or three entities whose form was chosen per screen.

On a Phone

Templates reduce more cleanly than individually composed screens, which is one of the stronger arguments for having them. At 375px the collection template keeps its regions and its table becomes a list of the first three priority fields, which is the derivation from section X. The detail template stacks its regions in their numbered order, properties after the summary. Master/detail is two routes. Card grids drop to one or two columns with the same anatomy. Forms were already one column, so they don't change at all, which is the payoff of the single-column rule. A screen that was composed from scratch has no defined reduction; it gets one improvised, usually by a different person.

Name the template, number the regions, trace each entity to its collection screen. Most "this screen feels different" conversations end at the first question.

XII. The Decision Sequence

Composition decisions depend on each other in a fixed order, like Part I's layout decisions and Part II's alignment decisions, and most screens that feel inconsistent were composed in the wrong order, starting with the blocks before deciding what kind of screen holds them. In order, written down once for a product:

1
Inventory the entities and fix each one's formTable, list, card grid, per Part I §IX. One form per entity, recorded in the design system.
2
Set each entity's field priorityThe order its fields leave as space shrinks. It drives every derivation.
3
Write each form's internal rulesTable column kinds, order, and the one fill column. List row anatomy and width. Card anatomy and minimum width. Form column, field widths, action row.
4
Choose the templatesCollection, detail, editor, dashboard, settings, plus a canvas if the product has one. Each with its container from Part I §III.
5
Fix each template's regions and primary actionThe order of regions, where create and the record's next step live, where irreversible actions go.
6
Set the nesting limitsOne level. Related collections capped with a count and View all. Row expansions hold summaries.
7
Define the statesTrue empty and zero results for every collection screen, a zero line for every related collection, the longest real content.
8
AuditName the template, number the regions, trace each entity. On the busiest screens, each release.

Steps one through seven are system decisions. They change rarely and live in the design system next to the component inventory, as templates and as documented forms per entity. Step eight is the review habit that catches screens built before the first seven existed, or built without them.

What the Best Systems Avoid

Screens composed from scratch. Each screen designed as a one-off composition of library components. Each screen can look fine; the product adds up to as many layouts as screens.

Equal-width table columns. A table laid out like grid spans, with three-character values in 120px columns and names truncated beside them. Content-sized columns and one fill column fix it.

Full-width lists and stretched cards. A list across the whole canvas instead of a 360px pane beside its detail, and a fixed-count card grid that stretches cards into slabs on a wide screen.

Cards that grow to their content. Media at each photo's own ratio, unclamped titles, footers wherever the description ends. The row stops reading as a row.

Two-column forms by default, and detail screens as forms. Columns of unrelated fields that zig-zag the eye, and read-only screens built from disabled inputs.

Routine and irreversible actions in one group. Save beside Publish, Edit beside Delete. A reflex aimed at one lands on the other.

"Create your first" for zero results. The true-empty state shown to a user whose filters matched nothing. It reads as lost data.

Collections inside collection items. Expanded rows holding cards holding tables. Anything below the first level should be its own screen.

This part closes Grid & Layout. The frame and the column grid (Part I), the edges and axes (Part II), and the forms and templates (Part III) together decide where everything on a screen goes. What a table does, meaning sorting, filtering, selection, bulk actions, frozen columns, and in-place editing, is the Data Tables chapter. Field types, validation, and multi-step flows are the Forms chapter.

Part III of Grid & Layout. Continues Alignment.
Decide the form once and the template once. After that, a new screen is mostly a matter of filling in regions.