Skip to main content

Shape

Corners and borders.

radius.control radius.badge radius.container radius.round border-width.default border-width.focus

The five answers​

QuestionAnswerWhy
Which shape roles does it need?Controls, badges and containersBadges keep a clear rectangle.
How many corner sizes exist?ThreeControl, badge and container corners differ.
How are corners set?Fixed for the productOne brand, one set of corners.
What should control corners say?Slightly roundedClear, slightly rounded controls.
Where does shape show most?Controls and cardsCorners show on controls and step cards.

Tokens​

Each token points to another token. Values live only on primitives, below.

TokenPoints to
radius.controlaccessible-first.theme.base.radius.control → radius.6
radius.badgeaccessible-first.theme.base.radius.badge → radius.4
radius.containeraccessible-first.theme.base.radius.container → radius.8
radius.roundradius.full
border-width.defaultborder-width.2
border-width.focusborder-width.3

The raw values these tokens end at are on Primitives › Shape.

When to use what​

SituationUseNotWhy
Corners of buttons and inputsradius.controlA pillClear rectangles read as fields and buttons.
Shape of a status badgeradius.badge (rectangle)A pillClear shapes with a word inside.