Skip to content
Navigation

Spacing & layout

Note: spacing and breakpoints currently ride the Tailwind v4 defaults — the system does not yet own them as tokens (unlike color, radius and type). They're documented here as the de-facto scale; if we ever want to retune density, that's the moment to promote them to owned tokens.

Spacing scale

Base unit is 0.25rem (step 1 = 4px). The same scale drives padding (p-*), margin (m-*), gap (gap-*) and size (w-*/h-*). Prefer gap-* on fl/grid over margins.

0.5
2px
1
4px
2
8px
3
12px
4
16px
6
24px
8
32px
12
48px
16
64px
24
96px

Breakpoints

PrefixMin widthTypical device
sm:640pxLarge phone / small tablet.
md:768pxTablet.
lg:1024pxLaptop — main desktop breakpoint.
xl:1280pxWide desktop.
2xl:1536pxExtra-wide.

Mobile-first: unprefixed = all sizes, prefix = that width and up.