a11y Companion
Accessibility review inside Figma and FigJam, with canvas audits, Dev Mode handoff, and sign-off that tracks the reviewed checklist state.
Built with
- Figma Widget API
- TypeScript
- WCAG 2.2
- TanStack Start
- Design Tokens
- Accessibility
- Vitest

When sign-off stops matching the design
I built and maintain a11y Companion, a widget for accessibility review in Figma and FigJam. Version 3.0.0 pairs The A11Y Project Checklist, 64 items in 16 sections, with canvas audits, contrast inspection, reviewer sign-off, and handoff records.
The first version let teams complete the checklist in the design file. Once a section was signed, though, it couldn't tell anyone that changed items needed another look. In v3.0.0 a named reviewer's signature records item ids, completion state, and checklist revision. If any of that changes, the stamp turns amber and the section is marked for re-review.
- Touch targets
- 50 targetsPage scan
- Text readability
- 41 layersPage scan
- Token contrast
- 120 pairsPage scan
- Text
- #92400E
- Background
- #FEF3C7
Ready for handoff
- Checklist
- 64 / 64
- Sign-offs
- 16 / 16
- Evidence
- Complete
The checklist is complete, sign-offs are current, and all three page audits are recorded.
Checklist, evidence, sign-offs, and contrast are ready for handoff.
Ready: Ready for handoff. The checklist is complete, sign-offs are current, and all three page audits are recorded.
Design the decision before the screen
The design work lives in a Figma file that walks through the problem, each decision, and what it costs. Product designers checking their own page come first, and reviewers signing off sections come second. Both lose context when findings end up in meetings, screenshots, or tickets away from the design, so the checklist, the measured findings, the reviewer decisions, and the handoff evidence all stay on the canvas.
The central decision was to make missing or outdated evidence impossible to mistake for readiness. The rest follow from it:
Checklist sections collapse and show their own progress, so 64 items stay navigable
Every item cites its WCAG criterion, because people trust a cited rule more than a tool's opinion
Audits group repeated findings into causes and say what's kept and what's only a sample
Light and dark themes with six accent colors change the widget and never the record
I also decided what to leave out. One renderer for Figma and React would hide their different host constraints. A cloud dashboard with accounts would pull the evidence away from the design. Unlimited synced audit history adds multiplayer weight and review noise. And a bounded scan of a design can't back up an automated compliance claim, so the widget never makes one.
Follow a finding back to the layer
Version 3.0.0 also adds canvas checks and native Dev Mode annotations, which the first version didn't have. Targets, Text, and Tokens run against the page or the current selection, and each keeps one current result per page. The card shows up to three representative examples, failures first, while the counts cover every affected use in the scan.
Targets: fails below 24px per WCAG 2.5.8, warns below 44px, with a 2000-node traversal budget
Text: per-segment font size, line height, justification, line length, and all-caps checks
Tokens: local variable collections across modes, alias chains resolved to depth 10, alpha-composited ratios
Jump on each finding selects and zooms to the offending layer
Severity always has a glyph and never relies on color alone
In Watch mode, contrast inspection re-checks whatever layer is selected. A keep-alive bridge picks up selection changes, and shared ownership with last-writer-wins takeover shows the team who's driving.
Thresholds evaluated at full precision before rounding for display
A failing pair keeps the measured colors in the specimen while a separate line states the verdict
Color vision preview for protanopia, deuteranopia, and tritanopia, labeled as simulation
WCAG contrast stays the normative result, and the preview never issues a second grade
Pattern, shader, and video fills get an explicit notice so they don't fail silently
What the Geist file exposed
Early token pairing matched on names containing "text" and "bg". Testing
against Vercel's Geist file showed where that fell short. Ramp-named
systems use gray/100 through gray/1000, so the
audit was only checking about twelve pairs. Now it infers role from the
trailing numeric step. High steps read as ink and pair against low steps
and explicit surfaces in the same family, and the pair cap went up to 800.
State has to survive the widget runtime
The widget runtime clears module memory between interactions, so Watch ownership has to live somewhere that survives the reset. A couple of other runtime quirks needed workarounds too.
Watch ownership uses the durable
sessionIdExport and clipboard access run through a hidden iframe bridge, since the widget sandbox has neither
Empty spacer AutoLayouts default to 100px tall, so an explicit
height=0keeps them from inflating badge and chip rows
A review record the team can hand off
Native Dev Mode annotations keep findings attached to the affected layers, and Canvas Record gathers review progress and evidence in one Figma frame. Both have to hold up when someone runs the review again.
Annotate writes Dev Mode annotations for the examples shown and says how many findings it left out
Read-modify-write preserves existing annotations and stays idempotent on re-run
Annotations link the relevant WCAG Understanding page and cite the properties that failed
Canvas Record compiles progress, sign-offs, audit summaries, and priority findings into one Figma frame per page
Re-running Record refreshes the same widget-owned frame and doesn't create duplicates
The record reads Action required, Review required, In progress, or Ready for handoff, and a partial or selection-only scan can't reach Ready
The record keeps one canonical palette, whatever theme each reviewer's widget uses
Exports come in six formats: Markdown, CSV, JSON, SVG, PDF, and plain text for the clipboard, all built from the same page data as the Canvas Record. The Markdown, CSV, and JSON reports carry run owner and time, scope, full counts, grouped evidence, and a note whenever the rows are only a representative sample.
Today the widget has 450+ users on Figma Community and runs in twenty locales.
Design-system checks and translation
Design system checks
The lint scripts check the widget's own token architecture, AA contrast, theme drift, and bundle size.
Variable architecture and design-system conformance checks
Automated AA contrast verification across the token set with shade-step suggestions
Theme baseline snapshots that fail on unreviewed drift
Bundle size budgets, kept under ceiling by minifying syntax while preserving identifiers
Checkboxes meet WCAG 1.4.11 non-text contrast, severity uses glyphs alongside color, and WCAG references render in both themes.
Translation
Twenty locales come out of a pipeline that shields WCAG codes and inline markup from machine translation. Missing keys fall back to English one key at a time. A newly shipped command shows in English while its translations are reviewed, so nobody sees a blank menu item.
One contract, every output
The widget, the product site's demo, the Canvas Record, the exports, and the release checks all read the same typed accessibility state from one contracts package. Each one renders that state natively. Figma and React keep their own renderers and share only the rules, because the Widget API and the DOM have different primitives.
Nine edge cases drive all of it, from a blank selection and a 1.20:1 contrast failure to a partial 2,000-node scan, a stale sign-off, and a page that's ready for handoff. Each scenario validates when its module loads and again in Vitest, and the product site's release gate adds:
30 responsive page cases across five widths, from 390 to 1440px, in light, dark, and reduced-motion modes
A title, description, canonical URL, and Open Graph image checked on each of the 7 prerendered routes
Gzip budgets for initial JavaScript, product interaction code, and CSS
A separate manual check for Figma host behavior, since a browser test can't stand in for the real sandbox, multiplayer, and bridge
I built the new TanStack Start site alongside the static v3 site and kept v3 as the rollback until the new one matched it.
Project notes
450+
Users on Figma Community
20 locales
Checklist and interface translated through a term-protected pipeline
v3.0.0
Audit platform, native annotations, and evidence-bound sign-off