Spacing

A 4px base for gaps and padding. Radius is set from one base value, so every corner in the product matches.

Spacing scale

Spacing scale
TokenpxPreview
spacing-00
spacing-0.52
spacing-14
spacing-1.56
spacing-28
spacing-312
spacing-416
spacing-520
spacing-624
spacing-832
spacing-1040
spacing-1144
spacing-1248
spacing-1456
spacing-1664
spacing-2080
spacing-2496

Radius

The base radius is 8px. Each step follows the token scale.

sm · 6px

md · 8px

lg · 10px

xl · 14px

2xl · 18px

3xl · 22px

4xl · 26px

full · full

TokenValue
--radius8px (base)
buttonsmd, 8px
inputssm, 6px
cardslg to xl, 10 to 14px
badgesfull

Usage

  • Use the 4px steps for gaps: 8, 12, 16, 24, 32, 48.
  • Do not hardcode pixel values in components. Use Tailwind spacing classes.