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 gets its own value for touch.
How many signals carry each meaning?Two: color and wordStatus is rare; color and a word are enough.
What contrast floor do we hold?AAAA contrast, with large text helping further.
What is the smallest target?Touch sizeReaders are often on phones.
Where are the floors hardest to hold?Long textLong text needs steady contrast and line length.

Tokens​

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

TokenPoints to, lightPoints to, dark
size.control.defaultsize.48size.48
size.control.compactsize.40size.40
size.control.largesize.48size.48
opacity.disabledopacity.40opacity.40
color.border.focuscontent-first.theme.light.color.border.focus → color.navy.light.600content-first.theme.dark.color.border.focus → color.navy.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 outlineKeyboard users must always see where they are.
The smallest clickable thingsize.control.default (touch)A compact controlMany readers are on phones.