Insights

Build Accessibility into Your Design System

Start with reusable components that make good decisions easier. Accessibility belongs in the foundations, not only in the final review.

· 4 min read

What is an accessibility-first design system?

An accessibility-first design system is a shared library of components, patterns and guidelines in which accessibility requirements are built in and documented from the start. When a team uses a button, form field or dialog from the system, the keyboard behaviour, labels, contrast and focus handling come with it.

This does not make every page accessible automatically. Content, images, page structure and the way components are combined still need attention. But it removes the same problems from being rebuilt again and again.

Agree on the essentials

Define readable typography, sufficient contrast, meaningful labels, keyboard behavior, and visible focus. Document how components handle errors, loading, expanded content, and disabled states. Prefer semantic HTML and test components in the combinations people actually use.

Make review part of the routine

Include automated checks, keyboard testing, and appropriate assistive-technology review in component changes. Share examples with designers and developers. A tested component is a good starting point, but its content and placement still affect accessibility in a finished page.

Which foundations should you define first?

Start with colour, type, spacing and focus, because every component depends on them. Choose colour pairs that meet WCAG contrast: at least 4.5:1 for normal text, 3:1 for large text and 3:1 for the visible parts of controls such as input borders and icons.

Set a readable base font size and line height, and check that text can be enlarged to 200% without content being cut off. Design one clear focus style and use it everywhere. Make interactive targets at least 24 by 24 CSS pixels, the minimum in WCAG 2.2, or larger where you can.

Should components use native HTML or ARIA?

Use native HTML elements wherever they fit. The first rule in the W3C's guidance on using ARIA is to use a native element with the built-in semantics and behaviour you need, rather than repurposing another element and adding ARIA.

A real button element is focusable, works with Enter and Space and is announced as a button without extra code. Add ARIA only for patterns HTML does not cover, such as tabs or a combobox, and follow the WAI-ARIA Authoring Practices Guide for the expected keyboard behaviour. The guide itself warns that no ARIA is better than bad ARIA.

What should each component's documentation include?

Each component page should say how the component behaves for keyboard and screen reader users, not only how it looks. Describe which keys do what, where focus goes when it opens or closes, what the accessible name is and how errors or status changes are announced.

Add do's and don'ts for content, such as writing link text that makes sense on its own or giving every icon button a label. Note which WCAG success criteria the component helps with and what the team using it still has to do.

How do you keep the system accessible over time?

Treat accessibility as part of the definition of done for every new or changed component. Run automated checks in your build, but remember that tools cannot check everything: whether a label is meaningful or a focus order makes sense needs a person.

Test new components with a keyboard and at least one screen reader before release. Keep a changelog so product teams know when behaviour changes, and invite feedback from people who use assistive technology. Review the foundations when WCAG is updated, as happened with version 2.2 in October 2023.

How do you handle forms, dialogs and messages?

These are the components where most accessibility problems appear, so give them extra care. Every form field needs a visible label that stays visible while typing; placeholder text alone disappears and often has low contrast. Connect hints and error messages to their field so screen readers announce them together.

When a dialog opens, move focus into it, keep focus inside while it is open, close it with Escape and return focus to the control that opened it. Toasts and inline status messages should be announced without moving focus, which WCAG covers in Status Messages. Avoid messages that disappear on a timer before people can read them.

What does this mean for designers and developers?

Designers annotate focus order, headings, labels and alternative text in their designs, so these decisions are not left to guesswork during development. Developers build components from semantic HTML, test them with a keyboard and keep the documentation in step with the code.

Shared responsibility works best when both see the same component examples and the same acceptance criteria.

Sources

Automated tools support accessibility work. They do not replace manual testing or establish legal compliance.

Check your website

Enter your website and see where to start.

Keep exploring

This website loads no analytics or support chat. With your permission, Meta (Facebook and Instagram) measures your visit with a cookie, so we can see which ads work. If you arrived through an ad or a partner link, we also remember its campaign tags and partner code for this visit only, so a partner discount still applies when you sign up. You can turn this off here at any time.