TokensSpacing & Layout

Spacing & Layout

A comprehensive spacing system built on a 4px/8px grid for consistent layouts across all breakpoints. Includes spacing scale, layout widths, border radius, durations, and typography metrics.

31
Spacing Values
11
Layout Sizes
9
Radius Values
8
Duration Values

Spacing Scale

31 spacing values from 0px to 256px

Token
CSS Variable
REM
Pixels
Visual
0
--spacing-0
0rem
0px
px
--spacing-px
0.0625rem
1px
0.5
--spacing-0-5
0.125rem
2px
1
--spacing-1
0.25rem
4px
1.5
--spacing-1-5
0.375rem
6px
2
--spacing-2
0.5rem
8px
2.5
--spacing-2-5
0.625rem
10px
3
--spacing-3
0.75rem
12px
3.5
--spacing-3-5
0.875rem
14px
4
--spacing-4
1rem
16px
5
--spacing-5
1.25rem
20px
6
--spacing-6
1.5rem
24px
7
--spacing-7
1.75rem
28px
8
--spacing-8
2rem
32px
9
--spacing-9
2.25rem
36px
10
--spacing-10
2.5rem
40px
11
--spacing-11
2.75rem
44px
12
--spacing-12
3rem
48px
14
--spacing-14
3.5rem
56px
16
--spacing-16
4rem
64px
20
--spacing-20
5rem
80px
24
--spacing-24
6rem
96px
28
--spacing-28
7rem
112px
32
--spacing-32
8rem
128px
36
--spacing-36
9rem
144px
40
--spacing-40
10rem
160px
44
--spacing-44
11rem
176px
48
--spacing-48
12rem
192px
52
--spacing-52
13rem
208px
56
--spacing-56
14rem
224px
60
--spacing-60
15rem
240px
64
--spacing-64
16rem
256px

Layout Sizes

Container and max-width values for responsive layouts

XS320px

Mobile width

SM384px

Small container

MD448px

Medium container

LG512px

Large container

XL576px

Extra large

2XL672px

Prose width

3XL768px

Tablet width

4XL896px

Medium desktop

5XL1024px

Default content

6XL1152px

Wide content

7XL1280px

Max content

Border Radius

9 radius values for consistent corner rounding

PreviewTokenCSS VariableValueCopy
none--radius-none0px
sm--radius-sm2px
md--radius-md4px
lg--radius-lg6px
xl--radius-xl8px
2xl--radius-2xl12px
3xl--radius-3xl16px
4xl--radius-4xl24px
Full--radius-full9999px

Duration / Animation

8 timing values for transitions and animations

75ms

Micro interactions

100ms

Quick feedback

150ms

Default transitions

200ms

Standard animations

300ms

Smooth transitions

500ms

Emphasis animations

700ms

Complex animations

1000ms

Long animations

Line Heights

6 line height multipliers for typography

1
none

Text only, no extra space

1.25
tight

Headings, compact text

1.375
snug

Slightly compact

1.5
normal

Body text default

1.625
relaxed

Comfortable reading

2
loose

Maximum readability

Font Weights

9 font weight values from thin (100) to black (900)

thin100
The quick brown fox
extralight200
The quick brown fox
light300
The quick brown fox
normal400
The quick brown fox
medium500
The quick brown fox
semibold600
The quick brown fox
bold700
The quick brown fox
extrabold800
The quick brown fox
black900
The quick brown fox

8px Grid System

All spacing values are multiples of 4px, with 8px as the base unit. This ensures visual consistency and alignment across all elements.

4px
8px
12px
16px
24px
32px
48px
64px

Related Pages