Spacing System
Consistent spacing creates rhythm, hierarchy, and visual harmony
Spacing Scale
00(0px)
No spacing
10.25rem(4px)
Tight spacing, icons
20.5rem(8px)
Small gaps, compact elements
30.75rem(12px)
Default small spacing
41rem(16px)
Standard spacing unit
51.25rem(20px)
Medium gaps
61.5rem(24px)
Large gaps, sections
82rem(32px)
Extra large spacing
102.5rem(40px)
Major sections
123rem(48px)
Page sections
164rem(64px)
Major page breaks
205rem(80px)
Hero sections
246rem(96px)
Extra large sections
Padding Examples
p-2 (8px)
p-4 (16px)
p-6 (24px)
p-8 (32px)
Margin Examples
mb-2 (8px)
mb-4 (16px)
mb-6 (24px)
mb-8 (32px)
Gap (Flexbox/Grid Spacing)
Flex Gap
flex gap-2Grid Gap
grid grid-cols-3 gap-4