Spacing
Spacing is a scale where one step is 4px. Step 4 is 16px, step 6 is 24px.
The scale
Section titled “The scale”00px0.52px14px1.56px28px2.510px312px416px520px624px728px832px1040px1248px1456px1664px2080pxUsing it
Section titled “Using it”The layout components take a step for gap:
<Stack gap={6}>...</Stack><Flex gap={2}>...</Flex><Grid columns={3} rowGap={4} columnGap={8}>...</Grid>In CSS, each step is a variable. Steps with a dot need a backslash:
.toolbar { padding: var(--su-spacing-4); margin-top: var(--su-spacing-0\.5);}Breakpoints
Section titled “Breakpoints”The preset defines these breakpoints. The library components themselves are not responsive by
prop; Grid with minChildWidth adapts to the space it has.
| Token | Value | Notes |
|---|---|---|
sm | 640px | |
md | 768px | |
lg | 1024px | |
xl | 1280px | |
2xl | 1536px |