Skip to main content

Accessibility

Floors the system must hold.

size.control.default size.control.compact size.control.large opacity.disabled color.border.focus

The five answers​

QuestionAnswerWhy
Which states get their own visible value?Those and pressedPressed for touch.
How many signals carry each meaning?Two: color and wordColor and word.
What contrast floor do we hold?AAAA, checked on every vivid color.
What is the smallest target?Touch sizeVisitors come from social posts on phones.
Where are the floors hardest to hold?Brand colorVivid brand color is the hardest to keep readable.

Tokens​

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

TokenPoints to, lightPoints to, dark
size.control.defaultsize.52size.52
size.control.compactsize.44size.44
size.control.largesize.60size.60
opacity.disabledopacity.40opacity.40
color.border.focusbrand-expressive.theme.light.color.border.focus → color.pink.light.600brand-expressive.theme.dark.color.border.focus → color.pink.dark.600

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

When to use what​

SituationUseNotWhy
Keyboard focusbutton/focus-ring at border-width.focusRemoving the outlineFocus must show on vivid color.
The smallest clickable thingsize.control.default (touch)A compact controlMost visitors arrive on phones, and a compact control is too small for a thumb.