Become a Pro / website · becomeapro.ai / content / lessons / knowledge-work / design / accessible-screens-in-figma.mdx
| 1 | --- |
| 2 | title: "Building an accessible screen in Figma" |
| 3 | description: "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." |
| 4 | updated: 2026-12-03 |
| 5 | minutes: 12 |
| 6 | level: Intermediate |
| 7 | order: 2 |
| 8 | sources: |
| 9 | - https://help.figma.com/hc/en-us/articles/360040451373-Guide-to-auto-layout-in-Figma |
| 10 | - https://help.figma.com/hc/en-us/articles/42031586813719-Use-auto-layout-with-CSS-Flexbox-in-mind |
| 11 | - https://help.figma.com/hc/en-us/articles/15339657135383-Guide-to-variables-in-Figma |
| 12 | - https://help.figma.com/hc/en-us/articles/15145852043927-Create-and-manage-variables-and-collections |
| 13 | - https://help.figma.com/hc/en-us/articles/27882809912471-Variables-in-Dev-Mode |
| 14 | - https://help.figma.com/hc/en-us/articles/15023124644247-Guide-to-Dev-Mode |
| 15 | - https://www.w3.org/WAI/standards-guidelines/wcag/new-in-22/ |
| 16 | - https://www.w3.org/WAI/WCAG22/Understanding/contrast-minimum.html |
| 17 | - https://www.w3.org/WAI/WCAG22/Understanding/non-text-contrast.html |
| 18 | - https://www.w3.org/WAI/WCAG22/Understanding/target-size-minimum.html |
| 19 | - https://webaim.org/articles/contrast/ |
| 20 | --- |
| 21 | |
| 22 | 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. |
| 23 | |
| 24 | ## The rules you design to |
| 25 | |
| 26 | **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: |
| 27 | |
| 28 | | Rule | What it asks | |
| 29 | | --- | --- | |
| 30 | | Text contrast | At 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). | |
| 31 | | Non-text contrast | At least 3 to 1 for the edges of inputs and buttons, focus rings and icons that carry meaning. | |
| 32 | | Target size | Click 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. | |
| 33 | | Focus visible | A clear outline shows which control the keyboard is on, and nothing sticky hides it. | |
| 34 | | Use of color | Color is never the only signal. Errors also get text or an icon. | |
| 35 | |
| 36 | **Contrast ratio** compares how light two colors are, from 1 to 1 (the same color) to 21 to 1 (black on white). |
| 37 | |
| 38 | <Diagram caption="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."> |
| 39 | <svg viewBox="0 0 600 200" role="img" aria-label="A scale from 1 to 21 with marks at 3 to 1 for large text and controls and 4.5 to 1 for normal text"> |
| 40 | <line x1="40" y1="100" x2="560" y2="100" stroke="currentColor" strokeWidth="3" /> |
| 41 | <rect x="40" y="88" width="78" height="24" className="soft" stroke="none" /> |
| 42 | <text x="40" y="140" fontSize="14" textAnchor="middle" fill="currentColor">1</text> |
| 43 | <text x="560" y="140" fontSize="14" textAnchor="middle" fill="currentColor">21</text> |
| 44 | <line x1="92" y1="70" x2="92" y2="120" stroke="currentColor" strokeWidth="2" /> |
| 45 | <text x="92" y="60" fontSize="14" textAnchor="middle" fill="currentColor">3 : 1</text> |
| 46 | <text x="92" y="168" fontSize="14" textAnchor="middle" fill="currentColor">large text,</text> |
| 47 | <text x="92" y="186" fontSize="14" textAnchor="middle" fill="currentColor">controls</text> |
| 48 | <line x1="131" y1="70" x2="131" y2="120" stroke="currentColor" strokeWidth="2" /> |
| 49 | <text x="160" y="40" fontSize="14" textAnchor="middle" fill="currentColor">4.5 : 1 normal text</text> |
| 50 | <line x1="560" y1="70" x2="560" y2="120" stroke="currentColor" strokeWidth="2" /> |
| 51 | <text x="470" y="60" fontSize="14" textAnchor="middle" fill="currentColor">black on white</text> |
| 52 | <text x="330" y="140" fontSize="14" textAnchor="middle" fill="currentColor">higher is easier to read</text> |
| 53 | </svg> |
| 54 | </Diagram> |
| 55 | |
| 56 | ## Step 1: set up variables first |
| 57 | |
| 58 | **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. |
| 59 | |
| 60 | <Steps> |
| 61 | <Step title="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`.</Step> |
| 62 | <Step title="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.</Step> |
| 63 | <Step title="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> |
| 64 | </Steps> |
| 65 | |
| 66 | ## Step 2: build with auto layout |
| 67 | |
| 68 | **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. |
| 69 | |
| 70 | <Steps> |
| 71 | <Step title="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.</Step> |
| 72 | <Step title="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.</Step> |
| 73 | <Step title="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.</Step> |
| 74 | <Step title="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> |
| 75 | </Steps> |
| 76 | |
| 77 | <Callout type="warning">Never put the label inside the box as placeholder text only. It disappears when people type, and many screen readers and people with memory difficulties lose track of what the field was for. Keep a visible label.</Callout> |
| 78 | |
| 79 | ## Step 3: check it like a tester would |
| 80 | |
| 81 | - **Contrast:** check every text color on its real background, including gray help text, disabled states and text on images. |
| 82 | - **Size:** zoom the frame to 200 percent. Text should still fit without cutting off. |
| 83 | - **Targets:** measure the checkbox and any icon buttons. Make the tap area at least 24 by 24, even if the visible icon is smaller. |
| 84 | - **Color alone:** view the screen in grayscale. Can you still find the error and the main button? |
| 85 | - **Reading order:** number the elements in the order a keyboard or screen reader should reach them. Add that order as a note for developers. |
| 86 | |
| 87 | 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. |
| 88 | |
| 89 | ## Step 4: hand off in Dev Mode |
| 90 | |
| 91 | **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. |
| 92 | |
| 93 | - Mark finished frames **Ready for dev** so developers know what is final. |
| 94 | - Add notes for behavior the picture cannot show: what happens on error, keyboard order, focus behavior and alt text for images. |
| 95 | - Link the component to its coded version if your team has a design system. |
| 96 | |
| 97 | ## Checklist |
| 98 | |
| 99 | - Variables for color, spacing and radius, with light and dark modes |
| 100 | - Every text pair at least 4.5 to 1, large text and control edges at least 3 to 1 |
| 101 | - Visible labels, visible focus state, errors shown with text and an icon |
| 102 | - Targets at least 24 by 24, ideally 44 by 44 for touch |
| 103 | - Screen resizes cleanly, notes added, frame marked ready for dev |