Foundations
Spacing and shape
Whitespace separates; hairlines only contain.
One ramp, space-1 to space-9 (4 to 96), for every gap, margin and padding; never magic numbers. Card padding pad 26 · screen gutter screen-pad 46 · section rhythm gap 38. Cards have a 12px radius; everything tappable is a pill.
The ramp
space-14px
space-28px
space-312px
space-416px
space-524px
space-632px
space-748px
space-864px
space-996px
Roles
| pad26px | Card padding (× d). |
| screen-pad46px | Screen gutter. |
| gap38px | Section rhythm — whitespace, not rules. |
| gap-sm12px | Tight stacks: chip rows, list gaps (= space-3). |
| gap-md16px | Default gap between sibling cards (= space-4). |
| gap-lg32px | Between grouped blocks within a card (= space-6). |
| row-y12px | Table row vertical padding (× d). |
Radii
r-card · 12px
Cards, banners, inputs, the ZeroState card.
r-pill · 999px
Everything tappable: buttons, chips, segmented controls, toggles.
Widths
| screen-max1340px | Max width of a screen's content (.screen). |
| simple-max920px | Max width of simple-mode screens (.screen.simple). |
| reading-max600px | Reading column: ZeroState card, first-read column, long prose. |
Density
Paddings multiply by --d: 1 when comfortable, .78 when compact (html[data-density="compact"]).