Home / Knowledge work / Design

Building an accessible screen in Figma

Build a sign-up screen with auto layout, components and variables, check it against WCAG 2.2 contrast and target size rules, and hand it off cleanly in Dev Mode.

Intermediate · 12 min read · Updated December 3, 2026

A screen is done right when it looks good, resizes without breaking, works for people with low vision or shaky hands, and a developer can build it without guessing. This lesson walks through building a simple sign-up screen in Figma the modern way, then checking it against the accessibility rules most employers expect.

The rules you design to

WCAG 2.2 (Web Content Accessibility Guidelines) is the current standard for accessible screens. Most companies and public agencies aim for level AA. Laws in many countries point to it, and requirements differ by country and sector, so ask your employer which level applies. The rules that matter most at the design stage:

RuleWhat it asks
Text contrastAt least 4.5 to 1 for normal text. At least 3 to 1 for large text (about 24 pixels regular, or about 19 pixels bold).
Non-text contrastAt least 3 to 1 for the edges of inputs and buttons, focus rings and icons that carry meaning.
Target sizeClick and tap targets at least 24 by 24 CSS pixels, or spaced so they do not crowd each other. Many teams use 44 by 44 for touch anyway.
Focus visibleA clear outline shows which control the keyboard is on, and nothing sticky hides it.
Use of colorColor is never the only signal. Errors also get text or an icon.

Contrast ratio compares how light two colors are, from 1 to 1 (the same color) to 21 to 1 (black on white).

1213 : 1large text,controls4.5 : 1 normal textblack on whitehigher is easier to read
How contrast ratio works. Gray text that looks fine on a bright monitor can fail. Aim at or above the line, not just near it.

Step 1: set up variables first

Variables in Figma store values with names, like color/text/primary or space/16. Set them up before you draw, so every screen uses the same values and a change in one place updates everything.

  1. Make a color collection with two modes

    Create a collection named Color with a Light mode and a Dark mode. Add text, background, border, brand and error colors. Give each a role name, not a hue name: text/primary instead of dark-gray.
  2. Check each text and background pair now

    Use a contrast checker plugin or the contrast tool in your browser's developer tools. Fix any pair below 4.5 to 1 before it spreads across fifty screens. Check both modes.
  3. Add number variables

    Make spacing (4, 8, 16, 24, 32) and corner radius variables. Scope spacing variables to gap and padding so they only show up where they belong.

Step 2: build with auto layout

Auto layout makes a frame arrange its children in a row or column with set gaps and padding. It behaves much like CSS flexbox, which is how developers will build it, so your design and the code match.

  1. Build the input field

    Make a vertical auto layout frame: a label on top, the text box below, and a help or error line under it. Set the gap to space/8. Set the text box to Fill container width so it stretches with the screen.
  2. Make it a component with variants

    Turn the field into a component. Add variants for Default, Focused, Error and Disabled. The Focused variant gets a thick outline that meets 3 to 1 against the background. The Error variant gets red border plus an icon and a written message.
  3. Build the button the same way

    A horizontal auto layout frame with padding that makes it at least 44 pixels tall. Variants for Default, Hover, Pressed, Focused and Disabled.
  4. Assemble the screen

    Stack heading, two fields, a checkbox and the button in one vertical frame with space/24 gaps. Drag the screen wider and narrower. Nothing should overlap or clip. If it does, fix the resizing settings now.

Step 3: check it like a tester would

  • Contrast: check every text color on its real background, including gray help text, disabled states and text on images.
  • Size: zoom the frame to 200 percent. Text should still fit without cutting off.
  • Targets: measure the checkbox and any icon buttons. Make the tap area at least 24 by 24, even if the visible icon is smaller.
  • Color alone: view the screen in grayscale. Can you still find the error and the main button?
  • Reading order: number the elements in the order a keyboard or screen reader should reach them. Add that order as a note for developers.

AI can help here. Ask Claude or ChatGPT to review a screenshot against WCAG 2.2 AA and list likely problems, or use Figma's agent to rename and tidy layers. Then verify each finding with a real checker. AI review is a second pair of eyes, not a pass or fail.

Step 4: hand off in Dev Mode

Dev Mode is the view developers use to inspect a Figma file. When you used variables, the code panel shows the variable names, so developers use the same tokens in code instead of guessing hex values.

  • Mark finished frames Ready for dev so developers know what is final.
  • Add notes for behavior the picture cannot show: what happens on error, keyboard order, focus behavior and alt text for images.
  • Link the component to its coded version if your team has a design system.

Checklist

  • Variables for color, spacing and radius, with light and dark modes
  • Every text pair at least 4.5 to 1, large text and control edges at least 3 to 1
  • Visible labels, visible focus state, errors shown with text and an icon
  • Targets at least 24 by 24, ideally 44 by 44 for touch
  • Screen resizes cleanly, notes added, frame marked ready for dev