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
PrimitivesBy 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 |
|---|---|---|---|
| 0rem | 0px | ||
| 0.125rem | 2px | ||
| 0.25rem | 4px | ||
| 0.375rem | 6px | ||
| 0.5rem | 8px | ||
| 0.75rem | 12px | ||
| 1rem | 16px | ||
| 1.25rem | 20px | ||
| 1.5rem | 24px | ||
| 2rem | 32px | ||
| 2.5rem | 40px | ||
| 3rem | 48px | ||
| 4rem | 64px | ||
| 5rem | 80px | ||
| 6rem | 96px | ||
| 8rem | 128px | ||
| 10rem | 160px | ||
| 12rem | 192px | ||
| 14rem | 224px | ||
| 16rem | 256px | ||
| 20rem | 320px | ||
| 24rem | 384px | ||
| 30rem | 480px | ||
| 35rem | 560px | ||
| 40rem | 640px | ||
| 45rem | 720px | ||
| 48rem | 768px | ||
| 64rem | 1,024px | ||
| 80rem | 1,280px | ||
| 90rem | 1,440px | ||
| 100rem | 1,600px | ||
| 120rem | 1,920px |
Spacing
VariablesWorking 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 |
|---|---|---|---|---|
| 0 | 0rem | 0px | ||
| 0.5 | 0.125rem | 2px | ||
| 1 | 0.25rem | 4px | ||
| 1.5 | 0.375rem | 6px | ||
| 2 | 0.5rem | 8px | ||
| 3 | 0.75rem | 12px | ||
| 4 | 1rem | 16px | ||
| 5 | 1.25rem | 20px | ||
| 6 | 1.5rem | 24px | ||
| 8 | 2rem | 32px | ||
| 10 | 2.5rem | 40px | ||
| 12 | 3rem | 48px | ||
| 16 | 4rem | 64px | ||
| 20 | 5rem | 80px | ||
| 24 | 6rem | 96px | ||
| 32 | 8rem | 128px | ||
| 40 | 10rem | 160px |
Radius
VariablesWorking 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 |
|---|---|---|---|
| 0rem | 0px | ||
| 0.125rem | 2px | ||
| 0.25rem | 4px | ||
| 0.375rem | 6px | ||
| 0.5rem | 8px | ||
| 0.75rem | 12px | ||
| 1rem | 16px | ||
| 1.5rem | 24px | ||
| 2rem | 32px | ||
| ∞ | 9,999px |