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 containersEach brand sets three corners.
How many corner sizes exist?ThreeControl, badge and container.
How are corners set?Set by each brandEach brand sets its own corners.
What should control corners say?RoundedRounded by default; each brand sets its own corner.
Where does shape show most?Buttons and badgesCorners are the most visible brand difference.

Tokens​

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

Aster

TokenPoints to
radius.controlaster.theme.base.radius.control → radius.4
radius.badgeaster.theme.base.radius.badge → radius.4
radius.containeraster.theme.base.radius.container → radius.8
radius.roundradius.full
border-width.defaultborder-width.1
border-width.focusborder-width.2

Birch

TokenPoints to
radius.controlbirch.theme.base.radius.control → radius.12
radius.badgebirch.theme.base.radius.badge → radius.999
radius.containerbirch.theme.base.radius.container → radius.16
radius.roundradius.full
border-width.defaultborder-width.1
border-width.focusborder-width.2

Coral

TokenPoints to
radius.controlcoral.theme.base.radius.control → radius.999
radius.badgecoral.theme.base.radius.badge → radius.999
radius.containercoral.theme.base.radius.container → radius.20
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.control (set by the brand)A hard-coded radiusEach brand sets its own corner through the theme.
Shape of a status badgeradius.badge (set by the brand)A hard-coded shapeThe brand sets the badge shape.