Overview of the space scale and scaling options.
Spacing values are derived from a 9-step scale, which is used for props such as margin and padding. These props accept numeric strings from "1"
to "9"
, which correspond to the steps in the scale below.
Space scale tokens can be also accessed using CSS variables. You can use these tokens to style your custom components, ensuring they are consistent with the rest of your theme.
Values which affect layout (spacing, font size, line height) scale relatively to each other based on the scaling
value defined in your Theme. This setting allows you to scale the UI density uniformly across your entire application.
The scaling factor token can be accessed using the --scaling
CSS variable. If you need to use different scaling factors in your app, you can use this token in your custom styles, ensuring they are consistent with the rest of your theme.