On this page

Radius

Corner radius tells people what an element is before they read it. Eight steps, each tied to a role.

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.

3
Sync stock
Ctrl K

radius.050 · 4 px

Supporting elements: tags, status labels, tooltips, compact buttons and the items inside a menu.

Backend
Synced
Copied to clipboard
Retry
Edit mappingRun sync nowPause

radius.075 · 6 px

Interactive elements: buttons, inputs, text areas, selects and side navigation items. Inputs and buttons always share this value.

Connect
mystore.example.com
Tasks

radius.100 · 8 px

Containment and floating UI: cards, alerts and banners, menus, popovers, toasts, and a group of controls with 4 px padding.

Online storeConnected · last sync 2 minutes ago
Edit mappingRun sync nowPause
Sync failed for 12 orders. Retrying in 5 minutes.
OrdersProducts

radius.150 · 12 px

Large page elements: dialogs, drawers, full-page containers and a table in its own frame.

Disconnect the online store?

Orders stop syncing until you connect again.

CancelDisconnect

radius.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.

TN
Status: Failed
Failed

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.

Image
8 − 4 = 4
No role: an image in a card, 4 px from the edge
Panel
12 − 4 = 8
No role: a panel in a dialog, 4 px from the edge
Image
12 − 8 = 4
No role: an image in a drawer, 8 px from the edge
Button
Role: 6
Has a role: a button in a card keeps 6 px
Chip
Role: full
Has a role: a chip in an input stays fully round

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.

ConnectOutside: ring radius 6 + 2 = 8Edit mappingRun sync nowPauseInside a clipping box: offset −2
The ring is the element’s radius + 2 px. In code the browser draws it; in design files, draw it as radius + 2.

Do and don’t

Do
Image

An image has no role, so take the padding off the outer radius: 12 − 4 = 8. The two curves run side by side.

Don’t
Image

The same 12 px inside and out. The gap is wider at the corners than along the sides.

Do
Search ordersSearch

Give inputs and buttons the same 6 px, so a row of controls lines up.

Don’t
Search ordersSearch

A 4 px input next to a pill button. The row looks like two different products.

Do
Before the first syncMap the order fields.

Round all four corners and let the accent bar follow them.

Don’t
Before the first syncMap the order fields.

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

TokenValueDescription
--bh-radius-000. Edges that touch the screen: the page header, full-width tables and panels that run to the edge.
--bh-radius-0250.125rem2 px. Small details: badges, checkboxes and keyboard shortcuts.
--bh-radius-0500.25rem4 px. Supporting elements: tags, status labels, tooltips, dates and timestamps, compact buttons, and items inside a menu.
--bh-radius-0750.375rem6 px. Interactive elements: buttons, inputs, text areas, selects and side navigation items.
--bh-radius-1000.5rem8 px. Containment: cards, alerts and banners, in-page containers, and floating UI such as menus, popovers and toasts.
--bh-radius-1500.75rem12 px. Large page elements: dialogs, drawers, full-page containers and tables in their own frame.
--bh-radius-2001rem16 px. Large media: video and image preview containers. No component takes it by default.
--bh-radius-full999pxPill 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.

TokenValueDescription
--bh-radius-control{radius.075}0.375remButtons, text fields, selects and side navigation items.
--bh-radius-control-small{radius.050}0.25rem24 px controls: compact buttons and their fields.
--bh-radius-item{radius.050}0.25remItems inside menus and lists. Nests inside radius.overlay with space.overlay.
--bh-radius-card{radius.100}0.5remCards, alerts, banners and in-page containers.
--bh-radius-overlay{radius.100}0.5remFloating UI: menus, popovers, select lists and toasts.
--bh-radius-modal{radius.150}0.75remDialogs, drawers and full-page containers.
--bh-radius-pill{radius.full}999pxAvatars, switches and chips.
  • Border: border widths, the selected bar and the focus ring.
  • Spacing: the padding values used for content without a role.