Spacing
All spacing comes from one 4px scale, so padding and gaps line up across products.
space-14pxspace-28pxspace-312pxspace-416pxspace-520pxspace-624pxspace-832pxspace-1040pxspace-1248pxspace-1664px
| Token | Value | Use |
|---|---|---|
space-1--space-1 | 4px | Gap between an icon and its label. |
space-2--space-2 | 8px | Padding inside small controls; gap between related items. |
space-3--space-3 | 12px | Gap between form fields in a row. |
space-4--space-4 | 16px | Card padding on mobile; gap between form fields. |
space-5--space-5 | 20px | Page gutter on mobile. |
space-6--space-6 | 24px | Card padding on desktop. |
space-8--space-8 | 32px | Gap between page sections. |
space-10--space-10 | 40px | Gap between large dashboard sections. |
space-12--space-12 | 48px | Top spacing of a page header. |
space-16--space-16 | 64px | Spacing around hero blocks. |
In Tailwind v4 the base unit is --spacing: 4px, so p-4 is 16px, the same as space-4.
