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 wordBrand colors vary, so meaning needs a word.
What contrast floor do we hold?AAAA in every brand and mode.
What is the smallest target?Touch sizeCustomers sign up on phones.
Where are the floors hardest to hold?Brand colorBrand colors must pass in every mode.

Tokens​

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

Aster

TokenPoints to, lightPoints to, dark
size.control.defaultsize.44size.44
size.control.compactsize.36size.36
size.control.largesize.44size.44
opacity.disabledopacity.40opacity.40
color.border.focusaster.theme.light.color.border.focus → color.teal.light.600aster.theme.dark.color.border.focus → color.teal.dark.600

Birch

TokenPoints to, lightPoints to, dark
size.control.defaultsize.44size.44
size.control.compactsize.36size.36
size.control.largesize.44size.44
opacity.disabledopacity.40opacity.40
color.border.focusbirch.theme.light.color.border.focus → color.purple.light.600birch.theme.dark.color.border.focus → color.purple.dark.600

Coral

TokenPoints to, lightPoints to, dark
size.control.defaultsize.44size.44
size.control.compactsize.36size.36
size.control.largesize.44size.44
opacity.disabledopacity.40opacity.40
color.border.focuscoral.theme.light.color.border.focus → color.orange.light.600coral.theme.dark.color.border.focus → color.orange.dark.600

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

When to use what​

SituationUseNotWhy
Keyboard focusbutton/focus-ring (from the brand)Removing the outlineFocus follows the brand but always shows.
The smallest clickable thingsize.control.default (touch)A compact controlCustomers are often on phones.