Spacing & Layout
Every gap is a step on a 4px base scale — a rhythm shared by brand pages and dense consoles alike. Layout is assembled from four primitives (Container, Section, Grid, Stack) so spacing is never improvised.
The 4px scale
Bars below are drawn at each token’s real width.
Rhythm tokens
Named steps carry the layout’s cadence so pages compose consistently.
Container
Container centers content within the brand max-width and applies the gutter as inline padding. The outlined band below is a live Container.
Grid
Grid lays out either a fixed column count or a responsive auto-fit track with a token-scaled gap.
Section
Section is a full-bleed vertical rhythm band; tight halves its block padding and surface fills it with a hairline-framed surface.
Density axis
data-density="compact" tightens control heights and rhythm for data-dense consoles — from one attribute, the whole scale steps down. The panels force each density locally.
density · default
density · compact