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 sit in columns and need their own corner.
How many corner sizes exist?ThreeControl, badge and container corners differ.
How are corners set?Fixed for the productOne brand, one fixed set of corners.
What should control corners say?Slightly roundedSmall corners keep dense rows straight.
Where does shape show most?Controls in dense rowsCorners show most on controls in dense rows.

Tokens​

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

TokenPoints to
radius.controldense-data.theme.base.radius.control → radius.2
radius.badgedense-data.theme.base.radius.badge → radius.0
radius.containerdense-data.theme.base.radius.container → radius.4
radius.roundradius.full
border-width.defaultborder-width.1
border-width.focusborder-width.2

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

When to use what​

SituationUseNotWhy
Corners of buttons and inputsradius.controlradius.roundSmall corners keep dense rows straight.
Shape of a status badgeradius.badge (rectangle)A pillRectangles line up in a column.