What the components already do, the contrast this theme reaches, and what stays with the person building the screen.
The components meet WCAG 2.2 AA as they ship: every control has a name, a focus ring and a keyboard path, and motion steps back when the system asks for less. That covers the parts. A screen built from them still has to be put together with care, and this page says where.
Read from this system's theme and worked out for both modes. Text needs 4.5:1, a focus ring or the edge of a control needs 3:1. Every text pair, including status colours, is on the Colors page.
| Pair | Needs | Light | Dark |
|---|---|---|---|
| Body text on the pageforeground on background | 4.5:1 | 17.3:1Passes | 16.7:1Passes |
| Secondary text on the pagemuted-foreground on background | 4.5:1 | 5.7:1Passes | 7.6:1Passes |
| Text on a cardcard-foreground on card | 4.5:1 | 19.2:1Passes | 14.9:1Passes |
| Secondary text on a cardmuted-foreground on card | 4.5:1 | 6.3:1Passes | 6.7:1Passes |
| Text in a menu or dialogpopover-foreground on popover | 4.5:1 | 19.2:1Passes | 14.9:1Passes |
| Label on the primary buttonprimary-foreground on primary | 4.5:1 | 16.2:1Passes | 16.9:1Passes |
| Label on a secondary buttonsecondary-foreground on secondary | 4.5:1 | 16.5:1Passes | 13.1:1Passes |
| Error textdestructive on background | 4.5:1 | 4.7:1Passes | 6.0:1Passes |
| Focus ring against the pagering on background | 3:1 | 4.7:1Passes | 17.8:1Passes |
| Key | What it does |
|---|---|
| Tab | Moves to the next control. Shift Tab moves back. The order follows the page, left to right, top to bottom. |
| Enter | Presses a button, follows a link, sends a form from any of its fields. |
| Space | Presses a button, ticks a checkbox, flips a switch. |
| ↑↓ | Move inside a menu, a list, a radio group or a select. Home and End jump to the first and last. |
| ←→ | Move between tabs, toggles and slider steps. |
| Esc | Closes the top overlay and puts focus back on what opened it. |
| ⌘K | Opens search from anywhere. Ctrl K on Windows and Linux. |
No component can do these. They are decided on the screen, each time.
About one in twelve men cannot tell red from green. The word carries the meaning, the colour makes it quick.
It is restyled through the theme's ring colour if it has to change. Without it, a keyboard user cannot see where they are.