Contrast requirements
- Text must reach at least 4.5:1.WCAG 1.4.3
- Large text and interface parts must reach at least 3:1.WCAG 1.4.3, 1.4.11
I used Claude Code, connected to Figma through the Figma MCP, to audit the Login screen components and the type scale of the Mamut design system. Each fix is recorded visually in Figma: what changed, which WCAG guideline it answers, and how it looked before and after.
Mamut is an app for family caregivers of children and teens with autism. I was designing its system in Figma: prototypes, components and guidelines based on Material 3. I wanted accessibility considered from the first component, not added at the end.
The trade off was documentation. It was spread across docs, Figma, comments from an accessibility expert who advised me at this stage, Claude chats and the WCAG site. It went out of date every time a screen changed. I could keep it by hand, or find a way to centralize it automatically. I chose the second.
I wrote down which contrast an interface has to reach, and which WCAG guideline each rule comes from.
A skill turns those rules into a repeatable audit. Claude runs it on the screen and measures every pair of colors.
Checks the contrast of every text, icon and border against the background behind it, then proposes solid fixes that it has verified.
This is what the audit returned for the Login screen. Each card shows the rule, the numbers and the change, zoomed in so even a small one is easy to see.
The audit also covered the type scale. The main finding was body text that was too small, so I moved it from 12px to 16px at a line height of 1.5. I did not edit the design system by hand: Claude opened the file, made the change and re-versioned the type scale table.
Rutinas claras para navegar el día juntas. Cada paso tiene su momento y su espacio, para que nadie tenga que adivinar qué sigue.
Rutinas claras para navegar el día juntas. Cada paso tiene su momento y su espacio, para que nadie tenga que adivinar qué sigue.
Writing documentation, checking accessibility and keeping the system current used to be three jobs. Now they happen together: write the requirement, let the skill check it, and let the change log update in the same step.
It is slower at the start, because I had to write the requirements down. What you get back is documentation that was still true the following week.
typography/{role}/{size} · body 16px or more · running text line height 1.5 or more · M3 letter spacing on small sizes
| Preview | Token | Size / LH | Weight | LS | Change in v1.1 |
|---|---|---|---|---|---|
| display/large | 57 / 64 1.12 | Medium | -0.25 | — | |
| display/medium | 45 / 52 1.16 | Medium | 0 | — | |
| display/small | 36 / 44 1.22 | Medium | 0 | — | |
| headline/large | 32 / 40 1.25 | SemiBold | 0 | — | |
| headline/medium | 28 / 36 1.29 | SemiBold | 0 | — | |
| headline/small | 24 / 32 1.33 | SemiBold | 0 | — | |
| title/large | 22 / 30 1.36 | Medium | 0 | Line height 28 to 30 | |
| title/medium | 16 / 24 1.50 | Medium | +0.15 | Tracking +0.15 | |
| title/small | 14 / 21 1.50 | Medium | +0.1 | Line height 20 to 21 | |
| body/large | 16 / 24 1.50 | Regular | +0.15 | Size 12 to 16, line height 18 to 24 Key fix | |
| body/medium | 14 / 21 1.50 | Regular | +0.25 | Line height 20 to 21, tracking +0.25 | |
| body/small | 12 / 18 1.50 | Regular | +0.4 | Line height 16 to 18, tracking +0.4 | |
| label/large | 14 / 20 1.43 | Medium | +0.1 | Renamed from body/small, weight to Medium | |
| label/medium | 13 / 18 1.38 | Medium | +0.5 | Size 14 to 13, weight to Medium, tracking +0.5 | |
| label/small | 12 / 16 1.33 | Medium | +0.5 | Size 14 to 12, weight to Medium, tracking +0.5 |
Writing the requirements first is what made the audit possible. It was slower at the start, but it turned three separate jobs into one step, and the documentation stayed true after the screens changed. I also check with Stark, a plugin made for accessibility, so the Claude skill is one check among several.
I already had results from testing the low fidelity version with people, but this audit measured contrast and text size on only two areas: the Login screen and the type scale. A passing ratio does not tell me whether a screen is easy to use, so I would test the high fidelity version too.
I would extend the same rules to the rest of the components, run the check as each one is made, and keep testing with the caregivers who use the app.