Web & Digital

Flex Design System's creator had Claude check every text layer for contrast in Light and Dark mode through Figma MCP, then chose each fix by hand

Ben Ellis had Claude scan about 1,500 text layers per mode in his Figma library for WCAG AA contrast; he picked every new colour himself.

Done withClaudeFigma

Self-promotion: the author sells the Flex library he describes. Results are his own.


WHAT THEY DID

Ben Ellis, who has built the Flex Design System for Figma by hand since 2023, connected Claude to Figma through Figma MCP and asked it to check every text layer in every component against WCAG AA, in both Light and Dark mode. Claude first built a test sheet of every component in both modes; he added the button states it had left out.

STEP BY STEP

  1. Claude built a test sheet of every component in Light and Dark; he added missing button states by hand.
  2. Claude read every visible text layer through Figma MCP, resolved each background variable for the mode, calculated the WCAG ratio and grouped failures by token pair.
  3. He changed tokens in Figma by hand and asked for a rescan after each change, nine scans over two days.
  4. He made the judgement calls (inactive vs disabled, fixed colours for payment logos) and shipped the fixes in release 1.1.14.

HOW IT WENT

He reports that after nine scans over two days, all 1,509 text layers per mode pass, excluding disabled and unavailable states. One text token caused most of the Light failures. He chose every replacement colour himself, and a rescan caught a fix that had broken two buttons that passed earlier. The fixes shipped in release 1.1.14 on 27 October 2026.

Reported results: All 1,509 text layers per mode pass WCAG AA text contrast in both modes (excluding disabled and unavailable states); a rescan caught a fix that broke two buttons.

WORTH KNOWING

A dated, detailed account of using an AI agent as a reviewer for a token-based Figma library, with the failures it found, the ones it caused, and a clear split: Claude found and grouped the problems, and the designer made the calls.

TRY IT

  • Build one test sheet with every component and state in both modes, and check it is complete before you trust any scan.
  • Ask the agent to report each contrast failure by the token pair behind it, not only by component, so you know what to fix.
  • Rescan everything after each token change, and decide edge cases like inactive versus disabled states yourself.
Read the original ↗

Rates the entry, not the tool.

Source: Ben Ellis · Flex Design System blogOpen as a page

  • Work done: Oct 2026 (The fixes are in Flex release 1.1.14, dated 27 October 2026 in the article and the Flex changelog. The scans ran over two days before that release; the exact days aren't stated.)
  • Source published: Nov 19, 2026
  • On 4TC: added Nov 30, 2026 · checked Nov 30, 2026
About this source

Type: First-person workflow · Firsthand report · Demonstrated workflow

  1. Checking Figma Colour Contrast in Dark Mode with Claude
    Ben Ellis · Flex Design System blog · Published Nov 19, 2026 (Byline 'Published 19 Nov 2026', updated 25 Nov 2026.) · Checked Nov 30, 2026
    Primary: the designer's own first-person account on the blog of the design system he sells. Self-promotion (links to buy Flex); no sponsorship or affiliate tie to Anthropic or Figma stated.
    Access: open
  2. Checking Figma Colour Contrast in Dark Mode with Claude
    Ben Ellis · Design Systems Collective (Medium) · Published Nov 26, 2026 (Republished 26 Nov 2026; says 'Originally published on The Flex Design System Blog'.) · Checked Nov 30, 2026
    Same author's republication of s1, lightly expanded (adds 'nine times over two days' in the intro).
    Access: open
  3. Change Log
    Ben Ellis · Flex Design System docs · Publication date not stated (Changelog page; entries dated 1.1.14 '27 Oct, 2026' and 1.2.0 '29 Oct, 2026'.) · Checked Nov 30, 2026
    Product changelog by the same author, confirming the release and date of the fixes.
    Access: open

Source check: Researched from the public page; not yet re-checked by an editor. Nobody at 4TC has tested this.

Claims and where they come from

  • Ben Ellis has built Flex, a Figma design system with a Light and a Dark mode, by hand since 2023; every text colour switches between modes through Theme tokens. (reported) [1][2]
  • He connected Claude to Figma through Figma MCP and asked it to check every text layer in every component against WCAG AA, in both modes. He ran it in the Claude desktop app with Figma's remote MCP server, on Figma's Professional plan and Claude Pro. (reported) [1][2]
  • Claude built an 'All Components Theme Test' frame of about 470 instances. It had left out some button states, so he added them by hand (71 buttons per mode); the final sheet held 1,164 instances. (reported) [1]
  • The first scan covered about 1,090 text layers per mode. One token, font/colour/tertiary on bg/primary at 3.95:1, caused most of the Light failures. (reported) [1]
  • He chose the new values by hand, moving each token to the next shade in its colour ramp and checking it in Figma's colour picker; Claude found the failures and named the tokens behind them. (reported) [1]
  • A fix caused a new failure: Success and Info Solid Status Buttons passed in Focus at 21:10 and failed at 21:30, at 2.63:1 and 3.86:1, most likely because of a token he had changed in between. (reported) [1]
  • Claude flagged inactive progress-step labels that used the disabled text token at 3.95:1; he decided the disabled exemption didn't apply and moved them to a passing token. (reported) [1]
  • After nine scans over two days, all 1,509 text layers per mode meet WCAG AA in Light and Dark, excluding disabled and unavailable states; the fixes are in release 1.1.14 (27 October 2026). Each rescan took about a minute. (reported) [1][3]

4TC interpretation

Our reading, not something the source says.

In a token-based library, one token change can break text in the mode you aren't looking at. Checking by hand one layer at a time misses failures; a full rescan after every change catches fixes that break something else.

Designer impact

Alleged [1]

An AI contrast scan can only check what is on the canvas: the agent-built test sheet left out button states, and the scan skipped text over images and gradients and didn't check non-text contrast.

  • Check the test sheet is complete before trusting the result.
  • Treat text contrast as one WCAG criterion, not a full accessibility audit.

Established = documented by primary sources or the company’s own statements. Disputed = contested with evidence on both sides. Alleged = reported, not established.

Votes rate whether this entry was useful. They are not an endorsement of the tool, and don’t mean voters agree with the company’s practices.

Report an issue or correction

Share your own experience

4TC does not endorse a tool unless an explicit 4TC endorsement is shown.

Get the best of these weekly

The weekly design brief, starting soon: the most useful workflows, tool updates and developments, with sources. Sign up now and the first issue will come to you.