Actual CSS
Layout reference
The canonical layout compositions, each built only with the current layout primitives. This page is a reference for what each primitive does today — and where its limits are.
1. Page header
Title on the left, actions on the right. .cluster with
--cluster-justify: space-between; the row wraps into two
rows when it runs out of room — no viewport decision needed.
Deployments
Review production releases, failed jobs, and pending approvals.
2. Vertical rhythm
.stack owns the block axis: direct-child margins are reset,
spacing comes from --gap. To group a few items tightly (a
title and its description), nest a .stack gap-none — the
outer stack keeps its rhythm between groups.
3. Inline group
.cluster is the inline group: action rows, tags, toolbars.
Its responsiveness is the wrapping itself — it never needs a
breakpoint.
4. Split / one left, one right
The same .cluster relationship with
--cluster-justify: space-between. No separate split
primitive.
Results
5. Free equal cards
.grid fits as many --grid-min-wide columns as
the row allows and wraps the rest. The number of columns follows the
container width.
6. Density preset — .grid-3 alone
.grid-3 declares a structural density of three columns. It
never exceeds three, never overflows, and keeps every item the same
width — with no wrapper. Left alone it steps down one column at a time.
Use .grid when the item width, not the density, is the
contract.
7. Density preset — balanced subdivision
Inside a container named actual-container — here the
.container-query helper — the same preset only enters a
divisor of its density: 3 → 1. Two columns are skipped on
purpose, because three items in two columns would leave a lone third.
The container is precision, never a prerequisite for responsive
behavior — see the grid density page for the
full chains.
8. Content + aside — enough local space
.sidebar-layout uses its own allocated width. Here the
main region and aside sit side by side when their viable widths fit.
9. Content + aside — constrained locally
The same primitive stacks when its wrapper is narrow, even on a wide viewport. No container-query opt-in or viewport threshold is involved.
10. Asymmetric 2/3 + 1/3
--grid-columns replaces the intrinsic auto-fit template,
so nothing restores collapse: the two columns stay cramped on narrow
screens unless the author adds their own collapse rule. For content +
aside this is usually .sidebar-layout instead.
Checklist
11. Media rows
.media pairs a fixed leading element with flexible
trailing content. The content column takes the remaining space and
shrinks instead of overflowing.
12. Checklist item
Icon + content + actions as a nowrap row — the shape the
POC generator produced. The framework keeps the row on one line; the
author owns what happens when the row is too narrow.
13. Peer regions that switch together
.switcher places peers side by side when they all fit and
otherwise stacks every peer. With three children it can produce one
row or three rows, never an orphaned 2 + 1 arrangement.
Billing address
Main invoice recipient.
Shipping address
Where goods are delivered.
Delivery options
When and how goods arrive.
14. Avatar + text + actions
.media for the avatar/text pair, with the actions nested
inside the flexible column so they wrap under the text when the row
narrows. The avatar aligns to the top (start, the default)
because the content column is multi-line; centering is only for short
single-line pairs.