November 7, 2026
7 min read
Accessibility
Design
Process

Designing for Accessibility: Cheaper Than a Retrofit

Designing for accessibility at the Figma stage costs far less than fixing it after launch. See which decisions to lock in early and how to test before you ship.

DesignDuck Team
DesignDuck TeamDesign
Designing for Accessibility: Cheaper Than a Retrofit
Have a website or product you want built right?DesignDuck is a code-first design and development team in New Delhi working with clients worldwide. Start with a free discovery call and get a fixed-price quote.

Designing for accessibility is mostly a design job, because most accessibility problems are not coding mistakes. They are design decisions that were made without anyone noticing: a light grey label on white, a 28px icon button, a focus ring removed because it clashed with the card. By the time a developer meets them, the fix means going back to design.

That is the case for starting early. A contrast pair costs nothing to choose in a Figma file. The same pair, once it sits in forty components across a shipped site, costs a redesign pass, a code pass and a regression test.

This post is about the process: which decisions belong in the design file, how they carry into code, and how to test before launch. It is not an item-by-item standards checklist.


Why retrofitting costs more

The numbers on how common this is are grim. In the WebAIM Million 2026 report (checked November 2026), which scanned one million home pages in February 2026, 95.9% had detectable WCAG 2 failures, at an average of about 56 errors per page.

The most common failure was low contrast text, found on 83.9% of home pages, so the biggest problem on the web is also the cheapest to prevent. Missing image alt text came next at 53.1%, then missing form labels at 51%. Contrast is picked in a design tool, long before anyone writes a line of code.

There is also a plain audience argument. The World Health Organization estimates that 1.3 billion people, about 16% of the world's population, live with a significant disability. Add people with a broken wrist, a glare-covered phone screen, or a trackpad that has died, and the group who benefit from sensible defaults is much larger than it looks.

On the legal side, the European Accessibility Act (Directive (EU) 2019/882) has applied since 28 June 2025, and it covers some online services such as e-commerce. Scope and exemptions vary by business size and country. This is not legal advice, so check with a lawyer if it might apply to you.


What to decide in the design file

The practical goal is to turn accessibility into tokens and component states, so nobody has to remember it screen by screen. These are the decisions we try to settle in Figma before any page is built.

  • Contrast pairs, not single colours. Define which text colours are allowed on which surfaces. WCAG 1.4.3 asks for 4.5:1 for normal text and 3:1 for large text (roughly 24px, or 18.5px bold). Check each pair once and name it, so the rest of the team picks from a list that already passes.
  • Non-text contrast. Input borders, icons that carry meaning and focus rings need 3:1 against their surroundings (WCAG 1.4.11). Pale grey input borders are the usual casualty.
  • Type scale and line height. Set a minimum body size and a sensible line height as tokens. Then nobody shrinks a caption to make a layout fit.
  • A designed focus state. Draw the focus ring on every interactive component, in a brand colour, with an offset. WCAG 2.2 added 2.4.11 Focus Not Obscured (Minimum), so also check that a sticky header or cookie banner never covers the focused element.
  • Target size. WCAG 2.2's 2.5.8 Target Size (Minimum) sets 24 by 24 CSS pixels as the floor for pointer targets, with some exceptions. Bigger is kinder on a phone. Build the icon button at its real hit-area size in the component, not just the visible icon.
  • Every state. Hover, focus, active, disabled, error, loading. A component with only a default state is not finished.
  • Colour is never the only signal. An error shown only in red fails anyone who cannot tell the red apart (WCAG 1.4.1). Add an icon, a label or an underline.
  • Motion rules. Decide which animations are decorative, and what each one does when a person has asked their system for reduced motion. Anything that moves on its own for more than a few seconds needs a pause control.

WCAG 2.2 became a W3C Recommendation on 5 October 2023. Level AA is the usual target, and it is what the rest of this post assumes.


How it carries into code

If the tokens are right, the code side is mostly about not breaking them. The one principle worth pinning above the monitor is the first rule of ARIA in W3C's Using ARIA: if a native HTML element already has the behaviour you need, use it instead of adding ARIA to something else.

A native <button> is focusable, responds to Enter and Space, and is announced as a button. A div with a click handler does none of that, and the missing pieces (role, tabindex, key handlers) are exactly the ones teams forget. ARIA is for the gaps native HTML cannot fill, such as a custom tabs widget. It changes what assistive tech is told, not how an element behaves.

In practice, the list is short.

  • Use <button> for actions and <a href> for navigation. Use <nav>, <main>, <header>, <footer> and real headings so screen reader users can jump around.
  • Give every form input a visible label, not just a placeholder.
  • Write alt text for what the image says in context, and use an empty alt="" for decoration.
  • Set lang on the <html> element. The WebAIM report found it missing on 13.5% of home pages.
  • Style focus with :focus-visible, which shows the ring for keyboard users without flashing it on every mouse click.
  • Respect prefers-reduced-motion, in CSS and in any animation library.

Here is the focus and motion treatment from our own call-to-action button, trimmed to the relevant classes:

Our CTA button, simplified to the accessibility classes
// The real file keeps these in one long class string with layout and colour.
const className = cn(
  // A visible amber ring only for keyboard focus, offset so it never
  // touches the button's own border
  "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-brand-amber",
  // No transition when the visitor has asked for reduced motion
  "transition-[padding,border-radius] duration-300 motion-reduce:transition-none",
);

What we actually do on this site

We would rather describe what exists than claim a certification we do not have. Here is what you can verify in the code of this site.

  • The page declares lang="en" on <html> (app/layout.tsx).
  • Our custom buttons use focus-visible rings, for example the link button, the code-copy button and the error page buttons (components/atoms/, app/error.tsx).
  • The header hides on scroll with a slide animation, and it skips that movement when the visitor prefers reduced motion (components/navbar.tsx, which reads the prefers-reduced-motion media query directly).
  • The testimonial carousel checks prefers-reduced-motion, and has a pause and play button plus labelled slide controls (components/testimonials/index.tsx).
  • The fade-in of the home page hero background is plain CSS, and it is switched off with motion-reduce:animate-none (components/hero/index.tsx).
  • Icon-only links and buttons carry aria-label text, such as the footer social links (components/footer/index.tsx) and the copy-email button (components/molecules/copy-email.tsx). External links in the footer add a screen-reader-only "(opens in a new tab)" note (components/footer/index.tsx).
  • Meaningful images have alt text, and a testimonial logo that only repeats the adjacent brand name gets an empty alt (components/testimonials/card.tsx).

That list is not a claim that the site is free of problems. We have not run a formal audit and published the results, and a site this size will have things worth fixing.


How to test before launch

Automated tools are worth running, but they only see part of the picture. One useful data point is a 2017 GOV.UK experiment. The accessibility team built a page with 143 deliberate failures and ran ten automated tools against it. Together the tools picked up 71% of the barriers, so 42 went unnoticed by every one of them. Individually the spread was wide: the best tool found 37% (counting errors and warnings only) and the weakest found 17%. It was a constructed page and the tools have changed since, so read it as a caution rather than a benchmark. The direction still holds: a clean scan is not a pass.

So we layer three passes.

  1. Automated scan. Run Lighthouse, axe or WAVE on every template. It catches missing labels, empty links and many contrast failures quickly. A clean scan means "no detectable failures", nothing more.
  2. Keyboard pass. Put the mouse away and use Tab, Shift+Tab, Enter, Space and Escape through every main flow. Can you see where focus is at all times? Is the order logical? Can you open and close menus and modals? Does focus get trapped or lost? This takes minutes and finds the issues scanners cannot see.
  3. Screen reader pass. Go through the key journeys with VoiceOver on Mac or NVDA on Windows. Listen for unlabelled buttons, headings that do not match the layout, and form errors that appear on screen but are never announced.

A good habit is to run the keyboard pass on the design prototype too. If a flow only works with a mouse in Figma, it will only work with a mouse in the browser.

Two more checks are cheap: zoom the page to 200% and make sure nothing is cut off, and turn on reduced motion in your system settings and reload.


Make it part of the process, not a phase

None of this needs a special project. It takes a few extra rows in the design file, a short list of defaults for developers, and an hour of testing before launch. The expensive version is the one where accessibility first shows up in the last week before launch, as a long list of issues across finished screens.

If you are planning a new site or a redesign and want accessibility built in from the first frame, see how we price our work, or tell us about your project.