Spacing

Our spacing system ensures consistent layout and component spacing throughout the application.

Spacing Scale
Based on a 4px grid system
0(0px)
1(4px)
2(8px)
3(12px)
4(16px)
5(20px)
6(24px)
8(32px)
10(40px)
12(48px)
16(64px)
20(80px)
24(96px)
Spacing Categories
How spacing is applied in different contexts

Component Spacing

Spacing within components, such as padding between a button's text and its border.

xs (p-2)
sm (p-3)
md (p-4)
lg (p-6)

Layout Spacing

Spacing between components and sections, such as margins between cards or sections.

Elements with gap-4 (16px) between them

Page Spacing

Spacing at the page level, such as padding around the main content area.

Header

Main content with p-6 (24px) padding

Footer