Spacing
Our spacing scale for consistent margins, padding, and gaps throughout the application.
Space XS
4px • Icon padding
4px
Width/Height
w-1Padding
p-1 hMargin
m-1 hSpace SM
8px • Tight UI spacing
8px
Width/Height
w-2Padding
p-2 hMargin
m-2 hSpace MD
16px • Default spacing
16px
Width/Height
w-4Padding
p-4 hMargin
m-4 hSpace LG
32px • Section gaps
32px
Width/Height
w-8Padding
p-8 hMargin
m-8 hSpace XL
64px • Large section separation
64px
Width/Height
w-16Padding
p-16 hMargin
m-16 hSpace XXL
96px • Hero sections
96px
Width/Height
w-24Padding
p-24 hMargin
m-24 hSpacing Examples
Padding
Content with p-4 (16px) padding
Margin
First element
Second element with mb-4 (16px) margin above
Gap (Flexbox/Grid)
Item 1
Item 2
Item 3
Spacing Guidelines
Consistency: Use the spacing scale consistently throughout the application. Avoid using arbitrary spacing values.
Responsive Spacing: Consider using responsive spacing utilities (e.g., p-4 md:p-8) for better mobile experiences.
Component Spacing: Use smaller spacing (XS, SM) within components and larger spacing (LG, XL, XXL) between sections.