Corner radius
DraftArch UI allows for rounded corners to a variety of components. For simple reference, the metric values for corner radius are 16, 12, 8, and 4. These radius metrics are dependent on the size of the component that it is applied to.
- Usage
- Tokens
- Status & changelog
Common alternative names
Border radius, bevel, rounded corners
Usage
Radius values
The footprint of a component determines its radius values. Larger components that contain other components can have a greater corner radius. Each Arch UI component comes with the appropriate corner radius already applied. This guide provides insight into how radius values are applied in the Arch UI library.
| Corner radius value | Used for |
|---|---|
| 16px | Large container components like sheets and dialogs |
| 12px (default) | Medium components like cards, snack bars, banners |
| 8px | Medium or small components that often live inside others, like buttons or nested components |
| 4px | Small components like tags |
16px
A 16px corner radius is used on large vessel-like containers, such as sheets and dialogs.
12px
The number used most of the time for corner radii is 12px. Medium-sized components like cards, message cards, snack bars, and banners default to this value.
8px
An 8px radius is used for elements often nested inside others, like buttons.
4px
A 4px radius is used on small components like tags and badges.
Nested components
For components with a default corner radius of 12px, their corner radius can be set to 8px when nested inside another component. This subtly creates balance with the parent component.
Drivers License
Expires 8/12/2025
A standalone card keeps its default 12px radius.
Vehicle Insurance
Progressive gold plan
When nested inside a parent, the inner card steps down to 8px.
Primitives
| Name / Value | CSS variable | Resolved |
|---|---|---|
| 0 (none) | --radius-none | 0px |
| 2 (xs) | --radius-xs | 2px |
| 4 (sm) | --radius-sm | 4px |
| 8 (md) | --radius-md | 8px |
| 12 (lg) | --radius-lg | 12px |
| 16 (xl) | --radius-xl | 16px |
| 24 (2xl) | --radius-2xl | 24px |
| 9999 (full) | --radius-full | 9999px |
Semantic
| CSS variable | Alias | Resolved |
|---|---|---|
--radius-component-sm | --radius-sm | 4px |
--radius-component-md | --radius-md | 8px |
--radius-component-lg | --radius-lg | 12px |
--radius-component-full | --radius-full | 9999px |
Status & changelog coming soon.