DSNiemeyer
Language

Spacing

Standard Tailwind 4 spacing ladder (`n * 0.25rem`). The design system uses 6 (24px), 8 (32px), 10 (40px), 12 (48px), and 16 (64px) as the load-bearing steps for component and page layout.

Visual scale

0
0px
p-0
1
4px
p-1
2
8px
p-2
3
12px
p-3
4
16px
p-4
6
24px
p-6
8
32px
p-8
10
40px
p-10
12
48px
p-12
16
64px
p-16

Recommended usage

ContextStepValueClass
Button padding2–38–12pxpx-2, px-3
Form field gap312pxgap-3
Card padding624pxp-6
Gap between cards416pxgap-4
Page padding6–824–32pxp-6, p-8
Section separation8–1232–48pxgap-8 to gap-12

Demo: gap between items

gap-2

gap-4

gap-8