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.
CSS Val
None
CSS Val
XS
CSS Val
S
CSS Val
Base
CSS Val
M
CSS Val
L
CSS Val
XL
CSS Val
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
CSS Val
.padding-none
.margin-none
--space-none
CSS Val
.padding-xs
.margin-xs
--space-xs
CSS Val
.padding-s
.margin-s
--space-s
CSS Val
.padding-base
.margin-base
--space-base
CSS Val
.padding-m
.margin-m
--space-m
CSS Val
.padding-l
.margin-l
--space-l
CSS Val
.padding-xl
.margin-xl
--space-xl
CSS Val
.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