Most accessibility problems are decided in the design file, before a developer writes a line. The standard to know is WCAG 2.2, which W3C published as a Recommendation on 5 October 2023.
Six things are in your hands as a designer:
| Rule | WCAG 2.2 criterion | Level | The number |
|---|---|---|---|
| Text contrast | 1.4.3 Contrast (Minimum) | AA | 4.5:1, or 3:1 for large text |
| UI and graphics contrast | 1.4.11 Non-text Contrast | AA | 3:1 |
| Target size | 2.5.8 Target Size (Minimum) | AA | 24 by 24 CSS pixels, with exceptions |
| Focus | 2.4.7 Focus Visible | AA | A visible focus indicator |
| Colour | 1.4.1 Use of Color | A | Never colour alone |
| Text alternatives | 1.1.1 Non-text Content | A | Alt text for meaningful images |
Motion has its own rules, covered below. Everything here comes from W3C's own pages.