Foundations
Spacing and radius
Eight spacing steps and one radius. Structure comes from hairlines and alignment before it comes from boxes.
Spacing scale
0.25, 0.5, 0.75, 1, 1.5, 2, 3 and 4.5rem. Nothing between the steps.
- 0.25rem
gap-1· Icon to text, tight chips - 0.5rem
gap-2· Gap inside a control group - 0.75rem
gap-3· Gap between related rows - 1rem
gap-4· Row padding, card padding - 1.5rem
gap-6· Page padding on mobile, form field gap - 2rem
gap-8· Gap between sections - 3rem
gap-12· Page padding on desktop, hero spacing - 4.5rem
gap-18· Large breaks in mock templates
- Gaps
- Rows are 1rem above and below their text, page header to content is 1.5rem, section to section is 2.5rem (space-y-10).
- Page padding
- px-4 on mobile, px-6 from md, px-8 from xl on working pages; mock templates use clamp(1rem, 4vw, 2.5rem); documentation pages use 1.5rem and 3rem.
- Touch targets
- At least 2rem tall controls; icon-only buttons keep a visible label or tooltip.
Radius
One base radius of 0.625rem (--radius). Every other corner is derived from it, so they always agree.
- sm
rounded-sm· radius − 4px · Chips, inline code - md
rounded-md· radius − 2px · Inputs, small buttons - lg
rounded-lg· radius = 0.625rem · Buttons, cards, popovers (the base) - xl
rounded-xl· radius + 4px · Dialogs, empty-state frames - 2xl
rounded-2xl· radius + 8px · Large media frames
- Squircle
- Where supported, corners use
corner-shape: superellipse(1.333)so they read as the same curve as the brand mark. Opt out withsquircle-none. - Small step
- One smaller radius (0.375rem) for things inside a control. Round shapes only where the factory uses them: avatars and switches.
- App icons
- Radius is 112 / 512 of the icon width.
- Shadows
- None for structure. A 1px hairline or a --card step does that job; overlays may use the standard popover shadow.
Hairlines, not boxes
A list is rows separated by 1px lines. A card exists only where it holds a different kind of thing, such as a form field or one outer frame.
Do
Rows with hairline separators, hierarchy from weight and shade.
- Plan confirmed1 of 3
- Build running2 of 3
- Release waiting3 of 3
Don't
A box around every row, and a box around the boxes.
Plan confirmed
Build running
Release waiting