Spacing
Build a consistent layout rhythm with the shared spacing scale.
Spacing scale
Spacing tokens create a predictable rhythm for padding, margin, gap, and inset. Each numeric step is multiplied by 0.25rem (4px at the default root font size), so 0.5 resolves to 0.125rem (2px). The documented values are common landmarks, not an authoring limit.
00rem
(0px)
0.50.125rem
(2px)
10.25rem
(4px)
1.50.375rem
(6px)
20.5rem
(8px)
2.50.625rem
(10px)
30.75rem
(12px)
3.50.875rem
(14px)
41rem
(16px)
4.51.125rem
(18px)
51.25rem
(20px)
5.51.375rem
(22px)
61.5rem
(24px)
6.51.625rem
(26px)
71.75rem
(28px)
7.51.875rem
(30px)
82rem
(32px)
8.52.125rem
(34px)
92.25rem
(36px)
102.5rem
(40px)
112.75rem
(44px)
123rem
(48px)
133.25rem
(52px)
143.5rem
(56px)
153.75rem
(60px)
164rem
(64px)
205rem
(80px)
246rem
(96px)
256.25rem
(100px)
287rem
(112px)
328rem
(128px)
369rem
(144px)
37.59.375rem
(150px)
4010rem
(160px)
4411rem
(176px)
4812rem
(192px)
5012.5rem
(200px)
5213rem
(208px)
5614rem
(224px)
6015rem
(240px)
6416rem
(256px)
7218rem
(288px)
8020rem
(320px)
9624rem
(384px)
Apply spacing
Use gap for the relationship between siblings, padding for space inside a surface, and margin only when the space belongs to the component’s external boundary.
Deployment ready
The production checklist has no remaining blockers.
import { Box, Stack, Text } from "@smoothie-framework/whisk-react";
<Stack gap={{ base: 3, md: 5 }}>
<Box background="surface2" rounded="lg" padding={{ base: 3, md: 5 }}>
<Stack gap={2}>
<Text textStyle="caption">Deployment ready</Text>
<Text textStyle="body" color="subtle">The production checklist has no remaining blockers.</Text>
</Stack>
</Box>
</Stack>Spacing props
Use spacing values through component props so the layout remains responsive and theme-aligned.