Spacing
Reference scale for the construction and positioning of the UI elements on an interface.
Spacing Scale
The spacing scale is based on 8px, defining the elements dimensions and distances using multilples of 8.
An exception of this scale is the smaller size, 4px, to separate elements that should be intrinsically closer by their natural relationship.
0
None
4px
XS
8px
S
16px
Base
24px
M
32px
L
40px
XL
48px
XXL
Uniform Spacing
Uniform spacing is applied to all sides of an element. Margin and Padding share the same scale with their respective classes.
Example
Size
Padding Class
Margin Class
CSS Variable
0
.padding-none
.margin-none
--space-none
4px
.padding-xs
.margin-xs
--space-xs
8px
.padding-s
.margin-s
--space-s
16px
.padding-base
.margin-base
--space-base
24px
.padding-m
.margin-m
--space-m
32px
.padding-l
.margin-l
--space-l
40px
.padding-xl
.margin-xl
--space-xl
48px
.padding-xxl
.margin-xxl
--space-xxl
Directional Spacing
Directional spacing is applied to an individual side of an element. Margin and Padding share the same scale with their respective classes.
Click here to see your activities