Sizes
Choose predictable dimensions with numeric, named, fractional, and viewport size tokens.
Size scale
Size tokens describe width, height, and dimensions using numeric, named, fractional, and viewport values. Prefer a named or numeric token when it expresses the intent; arbitrary CSS dimensions remain available when the token vocabulary cannot.
Numeric sizes
00rem
0.50.125rem
10.25rem
1.50.375rem
20.5rem
2.50.625rem
30.75rem
3.50.875rem
41rem
4.51.125rem
51.25rem
5.51.375rem
61.5rem
6.51.625rem
71.75rem
7.51.875rem
82rem
8.52.125rem
92.25rem
102.5rem
112.75rem
123rem
133.25rem
143.5rem
153.75rem
164rem
205rem
246rem
256.25rem
287rem
328rem
369rem
37.59.375rem
4010rem
4411rem
4812rem
5012.5rem
5213rem
5614rem
6015rem
6416rem
7218rem
8020rem
9624rem
Named sizes
3xs14rem
2xs16rem
xs20rem
sm24rem
md28rem
lg32rem
xl36rem
2xl42rem
3xl48rem
4xl56rem
5xl64rem
6xl72rem
full100%
minmin-content
maxmax-content
fitfit-content
prose60ch
Fractional sizes
1/128.333333%
1/616.666667%
2/1216.666667%
1/520%
1/425%
3/1225%
1/333.333333%
2/633.333333%
4/1233.333333%
2/540%
5/1241.666667%
1/250%
3/650%
6/1250%
7/1258.333333%
3/560%
2/366.666667%
4/666.666667%
8/1266.666667%
3/475%
9/1275%
4/580%
10/1283.333333%
5/683.333333%
11/1291.666667%
Viewport sizes
vw100vw
vh100vh
dvw100dvw
dvh100dvh
svw100svw
svh100svh
lvw100lvw
lvh100lvh
Use size tokens
Use named sizes for shared constraints, fractional values for fluid layouts, and viewport values only when a surface genuinely follows the viewport. Use prose for long-form reading widths.
Readable content uses the available space without becoming too wide.
import { Box, Text } from "@smoothie-framework/whisk-react";
<Box width={{ base: "full", lg: "prose" }} minHeight={16} background="surface2" rounded="lg" padding={4}>
<Text>Readable content uses the available space without becoming too wide.</Text>
</Box>Sizing props
Dimension props accept size tokens. Wrap any of them in a responsive object or array when one component needs to adapt without duplicate markup.