--space-xs
Tightest spacing step.
Use for: icon gaps, dense stacks
Value: supplied by your design.
Modern CSS toolset
Apply a shared scale to gaps, padding, and margins. The steps describe relative size; assign values that fit your design rather than treating them as a prescribed numeric scale.
.stack {
display: grid;
gap: var(--space-md);
}
.panel {
padding: var(--space-lg);
}
These examples show how to consume the tokens. Assign values before using them.
--space-xsTightest spacing step.
Use for: icon gaps, dense stacks
Value: supplied by your design.
--space-smSmall spacing step.
Value: supplied by your design.
--space-mdDefault spacing step for common layout padding or gaps.
Value: supplied by your design.
--space-lgLarge spacing step for section padding.
Value: supplied by your design.
--space-xlExtra-large spacing step.
Value: supplied by your design.
--space-xxlLargest spacing step for major layout separation.
Value: supplied by your design.