Foundations
Spacing & shape
Four radii, a 4px spacing grid, three control heights and faint shadows. Statix separates areas with fills and 1px hairlines, not with shadows.
Radius
Cards are 28px, things inside a card 16px, small elements 10px. Buttons and chips are pills. Nest radii from large to small: a 16px field sits in a 28px card.
rounded-card · 28
--sx-radius-card
Cards
rounded-lg · 16
--sx-radius-md
Fields and tiles inside cards
rounded-sm · 10
--sx-radius-sm
Small elements: swatches, menu items, tags
rounded-full · 999
--sx-radius-pill
Buttons, chips, pill inputs
Spacing
Steps of 4px. Tailwind's default spacing already matches: p-4 is 16px. Card padding
is 24 to 32px, gaps between cards 16 to 20px, gaps inside a card 8 to 12px.
| Token | Pixels | Utility | Size |
|---|---|---|---|
| 4 | 4px | p-1 | |
| 8 | 8px | p-2 | |
| 12 | 12px | p-3 | |
| 16 | 16px | p-4 | |
| 20 | 20px | p-5 | |
| 24 | 24px | p-6 | |
| 28 | 28px | p-7 | |
| 32 | 32px | p-8 | |
| 40 | 40px | p-10 | |
| 48 | 48px | p-12 | |
| 64 | 64px | p-16 | |
| 80 | 80px | p-20 |
Control heights
Buttons, inputs and selects share three heights so they line up in a row. Medium (44px) is the default and meets the 44px touch target.
h-control-sm · 36
--sx-size-control-sm
Small buttons and inputs
h-control-md · 44
--sx-size-control-md
Default buttons and inputs
h-control-lg · 52
--sx-size-control-lg
Hero and checkout buttons
h-chip · 32
--sx-size-chip
Chips and filter pills
size-5 · 20
--sx-size-icon
Lucide icons next to text
h-nav · 72
--sx-size-nav
Top navigation bar
Shadows
Three shadows, all tinted with ink and kept faint. Most surfaces need none: put a white card on the page background and let the fill do the work.
shadow-card
Raised cards on the page background
shadow-dock
Floating docks and sticky action bars
Lines
Hairlines are 1px. Use border-border for dividers and card outlines and border-border-strong for inputs and hovered outlines.
Breakpoint
Statix layouts switch once, at the tablet breakpoint. Write mobile styles first and add the tablet: variant for wider screens. Tailwind's default breakpoints (sm to 2xl) still work for grids that need more steps.
| Variant | Min width | Example |
|---|---|---|
| tablet: | 56.25rem | grid gap-4 tablet:grid-cols-2 |