Spacing
Foundational predefined REM-based set of variables called Spacing are used for margins, paddings, and gaps of components. This ensures consistent rhythm and layout behavior across the entire system.
Size Variables
All the base spacing values are defined using a simple value
x naming convention. You can think of x
as a multiplier of the base unit (1rem = 16px).
Note
Variables can be remapped. For example, 0.25x
might be set to 0.5rem
based on your project’s scale. title=“Note”> To learn more about how rem
works and why we use it, see the Units page.
Gap Variables
Used in flex and grid layouts. These use t-shirt sizing for consistent spacing across UI elements.
Utility Class Examples
These classes reuse the same size scale as the gap variables:
- Icon SM
- Flex Horizontal Flex Gap SM
- Paragraph MD
- Padding Bottom 1.5x
- Margin Top 2x
These apply spacing using the same variables as above for consistency.