Spacing & radius

The scales everything else is measured in: the 4px numeric spacing scale, the semantic spacing variables, and the radius tokens, rendered as the Figma sheet’s documentation tables (relative measure lines for spacing, true-size corner examples for radius).

Spacing

Primitives

By default, Untitled UI uses a numeric primitives spacing scale with proportional values where one spacing unit is equal to 0.25rem or 4px. As an example, 16px is twice as much spacing as 8px, so the steps are named 4 and 2 respectively. In code the unit is Tailwind's --spacing token and every utility (p-4, gap-2, size-8) multiplies it. The measure lines are relative, scaled against the scale's largest step; the Pixels column carries exact sizes.

Name
Size (16px base)
Pixels
Spacing
0rem0px
0.125rem2px
0.25rem4px
0.375rem6px
0.5rem8px
0.75rem12px
1rem16px
1.25rem20px
1.5rem24px
2rem32px
2.5rem40px
3rem48px
4rem64px
5rem80px
6rem96px
8rem128px
10rem160px
12rem192px
14rem224px
16rem256px
20rem320px
24rem384px
30rem480px
35rem560px
40rem640px
45rem720px
48rem768px
64rem1,024px
80rem1,280px
90rem1,440px
100rem1,600px
120rem1,920px

Spacing

Variables

Working from a pre-defined and limited spacing system allows you to work faster and consistently. These pre-defined spacing values are derived from the primitive spacing values and are useful for gaps, padding, and margin used across all of your components and designs. The names are the Figma library's variable layer; in code the same steps are the numeric utilities in the Tailwind column.

Name
Tailwind
Size (16px base)
Pixels
Spacing
00rem0px
0.50.125rem2px
10.25rem4px
1.50.375rem6px
20.5rem8px
30.75rem12px
41rem16px
51.25rem20px
61.5rem24px
82rem32px
102.5rem40px
123rem48px
164rem64px
205rem80px
246rem96px
328rem128px
4010rem160px

Radius

Variables

Working from a pre-defined and limited radius system for adding border radiuses (or radii) to elements allows you to work faster and consistently, with values derived from the primitive spacing scale. The kit declares rounded-xs (2px) through rounded-4xl (32px) plus rounded-full in theme.css, each backed by the --radius-* token of the same suffix, with bare rounded aliasing rounded-sm. The sheet's denser scale doesn't map one-to-one: its 10px and 20px steps don't exist in code, its names below xl sit one step off (the sheet's radius-xxs is the kit's rounded-xs), xl and 2xl align exactly, its radius-4xl (24px) is the kit's rounded-3xl, and the kit's rounded-4xl reaches past the sheet's largest step.

Name
Size (16px base)
Pixels
Radius
0rem0px
0.125rem2px
0.25rem4px
0.375rem6px
0.5rem8px
0.75rem12px
1rem16px
1.5rem24px
2rem32px
9,999px