Radius tells people what an element is before they read it. Rounding by role keeps the whole product consistent: the same kind of element looks the same on every screen.
Every corner is a radius token. Pick the step by the element’s role, not by its size.
How it works
- Small details get the smallest radius. Badges, checkboxes and keyboard shortcuts are tiny, so 2 px is enough to soften them.
- Supporting elements come next. Tags, status labels, tooltips and dates sit beside the content they describe. 4 px keeps them quiet.
- Interactive elements sit in the middle. Buttons, inputs, selects and navigation items share 6 px, so anything people can click or type in has one shape.
- Containers are rounder than what they hold. Cards, alerts, menus and popovers use 8 px; dialogs, drawers and large page containers use 12 px. The radius grows with the surface, so nested corners stay concentric.
- Full is for people and chips. Avatars and other user UI, switches and chips are fully round, so anything people can remove or turn on and off reads as one shape.
- Every radius has a matching focus ring. The ring is the element’s radius + 2 px, so its corners follow the element.
The scale
Eight steps. The token number follows the spacing scale: radius.100 is 8 px, like space.100.
radius.0--bh-radius-00 pxEdges that touch the screen: the page header, full-width tables and panels that run to the edge.radius.025--bh-radius-0252 pxSmall details: badges, checkboxes and keyboard shortcuts.radius.050--bh-radius-0504 pxSupporting elements: tags, status labels, tooltips, dates and timestamps, compact buttons, and items inside a menu.radius.075--bh-radius-0756 pxInteractive elements: buttons, inputs, text areas, selects and side navigation items.radius.100--bh-radius-1008 pxContainment: cards, alerts and banners, in-page containers, and floating UI such as menus, popovers and toasts.radius.150--bh-radius-15012 pxLarge page elements: dialogs, drawers, full-page containers and tables in their own frame.radius.200--bh-radius-20016 pxLarge media: video and image preview containers. No component takes it by default.radius.full--bh-radius-fullPillPill and circle. Avatars and other user UI, switches and chips.
By role
Use the role token when there is one. It points to a step of the scale, so a role can move to another step without changing every component. A role without its own token uses the scale step directly.
| Role | Token | Step | Elements |
|---|---|---|---|
| Edge | radius.0 |
0 | The page header, full-width tables, panels that run to the edge |
| Small details | radius.025 |
2 px | Badges, checkboxes, keyboard shortcuts |
| Supporting | radius.050 |
4 px | Tags, status labels, tooltips, dates and timestamps |
| Items | radius.item |
4 px | Items inside a menu or a list |
| Small controls | radius.control.small |
4 px | 24 px controls: compact buttons and their fields |
| Controls | radius.control |
6 px | Buttons, inputs, text areas, selects, side navigation items |
| Containment | radius.card |
8 px | Cards, alerts and banners, in-page containers |
| Floating UI | radius.overlay |
8 px | Menus, popovers, select lists, toasts |
| Large page elements | radius.modal |
12 px | Dialogs, drawers, full-page containers; a table in its own frame uses radius.150 |
| Large media | radius.200 |
16 px | Video and image preview containers |
| People and chips | radius.pill |
Fully round | Avatars and user UI, switches, chips |
Labels, tags and chips are three different elements. Color usage says which is which.
Examples
radius.0 · square
Edges that touch the screen: the page header, full-width tables and panels that run to the edge.
radius.025 · 2 px
Small details: badges, checkboxes and keyboard shortcuts.
radius.050 · 4 px
Supporting elements: tags, status labels, tooltips, compact buttons and the items inside a menu.
radius.075 · 6 px
Interactive elements: buttons, inputs, text areas, selects and side navigation items. Inputs and buttons always share this value.
radius.100 · 8 px
Containment and floating UI: cards, alerts and banners, menus, popovers, toasts, and a group of controls with 4 px padding.
radius.150 · 12 px
Large page elements: dialogs, drawers, full-page containers and a table in its own frame.
Orders stop syncing until you connect again.
CancelDisconnectradius.200 · 16 px
Large media: video and image previews. No component takes it by default.
radius.full · pill
Avatars and other user UI, switches and chips.
Shapes inside shapes
An element with a role keeps its role radius, wherever it sits. A button is 6 px in a card, a dialog or a toolbar, and a chip stays fully round inside an input.
Joined controls share one outline. When a field and a button, or several buttons, are joined into one control, only the outer corners keep the role radius (radius.control, or radius.control.small for 24 px controls). The corners where they touch use radius.0, and the two edges overlap into one line.
Content without a role takes its radius from the container. Images, panels and other shapes that only fill a container follow its corners: inner radius = outer radius − padding. When the padding is equal to or larger than the outer radius, the corners no longer meet; pick any step that is not larger than the container’s.
With the spacing rules, the result is always a step on the scale.
When content sits flush inside a box with a 1 px border, clip it with overflow: hidden. Don’t make a radius − 1 value.
Focus ring
The focus ring sits 2 px outside the element and its radius is the element’s radius + 2 px: a 6 px button gets an 8 px ring. In code the browser rounds the outline for you, so no radius token is needed. In design files, draw the ring with the element’s radius + 2. See Border for the ring itself.
Do and don’t
An image has no role, so take the padding off the outer radius: 12 − 4 = 8. The two curves run side by side.
The same 12 px inside and out. The gap is wider at the corners than along the sides.
Give inputs and buttons the same 6 px, so a row of controls lines up.
A 4 px input next to a pill button. The row looks like two different products.
Round all four corners and let the accent bar follow them.
Square only the left corners. One box ends up with two radii.
- Do pick the token by role. A large button is still a button: 6 px.
- Don’t write a raw radius value where a token applies.
Code
.card {
border-radius: var(--bh-radius-card);
padding: var(--bh-space-050);
}
.card img {
border-radius: var(--bh-radius-050); /* 8 − 4 = 4 */
}
.button,
.input {
border-radius: var(--bh-radius-control);
}
Tokens
| Token | Value | Description |
|---|---|---|
--bh-radius-0 | 0 | 0. Edges that touch the screen: the page header, full-width tables and panels that run to the edge. |
--bh-radius-025 | 0.125rem | 2 px. Small details: badges, checkboxes and keyboard shortcuts. |
--bh-radius-050 | 0.25rem | 4 px. Supporting elements: tags, status labels, tooltips, dates and timestamps, compact buttons, and items inside a menu. |
--bh-radius-075 | 0.375rem | 6 px. Interactive elements: buttons, inputs, text areas, selects and side navigation items. |
--bh-radius-100 | 0.5rem | 8 px. Containment: cards, alerts and banners, in-page containers, and floating UI such as menus, popovers and toasts. |
--bh-radius-150 | 0.75rem | 12 px. Large page elements: dialogs, drawers, full-page containers and tables in their own frame. |
--bh-radius-200 | 1rem | 16 px. Large media: video and image preview containers. No component takes it by default. |
--bh-radius-full | 999px | Pill and circle. Avatars and other user UI, switches and chips. |
Family tokens · Use these for a kind of element; each points to a step of the scale above.
| Token | Value | Description |
|---|---|---|
--bh-radius-control | {radius.075}0.375rem | Buttons, text fields, selects and side navigation items. |
--bh-radius-control-small | {radius.050}0.25rem | 24 px controls: compact buttons and their fields. |
--bh-radius-item | {radius.050}0.25rem | Items inside menus and lists. Nests inside radius.overlay with space.overlay. |
--bh-radius-card | {radius.100}0.5rem | Cards, alerts, banners and in-page containers. |
--bh-radius-overlay | {radius.100}0.5rem | Floating UI: menus, popovers, select lists and toasts. |
--bh-radius-modal | {radius.150}0.75rem | Dialogs, drawers and full-page containers. |
--bh-radius-pill | {radius.full}999px | Avatars, switches and chips. |