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

Grid & Layout

The application frame, the container, and the column grid — the structure that decides what belongs together and what matters most, before a single component is placed.

I. Why Layout Is a Primitive

Every layout makes two claims whether or not anyone intended them: that the things placed together belong together, and that the things given more room matter more. A layout system is the decision to make those claims on purpose, the same way, on every screen.

Most products don't start with a layout system. They start with screens, each one composed by whoever built it, against whatever the previous screen looked like. Every screen can look reasonable on its own. Put them side by side and the problem shows: one screen has a two-column row, the next a three-column row, then a table inset by a different amount. Collections of the same kind of record appear as cards on one page, a table on another, and a stack of forms on a third. Each was a local decision. Together they add up to a product with no layout definition.

← 8px inset ← 14px inset 20px gap vs 12px above
Three rows, three private grids · Dashed: the only edges the top row commits to A typical screen with no layout definition. The 2-up, the 3-up, and the table each set their own gap and inset. Nothing lines up, and nothing stands out.

Nobody chose that screen. It happened one row at a time, and it fails in two ways. The first is alignment: the three rows share no vertical edges, so the eye can't follow a line down the page and the composition reads as assembled rather than designed (section V explains why this registers even when nobody can name it). The second is direction: every block is about the same size and weight, so nothing tells the reader where to start. That is the undirected composition. On a phone it can't happen, because the narrow screen forces one column and a top-to-bottom order. On a 1440px or 2560px desktop canvas nothing forces anything, so it becomes the default.

This chapter is about the structure that prevents both failures. Part I works from the outside in: the frame (the application shell and its regions), the container (how much of a region the content may use), the column grid (how a container divides), the discipline of one grid per container, breakpoints, the desktop problem of filling a wide canvas, the shared edge, and finally the small set of presentation forms a collection of records may take. Spacing values, meaning the scale, the nesting rule, and density, come from the Spacing & Density chapter and are not re-derived here.

Layout is the first thing a user perceives and the last thing a team agrees on. If it isn't written down, every screen ends up with its own layout.

II. The Frame

Before any grid, there is the frame: the application shell that persists while the user moves between screens. Desktop applications have converged on a small vocabulary of named regions, and naming them is most of the work. A team that says "the inspector" and means the same 360px right-hand panel every time has already ruled out a whole class of incoherence.

Rail · 56
Top bar · 48 tall · fixed
Sidebar · 260
Main · fluid · minmax(0, 1fr)
Inspector · 360
The frame · 1440 × 900 drawn at 37.5% · Thin bars mark regions that scroll independently

The top bar carries global identity and utilities such as product switcher, search, account. The sidebar carries navigation (its internal design belongs to the Navigation chapter; here it is just a region with a width). Main is where the current screen's work happens. The inspector, also called the detail panel or properties panel, shows and edits whatever is selected in main. A narrow utility rail is optional: an icon strip for switching between whole modes or workspaces, the outermost layer in tools like VS Code and Slack.

Fixed Regions, One Fluid Region

The rule that makes a frame stable: every region has a fixed width except one, and the fluid one is main. Sidebars and inspectors get set widths (optionally user-resizable within bounds, optionally collapsible), and main takes whatever is left. With two fluid regions, a sidebar at 20% and main at 80% say, the sidebar grows on a large monitor, which it has no use for, and shrinks on a laptop until labels truncate, which it can't afford. Width belongs to the region whose content can use it. Navigation labels don't get longer on a bigger screen. Tables, canvases, and documents do get better.

RegionTypical widthWhy that number
Utility rail48–64pxOne icon-button column: a 32–40px target plus inset. Wider and it starts to look like a sidebar that lost its labels.
Sidebar240–280pxFits an icon, a label of about 20–24 characters at 14px, a count badge, and inset on both sides. Below about 220px labels truncate; above about 300px it takes width main needs. Collapses to a 48–64px rail.
MainFluid, min ~480pxGets the remainder. Its minimum decides when other regions must collapse, so set the breakpoints to protect main, not the sidebar.
Inspector320–400pxFits a form column: label plus a 240–280px field, or two-column property rows of about 100px label and 180px control, plus inset. Narrower and fields cramp; wider and it competes with main.
Top bar48–56px tallOne row of 32–40px controls plus vertical inset. Height is the scarce dimension on a laptop, so keep it to one row.

The Common Frames

Sidebar + main
Linear, Notion
Sidebar + main + inspector
Figma, VS Code
Top bar + main
Content-led, few destinations
Three-pane master/detail
Gmail, Apple Mail
Each drawn at about 12% of a 1440px canvas. Most applications are one of these four, or the first with a rail added (Slack).

Sidebar + main is the workhorse of SaaS: navigation on the left, the current screen filling the rest. Sidebar + main + inspector is the editing frame: select something in main, edit it on the right, never lose your place. Figma's properties panel and VS Code's secondary side bar are the familiar cases, and most design and data tools land here. Top bar + main suits products with few destinations where content dominates, and it is usually where reading surfaces (docs, articles, settings) live. Three-pane master/detail puts navigation, a list, and the selected item side by side. Mail clients made it standard because triage means reading the next item without leaving the list. The frames differ in how many regions they have, but the anatomy stays the same, and a product should use as few frames as it can, ideally one with optional regions.

Which Regions Scroll

A document scrolls the page; an application scrolls its regions. In an application frame the shell stays put. The top bar and the region edges never move, and each of sidebar, main, and inspector scrolls on its own, so a long navigation list doesn't drag the inspector with it. That is a structural decision with one implementation detail that catches nearly everyone:

.app { display: grid; grid-template-columns: 260px minmax(0, 1fr) 360px; grid-template-rows: 48px minmax(0, 1fr); grid-template-areas: "top top top" "nav main inspector"; height: 100dvh; } .app > .nav, .app > .main, .app > .inspector { overflow-y: auto; /* each region scrolls on its own */ } /* minmax(0, 1fr), not 1fr: a plain 1fr track will not shrink below its content's minimum width, so one wide table pushes the inspector off-screen. */

Two failure modes follow from getting this wrong. A frame that scrolls the whole page drags navigation and the inspector out of view, losing the persistent context they exist to give. A frame that nests scroll regions, with a scrolling card inside a scrolling panel inside a scrolling main, traps the wheel and makes users hunt for which surface is under the pointer. Keep one scroll container per region, plus a table's own body where sticky headers need it.

III. The Container & the Measure

Main is fluid, but that doesn't mean its content should be. Inside a region, the next decision is the container: how much of the region's width the content may use. The answer depends on whether the screen is a reading surface or a tool, and getting it backwards is one of the most visible layout errors on the desktop web.

Reading · Capped measure · Right

Prose in a 720px column on a 2560px canvas. The empty space on either side is doing its job.

Reading · Stretched · Wrong

The same prose filling 2200px. Lines run to 300+ characters, and finding the start of the next line becomes the work.

Tool · Full canvas · Right

A data table using the whole of main. Every extra pixel is another column or another character visible.

Tool · Boxed at 1200 · Wrong

The same table trapped in a centered 1200px container. The user bought a large monitor and gets a horizontal scrollbar next to empty space.

Reading surfaces want a measure. Comfortable reading runs to roughly 60–75 characters per line. Longer than that and the eye's return sweep to the next line starts missing. At 16px in a typical UI sans that is a text column of 30–38em (480–620px), the wider end only with open leading; the 640–820px that is often quoted holds for a monospace, not a proportional face. The container can be wider than the measure, since the measure caps the text and not the box. Typography Part II §III measures the derivation; layout's job is to honor it. Articles, documentation, long descriptions, comment threads, and single-record forms belong in a capped, centered container no matter how wide the screen is. Notion makes this a per-page setting, a "full width" toggle that defaults off, which concedes the point: the default for writing is the measure.

Tools want the canvas. Tables, boards, timelines, canvases, editors, and anything else where more width means more information visible at once should fill their region. The "centered 1200px container" is the right answer for a marketing page and a mistake inside an application, where it turns the most valuable width into decorative margins. The question for any screen is: does this content get better with more width, or just longer? Tables get better. Paragraphs only get longer.

Fluid With a Maximum, Never Fixed

Capped containers are fluid up to their cap, not fixed at it. A fixed 720px column on a 700px-wide region scrolls sideways; a fluid column with a maximum simply fills what it has. The idiom is one line:

.container-prose { width: min(100% - 2 * var(--margin), 720px); margin-inline: auto; }

Then make the container widths a named, short set, the same as color or spacing tokens, so screens pick a container instead of each inventing a max-width:

ContainerMax widthFor
narrow560–640pxSingle-record forms, settings pages, sign-in, confirmation steps. One column of fields reads top to bottom.
prose~720pxArticles, docs, descriptions, comment threads: anything read line by line.
wide~1280pxComposed overview pages: a landing dashboard of a few cards, a project home. Composition matters more than density here.
fullnoneTables, boards, canvases, editors: tools that improve with width.

Four is enough. Every additional container width is another way for two screens to disagree about where content starts, and a product with a dozen distinct max-widths almost always got them one screen at a time.

IV. The Column Grid

Inside a container, content is divided by a column grid: a set of equal columns separated by fixed gutters, inset from the container's edges by margins. The grid isn't something users see. It is an agreement that every block on the screen starts and ends on one of a small number of shared lines.

1
2
3
4
5
6
7
8
9
10
11
12
Margin Column · fluid Gutter · fixed
12 columns · 16px gutters · 24px margins A real CSS grid. Resize the window and watch the column width change while the gutters stay put.

Notice what the readout does as the page narrows: the columns change and the gutters don't. That is the standard construction, fluid columns, fixed gutters, and the reason is that the gutter is a relationship and the column is a quantity. The gutter says how far apart two neighboring things are. If it scaled with the viewport, the same two cards would be 16px apart on a laptop and 40px apart on a large monitor, and the spacing rhythm the rest of the system depends on would drift with window size. Columns are where flexibility belongs. Bootstrap holds a fixed gutter across breakpoints. Carbon's 2x Grid keeps its default 32px gutter at every size and only changes the column count.

Where This Chapter Ends

Gutter and margin values come from the spacing scale, a 4px base unit stepping through 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 96. Typical choices are 16 or 24 for gutters and 24 to 48 for margins. The boundary is worth stating once: the scale itself, the nesting rule (inner spacing is smaller than outer spacing at every level), and density posture (compact, default, comfortable) are defined in Spacing & Density. Gutters, margins, column counts, container widths, and region structure are defined here. Spacing decides what the values are. Layout decides where they go. A gutter is just the scale's 24 used in a specific place, the gap between columns, as distinct from inset (padding inside a component), stack (vertical gap), and inline (horizontal gap between siblings). Keeping the words separate keeps the decisions separate: someone changing card padding should never be editing the grid's gutter by accident.

Why Twelve

12
6
6
4
4
4
3
3
3
3
8
4
9
3
5 · rare
7 · rare
One grid, every common division · Halves, thirds, quarters, and two asymmetric pairs

Twelve is the smallest number that divides evenly into halves, thirds, quarters, and sixths. Those are the only divisions most layouts need, and with twelve every one of them lands on the same set of lines. Ten gives halves and fifths but no thirds or quarters; sixteen gives halves, quarters, and eighths but no thirds, which is the trade Carbon's sixteen-column grid accepts in exchange for finer subdivision. Twelve isn't magic. It's the number that makes the common layouts integer arithmetic, which is why Bootstrap, Material's large-screen grid, and most product systems use it.

Three Grid Models

The twelve-column grid is a model for page composition: how the blocks of a screen relate to one another. It isn't the only grid on the page, and treating it as one is how teams end up forcing card collections and component internals onto twelve columns where they don't fit. CSS Grid offers two other models, and each has a distinct job:

ModelCSSUse for
Column gridrepeat(12, minmax(0, 1fr)) + spansPage composition: the major blocks inside a container, such as a chart beside a summary, a form beside its help, KPI tiles above a table.
Track gridrepeat(auto-fill, minmax(240px, 1fr))Collections of like items such as cards or tiles, where the item has an ideal width and the count per row should follow the available space.
Templategrid-template-areasComponent internals, like a card's media, title, meta, and actions. The structure is fixed and named, and the 12 columns are irrelevant.

The track grid deserves a demonstration, because it is the right answer to a question teams usually answer wrong: how many cards per row? The answer is "as many as fit at a sensible width," and CSS will compute it:

repeat(auto-fill, minmax(120px, 1fr)) Drag the bottom-right corner to narrow the container. Cards keep their width; the row count changes.

One keyword matters here. auto-fill keeps empty tracks when there are fewer items than slots, so two cards on a wide screen stay card-sized and sit at the left. auto-fit collapses the empty tracks and lets the items stretch to fill the row, so two cards on a wide screen become two 900px slabs. For collections, auto-fill is almost always what you want. This is the first appearance of a theme section VII develops: on the desktop, things that stretch to fill the space usually get worse.

/* Page composition: a column grid with spans */ .grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); /* 24px, from the spacing scale */ padding-inline: var(--margin); /* 32px */ } .span-8 { grid-column: span 8; } .span-4 { grid-column: span 4; } /* A collection of like items: the track width decides the count */ .collection { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--gutter); } /* A component's internals: named areas, no columns to count */ .record-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "media title" "media meta" "actions actions"; }

V. One Grid Per Container

This is the rule this chapter exists for: every container commits to one column grid, and every block inside it starts and ends on that grid's lines. When a block needs internal structure (a chart with a legend, a card with two fields side by side), that structure is a new grid nested inside the cell. It is never achieved by switching the parent's column count halfway down the page.

The screen from section I breaks this rule three times. The 2-up row is a flex row with its own gap, the 3-up row is a three-column grid with a different gap and its own inset, and the table has a third inset. Each row is internally consistent and they share nothing. Here is the same content three ways, each drawn over a twelve-column overlay:

Wrong · Three rows, three private grids · Edges fall between the overlay's lines
Aligned · One 12-column grid · 6 + 6 over 4 + 4 + 4 over 12 · Outer edges and gutters agree
Directed · 8 + 4 over 4 + 4 + 4 · The solid lines are a gutter both rows share · The 8 holds a nested 2-column grid Same content. The second version is aligned; the third is aligned and has a clear starting point.

The middle version fixes alignment: both rows run edge to edge on the same outer lines with the same gutter, and the table spans the same width. It can't share interior edges, because halves and thirds of twelve don't meet anywhere inside. The third version shows what a shared grid makes possible. With the top row at 8 + 4, its interior gutter is the same gutter as the triad's second, so a continuous vertical channel runs down the page. The 8-span also fixes direction: one block is clearly primary, and the reader knows where to start. Its internal two-part structure is a nested grid inside the cell, using a smaller gap than the parent's gutter, which is the nesting rule applied to layout.

Why Misalignment Feels Wrong

People rarely say "those edges are 8px apart." They say a screen feels messy, cheap, or busy. The perception behind it is well established: the visual system infers continuous lines from aligned edges, the Gestalt principle of continuity, and uses them to group what lies along them. Aligned edges produce invisible guides that the eye travels down. Near-misses of 4 to 16px are the worst case, because they're too close to read as deliberate offsets and too far apart to read as aligned. The viewer sees an error without being able to point to it. Things should be either clearly aligned or clearly not. A grid makes "clearly aligned" the default, so it no longer depends on each designer's eye on each screen.

The Allowed Spans

SpansReads asUse for
12One thingTables, full-width charts, page headers, anything that is the screen's subject.
6 + 6A pair of equalsComparison, before/after, two peer summaries.
4 + 4 + 4A set of threeThree peer cards or summaries. A triad is complete; a fourth item wants 3 + 3 + 3 + 3.
3 + 3 + 3 + 3A row of tilesKPI tiles, small stats, short metrics.
8 + 4 · 4 + 8Primary + secondaryMain content with a supporting column: chart and summary, form and help, record and activity.
9 + 3 · 3 + 9Content + narrow asideContent with a table of contents, a filter column, or metadata.
5 + 7 · 7 + 5AmbiguousRare. Only when the content truly demands it, never as the result of nudging.

The reason 5 + 7 should be rare is perceptual, not dogmatic. The two sides are 42% and 58% of the row: too unequal to read as a pair of peers and too close to read as primary and secondary. The eye can't sort it, so it reads as two equal blocks one of which came out wrong. When 5 + 7 shows up in practice, it is usually because someone nudged a 6 + 6 to fit a long label. The honest fixes are to go to 8 + 4, or to make the content fit 6.

/* Wrong: each row invents its own grid */ .summary-row { display: flex; gap: 12px; } .cards-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0 8px; } /* Right: the container owns one grid; rows are just spans on it */ .page-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); } .primary { grid-column: span 8; } .secondary { grid-column: span 4; } /* Sub-structure: a new grid inside the cell, with a smaller gap */ .primary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } /* smaller than the 24px gutter */ /* Or, when children must land on the parent's lines: subgrid */ .section { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; }

The last line is worth knowing. A nested grid has its own lines; subgrid lets a nested element adopt its parent's lines instead, so a section wrapper (a card with a heading, say) can contain children that still sit on the page's twelve columns. It has been supported across current browsers since 2023. Use nesting when the inner structure is the block's own business, and subgrid when the inner items have to align with things outside the block.

Changing the column count mid-container is the layout equivalent of changing font size mid-sentence. Each row may look fine on its own, but the page no longer reads as one thing.

VI. Breakpoints & Reflow

A breakpoint is commonly described as a device size, "tablet" or "laptop." That framing causes most breakpoint sprawl. A breakpoint is better defined as the width at which the layout changes its column count or its frame. Devices don't come in a few sizes; windows are any size at all, and on the desktop they get resized constantly. What does come in a few sizes is the layout, and the breakpoints are the boundaries between those few layouts.

SystemBreakpointsColumns
Tailwind640 · 768 · 1024 · 1280 · 1536None imposed; utilities only
Bootstrap 5576 · 768 · 992 · 1200 · 140012 at every size
Carbon 2x Grid320 · 672 · 1056 · 1312 · 15844 → 8 → 16
Material 3600 · 840 · 1200 · 1600 (window size classes)Panes, not columns, at larger classes

The systems disagree on the numbers and agree on the structure: a small set of breakpoints, each one a change in column count or region count. Carbon's is the clearest model, with 4 columns on small screens, 8 on medium, and 16 from large up, while gutters hold steady. Material 3 has moved furthest from columns. Its window size classes (compact, medium, expanded, and more recently large and extra-large) mostly decide how many panes the frame shows, which is the frame-level decision from section II. Both are right, because a breakpoint can change either thing.

A Sane Set

WidthColumnsMargin / gutterFrame
≥ 14401248 / 24Sidebar + main + inspector, all persistent. Capped containers stay capped.
1024–14391232 / 24Sidebar + main. Inspector overlays main or opens on demand.
640–1023824 / 16Sidebar collapses to a rail. Inspector becomes a sheet.
< 640416 / 16Main only. Navigation in a drawer; detail as its own route.

Three breakpoints, at 640, 1024, and 1440, give four layouts, and every one of them is a structural change. That is the test for adding a fifth: what changes at this width? If the answer is "the cards get a little narrower," the grid already handles it and no breakpoint is needed. Every breakpoint multiplies the states a screen has to be designed and tested in. Teams with eight breakpoints don't have eight designed layouts; they have two designed layouts and six accidents.

How Spans Map

When the column count drops, each span needs a defined destination. A twelve-column span maps to the 8- and 4-column grids by intent, not by arithmetic:

At 12At 8At 4Note
1284Full stays full.
8 + 48 / 84 / 4Primary first, secondary stacks below it. Reading order is preserved.
6 + 64 + 44 / 4The pair survives at 8 and stacks at 4.
3 × 44 + 4 / 4 + 42 + 2 / 2 + 2Tiles go 4-up → 2 × 2 → 2 × 2, staying in pairs.
4 + 4 + 44 + 4 / 84 / 4 / 4The awkward one, see below.

The triad is the span that doesn't survive eight columns cleanly. Three doesn't divide eight, so the honest options are a 2 + 1 with the orphan spanning the full width (acceptable when the third item is naturally different, such as a summary), stacking all three (wasteful at 8 columns), or treating the triad as a collection and letting a track grid decide the count. If triads of like items are common in your product, that last option is usually the right one.

1280px · 12 columns · 32px margins · 24px gutters
Drawn at 35% · Layout driven by real container queries on the frame's width Drag the slider. Tiles go 4-up, then 2 × 2. The chart and summary stack. Below 640 the table turns into a list.

Container Queries

Media queries ask how wide the window is. In a frame with a sidebar and an inspector, that's often the wrong question. The same record card may appear in main, which is 900px wide, and in the inspector, which is 360px wide, on the same screen at the same moment. A card styled by media query has one layout for both and is wrong in one of them. Container queries ask how wide the component's own container is, which is the question a component can actually answer. They have been supported across current browsers since 2023, and the demo above uses them: the frame doesn't know the window's width, only its own.

/* The region declares itself a container… */ .main, .inspector { container-type: inline-size; } /* …and the card adapts to whichever region it is in */ .record-card { display: grid; grid-template-columns: 1fr; } @container (min-width: 480px) { .record-card { grid-template-columns: 120px minmax(0, 1fr); } }

The division of labor that results is clean: media queries change the frame (how many regions, which collapse), and container queries change components (how a card arranges itself in whatever region it is placed in). The page grid sits between them, keyed to main's width, which is itself a container query once there is a sidebar involved.

Last, the order of work. Desktop first means defining the widest layout completely, with all regions, the full grid, and every span chosen, and then defining what each region and span reduces to at each breakpoint below it. That isn't a CSS authoring order; mobile-first min-width queries are a fine way to write the result. It is a design order. The wide layout has the most decisions, and decisions made at 375px and scaled up tend to leave the wide canvas undecided, which is the subject of the next section.

VII. Filling the Wide Canvas

Desktop monitors run from 1280px laptops to 2560px and wider displays, and a maximized browser window offers all of it. The phone never posed this problem, so mobile-first systems rarely answer it. Their usual default is to stretch: the 1024px layout, with every block made proportionally wider. Stretching is the wrong answer almost everywhere. Table rows get so long the eye can't track across them, cards become 600px slabs with a thumbnail in one corner, line lengths go past any reading measure, and there is more empty space inside every component.

1920px canvas
Stretch
Reflow
Same dashboard, same width · Drawn at 26% · Card widths measured live At 1024 the two are nearly identical. Drag toward 2560: the top one only gets wider, while the bottom one adds columns and opens an inspector.

The reflowed version applies four moves, and between them they cover nearly every wide-canvas problem:

Cap the measure. Anything read line by line stays in its capped container (section III). Width beyond the measure goes to margins, and that's fine, because white space beside a reading column reads as calm, not waste.

Add columns, don't widen items. A collection gets more items per row as width grows; each item keeps its designed width. A card designed at 260px works at 260px. At 600px the same content just has more empty space inside it. The track grid from section IV does this with one declaration.

Let regions absorb width. The frame is the best place to spend extra width. At 1440px and up, an inspector that was an overlay becomes a persistent column. Main stays at a size its content works well at, and the surplus goes to a region with its own job rather than being spread thin across everything.

Use the width for persistent context. On a laptop, opening a record might reasonably mean a modal or a full-page route. On a wide screen the same action should open a detail panel beside the list, so the user can see the item and where it came from at once, and move to the next item without closing anything. The modal is a small-screen compromise that wide screens don't need, and some of the most-praised desktop tools (Linear's issue peek, the mail client's reading pane) are this move applied consistently.

Tables get one more rule. When a table is wider than its content needs, the extra width should go to the column that can use it, usually the primary text column (name, title, description). It should not be spread evenly across every column so that a three-character status sits 200px from its neighbor. Give numeric and status columns fixed or content-sized widths, and let one column be fluid. The full treatment belongs to the Data Tables chapter, but the principle is the wide-canvas principle again: width goes where it improves something.

Section III's question is the test for every block on a wide screen: does this content get better with more width, or just longer? Tables get better. Paragraphs only get longer. The stacked card from section IX fails it twice, because a column of full-width record cards only gets longer, and wider, without showing anything more.

A wide screen gives you room for more things, not bigger things. Use the extra width for more columns, more context, or more margin, but don't let it stretch the items you already have.

VIII. Alignment & the Shared Edge

The column grid aligns blocks. Inside a region there is a finer alignment that gets broken more often: the shared left edge. Headings, cards, tables, form fields, and buttons in a region should all start at the same x position, and when they don't, the region has a ragged left edge even though every block is "on the grid."

Billing
Current plan
Team · 12 seats
InvoiceAmount
Sep 2026$1,140
Aug 2026$1,045
Ragged left · Wrong

The heading, the card, the table text, the label, and the button each start somewhere different.

Billing
Current plan
Team · 12 seats
InvoiceAmount
Sep 2026$1,140
Aug 2026$1,045
Shared edge · Right

Unboxed text and box edges share one line. Text inside boxes shares a second, consistent inset.

The rule that keeps this tractable comes in two parts. Unboxed content aligns its text to the edge; boxed content aligns its box to the edge. A heading has no box, so its text sits on the line. A card and an input have visible boxes, so their borders sit on the line and their text sits at a consistent inset inside, ideally the same inset for every boxed component, which produces a second, inner shared edge (the dotted line). The usual offender is the unbordered table. Its cell padding indents the first column's text by 8–16px from the heading above it, with no visible box to explain why. Either remove the first cell's leading padding so the text hangs on the edge, or give the table the same visible container a card has. Both work; doing neither is what produces the ragged edge.

Optical alignment is the sanctioned exception. Bullets, list icons, and leading glyphs can hang outside the edge so the text after them aligns; large display type sometimes needs a pixel or two of negative offset because the letterform's side bearing makes it look indented. These are corrections that serve the shared edge. They aren't licenses to drift from it. The same reasoning applies to form controls, which have to share edges and heights with each other, as covered in Text Inputs.

IX. The Presentation Forms

The last layout decision in this part concerns collections. A screen showing many records of the same kind has a small number of legitimate forms to choose from, and each one optimizes for a different activity. When one product presents the same entity as a masonry wall on one screen, a table on another, and a stack of forms on a third, the user has to relearn the product on every screen. Here are six records in each form:

ProjectOwnerStatusBudgetUpdated
Atlas migrationR. SilvaActive$84,0002d
Billing v2J. MeyerPaused$126,5005d
Onboarding auditA. KhanActive$12,0001d
Search relevanceM. ChenDone$40,2503w
SSO rolloutT. OkaforActive$22,8004h
Usage alertsL. NovakReview$9,6006d
Table · Many records, comparable fields · Scan, sort, compare
RSAtlas migrationR. Silva · Active2d
JMBilling v2J. Meyer · Paused5d
AKOnboarding auditA. Khan · Active1d
MCSearch relevanceM. Chen · Done3w
TOSSO rolloutT. Okafor · Active4h
LNUsage alertsL. Novak · Review6d
List · One dominant field · Read down, open one
ProjectOnboarding audit
OwnerA. Khan
StatusActive
Budget$12,000
Form · One record · Editing, not browsing
1
Atlas migration
R. Silva
2
Billing v2
J. Meyer
3
Onboarding audit
A. Khan
4
Search relevance
M. Chen
5
SSO rollout
T. Okafor
6
Usage alerts
L. Novak
Card grid · Visual or heterogeneous · Browse
1
Atlas migration
R. Silva
Move all tenants to the new storage tier.
6
Usage alerts
L. Novak
2
Billing v2
J. Meyer
4
Search relevance
M. Chen
Re-rank with click data.
3
Onboarding audit
A. Khan
5
SSO rollout
T. Okafor
Masonry · Wrong for records · Is 6 before 4?

The table is the form for records whose fields are comparable: same fields, many rows, and a user who scans down a column, sorts, or compares one row to another. Its strength is the column, a vertical alignment of like values, which is the shared-edge principle working at its best. The list is for records with one dominant field (a name, a subject line) plus a little secondary metadata, read top to bottom, often as the left half of a master/detail frame. The card grid is for records that carry a visual (a thumbnail, a cover, a preview) or a small number of heterogeneous fields, where the user is browsing to recognize something rather than comparing values. The form isn't a collection at all. It is one record, being edited. A stack of forms standing in for a list is a collection presented in the editing form, and it puts every record in edit mode at once.

Masonry, the staggered wall of cards packed into columns by height, is for content whose intrinsic height varies and whose order doesn't matter: image boards, mood boards, sticky notes, inspiration feeds. For records it is almost always wrong, and the specimen shows why. Look at the second row of cards. Card 6 is furthest left and card 4 is highest. Reading left to right says 6 comes first; reading top to bottom says 4 does. Masonry has no stable reading order, no shared edges beyond the column lines, and no row to scan across, and it moves things whenever any card's height changes. It looks lively in a screenshot and makes the work of finding a record harder.

The Stacked Card

One more failure needs a name, because it has become the default output of quick prototypes and is spreading into shipped products: the stacked card, sometimes called the row-card. It is a column of full-width cards, one per record, each showing the same few fields: a title, a line of small metadata, a status badge pushed to the far right, an action icon at the edge. Here are five deployments shown that way, as a table, and as master/detail:

api-gatewaymain · a1f3c9e · J. Ortiz · 12m agoLive
billing-workermain · 7be0d21 · P. Lindqvist · 1h agoFailed
search-indexerrelease/4.2 · 03c9a7f · S. Haddad · 3h agoLive
web-frontendmain · e5d18b4 · K. Mwangi · 5h agoRolled back
notificationshotfix/rate · 9a2e6c0 · R. Iyer · 1d agoLive
Stacked card · Full width of main · Wrong
ServiceBranchCommitAuthorStatusDeployed
api-gatewaymaina1f3c9eJ. OrtizLive12m
billing-workermain7be0d21P. LindqvistFailed1h
search-indexerrelease/4.203c9a7fS. HaddadLive3h
web-frontendmaine5d18b4K. MwangiRolled back5h
notificationshotfix/rate9a2e6c0R. IyerLive1d
Table · Status and action are columns · Right
api-gatewayLive · 12m ago
billing-workerFailed · 1h ago
search-indexerLive · 3h ago
web-frontendRolled back · 5h ago
notificationsLive · 1d ago
billing-worker Failed
Branch
main
Commit
7be0d21
Author
P. Lindqvist
Deployed
1h ago
Error
Health check timed out after 90s
List · Capped at 240px · Beside a detail pane · Right

The list form has a maximum width. A list is one dominant field read top to bottom, and it works at roughly 360–640px, the width of a master pane. Stretch it across the canvas and the eye has to cross the whole row to connect a title with its status. Even in the specimen above, at this page’s desktop width, “billing-worker” and “Failed” are 500px apart; at 1920px they are well over a thousand. So a list either lives in a capped column, usually beside a detail pane, or it becomes a table. There is no full-width list.

Count the repeated fields. If every record shows the same three or more scannable fields, and the screen has a filter or sort bar above it, users are comparing rows. That makes it a table wearing card borders. A card earns its box only when records differ in shape or carry a visual, which is the card-grid case above.

The stacked card is the worst of both. It is table data without columns: no Status column to scan, no Deployed column to sort, nothing aligned vertically except the left edge. It also carries card chrome without a card's reason, since every row pays for a border, radius, and padding that separate nothing a hairline rule wouldn't. Here each record costs nearly twice the height of a table row for the same information, and the ratio approaches three to one in products that pad their cards generously. The stacked card is fine on a phone, where a single column is all there is. On the desktop it is a mobile layout that was never reduced from anything.

FormChoose whenFails when
TableMany records, comparable fields, users scan, sort, filter, or compare.Records have one meaningful field (it becomes a list with empty columns) or are mostly visual.
ListOne dominant field per record plus light metadata; vertical reading; master/detail.Users need to compare a secondary field across records. That's a table.
Card gridRecords with a visual, or few heterogeneous fields; browsing to recognize.Records are text-only and comparable. Cards hide the columns a table would give.
FormEditing one record.Used to present many records at once.
MasonryVarying-height, order-free content: images, notes, inspiration.Used for records with the same fields, which is nearly always.
Stacked cardNever as a full-width layout on desktop. It is acceptable only as the phone reduction of a list or table.Comparable records stretched across the canvas, each in its own box.

The decision rule, stated in one line each: comparable fields and many rows → table. One dominant field → list. Visual or heterogeneous, browsed → card grid. Editing one record → form. Masonry and the stacked card are not on the list for records. Then comes the rule that fixes incoherence across a product rather than within a screen: the same kind of entity takes the same form everywhere. If projects are a table, they're a table on the projects screen, in search results, and in the "recent projects" panel on the dashboard (a narrower table or a list derived from it, but recognizably the same thing). A user who has learned to scan the Status column in one place should find it in every place. Let a user switch to a second view, such as a board or a gallery, only when the view serves a different task, and remember the choice.

Pick the presentation form for each kind of entity, not for each screen. Record that choice in the design system next to the component inventory, because entity forms are system decisions like any other.

This is the decision guide only. How a table sizes its columns, how a card grid handles uneven content, and how a list becomes master/detail are composition problems in their own right, taken up in a later part and in the Data Tables chapter.

X. Mobile as a Reducing Layer

Every structure in this chapter has a defined reduction, and the reductions follow the frame from the outside in. The desktop layout comes first and is complete; mobile is a planned sequence of removals from it, never a separate design.

≥ 1024 · All regions
Table, 12 columns
640–1023 · Rail + main
Inspector as sheet · 8 cols
< 640 · Main only
Table → list · 4 cols
The same product at three widths. Regions collapse in order of how much of the user's task they carry.

The frame collapses first. The sidebar becomes a rail, then a drawer (the Navigation chapter covers that sequence). The inspector stops being a column and becomes a sheet over main, then on a phone either a bottom sheet for quick edits or its own route for full detail. The order matters: regions collapse according to how much of the task they carry, so main is always the last thing standing. The grid collapses next, from 12 to 8 to 4 columns with the span mappings from section VI. On a phone, most screens are a single column with occasional 2-up pairs. Collections change form where they have to. A wide table can't survive 375px, so it becomes a list of the record's primary field and one or two secondary values, which is exactly why section IX's list form exists. Card grids drop to two columns or one.

Two things must survive every reduction. Reading order: what came first at 1440 comes first at 375. That falls out automatically if the DOM order matches the desktop reading order and the grid only stacks, and it breaks the moment someone uses order or explicit grid placement to rearrange blocks visually on desktop. The shared edge: a phone layout has one column, so it has exactly one left edge, and every heading, card, field, and list row should be on it. Narrow screens are less forgiving of a ragged edge, not more.

XI. The Decision Sequence

Layout decisions depend on each other in a fixed order, and most layout incoherence comes from making them out of order, such as choosing a card grid before deciding which region the cards live in, or picking spans before committing to a column count. In order, for a product rather than a screen:

1
Name the frameWhich regions exist, their fixed widths, which one is fluid, which scroll independently. One frame for the product, with optional regions.
2
Name the containersA short set of max-widths (narrow, prose, wide, full) and the rule for which screens get which.
3
Commit to the gridTwelve columns, fluid; gutter and margin taken from the spacing scale. One grid per container, always.
4
Constrain the spans12, 6 + 6, 4 + 4 + 4, 3 × 4, 8 + 4, 9 + 3. Anything else needs a reason someone could write down.
5
Assign each entity its formTable, list, card grid, or form, chosen per entity type, used everywhere that entity appears.
6
Define the reductionsThree breakpoints, each a change in columns or regions; span mappings; collection fallbacks.
7
Check the edgePer region, one shared left edge and one consistent inner inset. The final check, and the one that catches the most.

Steps one through six are written down once and change rarely. Step seven is a review habit. A team that has done the first six can settle most layout arguments by pointing to which one a screen breaks, which is the purpose of having them.

What the Best Systems Avoid

Two grids in one container. A 2-up row over a 3-up row, each with its own gap and inset. It is the most common layout defect in products without a layout system, and the hardest to see one screen at a time. The fix is structural, not cosmetic: one grid, with rows as spans.

Stretching to fill. Cards that widen instead of multiplying, tables whose numeric columns drift apart, prose that runs the width of a 2560px monitor. Extra width should become more columns, more context, or margin.

Per-screen container widths. One screen at 1100px, another at 1180, a third at 1240, each chosen by eye. The difference isn't visible on any single screen. It shows up when navigating between them, as the content's left edge jumps on every route change.

Breakpoints named after devices. "Tablet" and "laptop" breakpoints multiply because devices do. Breakpoints named for what changes ("8 columns," "inspector docks") stay few, because layouts do.

Masonry for records, forms for lists. The wrong presentation form for the entity, and a different form for the same entity on different screens. Users pay for both in time spent re-orienting on every screen.

Modals where a panel fits. On a wide canvas, a modal for record detail hides the list the user came from and blocks moving to the next record. Use the inspector when the screen has room for one.

Part I of Grid & Layout. Follows Spacing & Density in the Foundations.
A grid is a promise that whatever belongs together will line up. When it's kept, nobody notices. When it's broken, everyone does.