Spacing
A compact 4px spacing rhythm and the website rail layout.
Spacing follows Tailwind’s 4px scale. Use 4–8px for tight relationships, 12–16px inside controls and groups, and 24–32px between sections of product UI.
gap-14px · Tight pairgap-28px · Related controlsgap-312px · Compact insetgap-416px · Default insetgap-624px · Section groupgap-832px · Major breakThe website uses Rail for every section: a full-width hairline row around a max-w-7xl content column with continuous vertical rules. Content uses px-6 md:px-10, and larger compositions split on a 12-column grid.
Keep related labels, help, and errors close. Create larger gaps between separate tasks. Prefer gap-* and container padding over margins on individual children.
<div className="grid gap-4 md:grid-cols-12">
<div className="md:col-span-7">Primary content</div>
<aside className="md:col-span-5">Supporting content</aside>
</div>