Skip to content
HomeCobalt

Radius

How round each corner is. The radius follows the element's height: small marks take 4 to 6px, 32 to 44px controls take 10 or 12px, and surfaces take 16 to 24px. A shape inside another is concentric: its radius is the outer radius minus the padding between them. By default only a switch, an avatar, a radio mark and a thin progress bar are fully round; a status mark, a timeline's among them, is a rounded square.

Steps

rounded-xs4px, Checkbox
rounded-sm6px, Tag, key cap
rounded-md8px, Tooltip, a thumb in its track
rounded-lg10px, Button, field, menu row
rounded-xl12px, Track, list row
rounded-2xl16px, Card, sheet
rounded-3xl16px, Menu, popover, toast
rounded-4xl24px, Dialog

Pill corners

Default corners
Gross assets
Harbour Street Master Fund LP, filed Aug 29, 2026.
$4.7B
Pill corners
Gross assets
Harbour Street Master Fund LP, filed Aug 29, 2026.
$4.7B

Controls have their own corner tokens, so a product can make them round without touching its cards, menus and popups. --r-control is every one-line control: a button, a field, a select trigger, a pill, a toggle, a nav item, a page step. --r-track is a segmented control's or tabs' track, and --r-tag a tag or badge. The parts inside follow on their own: --r-control-sm is 4px in from a control, --r-thumb 4px in from a track.

Tokens

  • --radiusshadcn's base corner, which its cards and menus step from, so it stays a corner even when controls are pillsvar(--r-lg)
  • --r-xsA checkbox: a 16px box with slightly rounded corners4px
  • --r-smA small corner: a key cap, a tag (see --r-tag)6px
  • --r-mdA tooltip8px
  • --r-lgA control's corner (see --r-control), a textarea, a calendar day, and a row in a menu, select or list popup, which sits --pad-popup inside the popup's --r-3xl10px
  • --r-xlA segmented control's or tabs' track (see --r-track), a list row on a page, a date tile: the thumb's --r-md plus the track's 4px padding, so the two stay concentriccalc(var(--r-md) + 4px)
  • --r-2xlA card, a sheet16px
  • --r-3xlA menu, a popover, a select popup, a date picker, a toast: a row's corner (a control's, --r-lg) plus the popup's padding, so the two stay concentric and the popup follows the corner setting, 16px by default like a cardcalc(var(--r-lg) + var(--pad-popup))
  • --r-4xlA dialog24px
  • --r-controlA one-line control: a button, a field, a select trigger, a pill, a toggle, a nav item, a page step. 999px rounds them fullyvar(--r-lg)
  • --r-control-smA small control or chip 4px inside a field: a 28px icon button, a combobox chipcalc(var(--r-control) - 4px)
  • --r-fieldA field box that can grow past one line as chips wrap (input group, combobox, invite field): fully round at one line under pill corners, and the same corner once it grows, never a capsulemin(var(--r-control), calc(var(--control) / 2))
  • --r-trackA segmented control's or tabs' trackvar(--r-xl)
  • --r-thumbThe option inside a track, 4px in, so the two stay concentriccalc(var(--r-track) - 4px)
  • --r-tagA tag, a badgevar(--r-sm)
  • --r-tooltipA tooltip and the chart's tooltip; under pill corners half a one-line tooltip's height (calc(0.5lh + var(--spacing))), so one line is fully round and two never make a capsulevar(--r-md)
  • --r-bubbleA message bubble, a picture group and a file in a threadvar(--r-2xl)
  • --r-bubble-joinedA bubble's corner that faces the next bubble of the same run, on the sender's sidevar(--r-sm)
  • --r-bubble-innerA quote inside a bubble, 4px in from its edge, so the two stay concentriccalc(var(--r-bubble) - 4px)
  • --r-composerThe message composer: its 32px buttons' corner plus the padding around them, so a pill composer stays concentric with round buttons and never turns into a capsulecalc(min(var(--r-control), var(--control-sm) / 2) + var(--pad-composer))

Rules