Repository navigation
fix(components): text and button colour pairings fail the 4.5:1 AA bar - #199
Conversation
`--surface-fg-muted` drew body and nav text at gray-700, 4.23:1 on white, and `--surface-primary` drew every link at teal-600, 3.85:1. Both sat under WCAG 2.1 SC 1.4.3's 4.5:1 for normal-size text. `--surface-on-highlight` measured 3.04:1 on the outline button's teal-100 hover fill. `--surface-primary-strong` moves with its base so a link's hover stays darker than the link. The ring keeps teal-600: it is a UI component at the 3:1 bar, which it clears on its white band, and `focus-ring`'s own assertion covers it. Refs #179 Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FdTttE2idTBaSPQCntKgak
…g step Nine pairings the components drew for normal-size text sat under WCAG 2.1 SC 1.4.3's 4.5:1, and a line-by-line scan of the tree found seven more the ticket's table had not listed: - `Button`'s filled variants — white on `teal-500` 2.70:1 and `coral-500` 2.53:1 — move to `teal-700` and `coral-600`, each with its hover and active steps, so a hover still darkens. The `neutral` label moves with the greys. - `Avatar`'s initials and `Playlist`'s current-track row paint the same brand fills by hand, and move with them. `Playlist`'s secondary label needs `teal-50` to clear `teal-700`; `teal-100` reaches only 3.95:1. - `SocialIcon`'s `secondary` drew `coral-500` at 2.53:1, under even the 3:1 an icon owes, and takes `coral-600` to match `--surface-secondary`. - `MeditationPlayer`'s volume sublabel drew `gray-400` at 1.71:1. - Every raw `text-gray-500`, `-600` and `-700` becomes `text-gray-800`: it is the one muted step that clears the bar, so the three collapse into it. Where that flattened a hover, the hover takes the next step down. - `text-error` becomes `text-error-dark`. `--color-error` sits on no scale, and `error-dark` is the only declared value that passes. `bg-error-light` names an undeclared token, so it compiled to nothing and both panels already rendered on white, where `text-error-dark` reaches 10.01:1. Dropping the class is what they render today; declaring the token would invent a palette value, which decision 1 rules out. The story wrappers move to a `900` ground. `teal-300`, what the dark surface draws `text-primary` as, reaches 4.5:1 on `teal-900` (5.71) and on nothing lighter — `gray-800` measures 2.95. A `surface-dark` section with no ground drew white text on the page's white background, so it paints one now too. Two guards cover what the surface specs cannot: the fill-and-label pair of `Button`'s variant maps, and every grey a component names for text. Refs #179 Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FdTttE2idTBaSPQCntKgak
…'s limit The role table records a contrast clearance again rather than only what the components do: each row carries its ratio on white, and the three greys and `--color-error` it dropped are named with what they still serve. The Surfaces table follows the four `surface-light` tokens that moved, and the dark side gets the measurement #179 asked for. `teal-300` and `coral-300` clear 4.5:1 only on a `900` step, and both fall short of it on the one dark surface that can be measured — `OrnateTextBox`'s gradient, read at its lightest stop. No product component draws either token, so the steps stay and the story wrappers moved. `.claude/skills/design-extraction/SKILL.md` names `text-gray-600` and `bg-teal-500` as the colours to extract to. It is a protected path, so an unattended run cannot touch it. Refs #179 Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FdTttE2idTBaSPQCntKgak
…ranch The guard globbed and re-read every component file once per check. One scan serves both. `StorySection`'s scrollable variant chose a dark gradient when no background was set. A dark surface always paints a ground now, so only the light fallback is reachable. Refs #179 Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FdTttE2idTBaSPQCntKgak
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
wemeditate-web | eae667c | Commit Preview URL Branch Preview URL |
Nov 18 2026, 07:57 PM |
sydevs-bot
left a comment
There was a problem hiding this comment.
1 question for the reviewer, one per thread.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
|
🤖 no session running recent dispatchesWritten by the sydevs dispatcher. Sessions never edit this comment. |
sydevs-bot
left a comment
There was a problem hiding this comment.
🧐 Adversarial review
Clean on shape. The diff is #179's own approach: the 36 palette values untouched, each role moved to the step the ticket's table names, and the 91 files are the mechanical substitution part 3 asked for. Nothing is smuggled in — the new guard answers seven pairings the ticket missed, and the StorySection ground is part 6's "fix the story wrappers". No contract surface is touched.
The soft spot is the guard's EXEMPT map. Nothing measures a reason in it, so a real failure hides there — and one of its three entries is wrong today.
Findings
should-fix—components/ladle/StorySection.tsx:67: the dark subsection-title branch is dead, and would paintgray-100on the white page (1.10:1) if reached.should-fix—tests/guards/text-contrast.test.ts:39: thatEXEMPTreason names a ground the markup does not paint, so the body's "three pairings WCAG itself exempts" is two.consider—DESIGN_SYSTEM.md:373:aria-hiddenis not a 1.4.3 exemption; pure decoration is.consider—MeditationPlayer.tsx:167: the sublabel grey now equals its parent's.
What was checked
- Every ratio in the body and both docs tables re-derived from
tailwind.css: all 30 match, the thingray-800onteal-1004.53 included. - #179's five acceptance criteria, each met.
grepfortext-gray-{500,600,700},text-teal-600anderror-lightreturns nothing. - All three
EXEMPTentries against their markup:Logorenders onlyLogoSvg✓;TechniqueCardisaria-hidden✓, with the caveat above;StorySection✗. - The guard's one-line reach:
Playlist'stext-teal-50sits 20 lines below itsbg-teal-700, so neither spec measures it. - Preview
/meditate-now200: servesteal-700andgray-800, nobg-teal-500. Ladle 200, but client-rendered.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
The title and the description render in the wrapper div, outside the ground `renderContent()` paints, so both sit on the white page whatever the surface is. The `surface === 'dark'` arm would have painted `gray-100` there, 1.10:1, and no story reaches it: nothing pairs `variant="subsection"` with `surface="dark"`. STORYBOOK.md already states the rule this restores. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjXetornRgieYowcerk
The `StorySection` entry named a ground the markup does not paint: that grey drew the subsection title, which renders outside `renderContent()` on the white page. The branch is gone, so the entry goes with it. `aria-hidden` is not an SC 1.4.3 exemption either — hiding informative text from a reader does not make it decorative. The remaining reason names what does exempt `TechniqueCard`'s numeral: the cards' own order already conveys the sequence, so the numeral carries no information. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjXetornRgieYowcerk
SC 1.4.3 exempts pure decoration. Marking informative text `aria-hidden` hides it from a reader without making it decorative, so the old wording would have exempted a real failure. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjXetornRgieYowcerk
The span now names the same step as the `<p>` it sits in, so the class paints nothing of its own. `font-normal normal-case` is what distinguishes the hint. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjXetornRgieYowcerk
Deploying wemeditate-design with
|
| Latest commit: |
b48581b
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://57102293.wm-design.pages.dev |
| Branch Preview URL: | https://claude-fix-179-a11y-contrast.wm-design.pages.dev |
|
Four critic threads, all adopted. Base already current, so no merge.
The Lean gate green on 5888b7f: lint 0 errors, 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
|
@sydevs-bot Revise. These changes have taken most of our components too far from the brand colors. The Button is a good example of this. Can we relax the requirement and bring the colors back closer. Also, resolve the merge conflicts. |
sydevs-bot
left a comment
There was a problem hiding this comment.
🧐 Adversarial review
Second pass, on the revise. The brand drift is decision 1's cost, not a fault in the diff: with the 36 palette values frozen, "nearest passing step" is the only move, and the steps are coarse. Three roles overshoot by 1.0 to 5.5 ratio points. Coral does not. Nothing keeps 4.5:1 and today's colours, so relaxing the number leaves the AA bar AGENTS.md sets. Two options keep the brand close at AA.
Retune four values, reversing decision 1. Holding hue and saturation, the lightest value reaching 4.50:1 is teal #458179 (the diff ships 5.50:1), grey #777777 (6.31:1), error #c74f4f (10.01:1). coral-600 already sits one lightness point off its own minimum.
Or invert the button label, keeping both fills untouched: bg-teal-500 text-teal-900 4.51:1, bg-coral-500 text-coral-900 4.78:1, hover lightening to -400 at 5.08 / 6.21. teal-500 is 2.70:1 on the page, so the button then needs a border for SC 1.4.11.
Findings
blocker—Button.tsx:153: teal gives back five lightness points free. Coral cannot move and stay AA.should-fix—tailwind.css:215: the link token overshoots as far; one tuned value serves it and the fill.should-fix—tailwind.css:214: body grey needed one lightness point, not nine.should-fix—FormField.tsx:89:error-darkis a S100% maroon at 10.01:1 where#c74f4freaches the bar.
What was checked
- Every ratio recomputed from
tailwind.css's 36 values, each minimum bisected on HSL lightness with hue and saturation held. - #179's decision 1 and its move-to table against the diff: every step matches.
Button.tsx:186-189— labels aretext-sm/text-base, so no large-text 3:1 relief.SocialIcon'scoral-500→coral-600is forced even at the 3:1 icon bar.git merge-tree origin/main: three conflicts. Not a critic's to touch.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
…ontrast Six conflicts, from #257 (the Link atom becomes the scheme gate), #201 (the carousel dots take their own line) and #201's own preview-discovery fix. SocialIcon.tsx, AudioPlayer.tsx — main's side. Both raw `<a>` elements became `Link`, whose `variant="primary"` resolves to the retuned `teal-600`, so the colours this branch set on them are what the atom now paints. SocialIcon keeps this branch's `secondary: coral-600`, which sits outside the conflict. ColumnCarousel.tsx — main's side. `CarouselNavButton` became the `Button` atom at `variant="ghost"`, which draws `text-fg-muted`, the token this branch retunes to `gray-700`. The branch's `text-gray-600` → `text-gray-700` had no other effect here. Link.stories.tsx — main's structure, this branch's sweep. main rewrote the External Links section and added Refused Schemes; every `text-gray-500` and `text-gray-600` it brought with it moves to `text-gray-700`, the step the rest of the file already reads. Playlist.tsx — both sides. The credit keeps this branch's `text-teal-50` (4.92:1 on `teal-700`) and main's `transition-colors duration-200`. scripts/get-cloudflare-preview-url.mjs, docs/cloudflare-previews-ci.md — main's side, and this branch's `RETIRED_HOST_RE` goes with it. #201 fixed the same red check by narrowing `PREVIEW_URL_RE` to `workers.dev`, so no candidate can carry a `pages.dev` host and the branch's later filter can never fire. main also derives the Worker's branch host when no comment names one, which this branch's version does not. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjV73qfNDBaWPzRpeBE
|
Merged The one choice worth reading: this PR's own CI fix is dropped. #201 fixed the same red The rest resolve the only way they can. Gate on 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
…ontrast #254 collapsed the three M:SS formatters into lib/duration. This branch had retuned the colours around two of them, so both players conflicted. AudioPlayer and Playlist drop their local copies and read the shared formatter, which is main's whole point. The progress row keeps this branch's text-gray-700: main's side still read text-gray-600, at 2.71:1. Playlist's local copy had no !isFinite guard, so a non-finite track duration now reads 0:00 rather than Infinity:NaN — the behaviour main chose, and the one its Playlist.test.tsx pins. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjY2NtKzScDKCv7jxMW
|
Merged
Lean gate green on 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
…ontrast #207 gave `Image` and `ContentCard` a `sizes` prop and made it required on `ContentCard`, while this branch had sorted the same prop lists and recoloured the same stories. Four files conflicted, every one of them on that overlap, so both sides are kept in all four. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjXEpiA9teFyoetKjha
|
Merged
Lean gate green on the merge: 0 lint errors, 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
Two files conflicted, both against #199's contrast pass and main's reformat. Playlist.tsx keeps this branch's behaviour and main's colours: the duration still renders only when the track states one, now in text-teal-50 / text-gray-700; the row keeps aria-current and key={track.url}. AudioPlayer.stories.tsx takes main's structure with PlaylistPlayer in every slot, since AudioPlayer is presentational on this branch and needs the hook wiring. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjXN8zWk1jS1XF5NBW3
main reformatted the three files this branch rewrites (#199, #260): prettier collapsed each `stateStyles` map onto one line, added trailing commas, and perfectionist sorted the JSX props. This branch had replaced `forwardRef` with React 19's `ref` prop over the same lines, and added scoped eslint disables in `ColumnCarousel`. Every hunk keeps this branch's shape and main's formatting. No side was taken wholesale: `Input` and `Textarea` are plain functions taking `ref` as a prop, with main's one-line `stateStyles` and sorted props; `ColumnCarousel` keeps main's `scrollTo` wrapping and one-line signature, and the disable comments keep the two `key={index}` elements multi-line. Lean gate green on the merge: eslint 0 errors, tsc clean, 1124 tests passed. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjZ3NhbnJ5kzajYDrq5
…chosen place SahajCloud's Splash block has a `map-search` layout, and it hides title, subtitle and action URL for it, but the converter never read `layout`, so such a splash rendered an empty full-screen image. It now holds `MapSearch`: the Mapbox place search (`LocationSearch`, still ClientOnly and lazy) whose pick does a full load of the class map, searching around that place. The old /classes page opened with the same search. The URL is spelled once, in `lib/urls.ts` (`classMapSearchHref`), as the widget's query routing: `/map?atlas=` + the encoded `/search?center=<lng>,<lat>&q=<name>`, locale-prefixed through `localeHref`, gated by `isSafeNavigationUrl` before `window.location.assign`. The name is encoded once more inside the route, so a place carrying `&` or `#` stays one value; on the deployed preview "Paris & Île-de-France" pre-fills intact, and the Nearby option's "Current Location" label lists Paris classes by distance. `/map` asks the widget for path routing, which ignores a `?atlas=` starting with `/` once the client record names a canonical embed, so where it does the visitor lands on the map without the place. That limit is a `shortcut:` on the helper. The block's action text, the only text SahajCloud leaves visible for the layout, is the search's visible label (`LocationSearch` gains `label`, a real `<label for>`), not its placeholder: the placeholder's grey is held under 4.5:1 on the strength of a visible label beside every field (#199). A visitor without JavaScript gets a link to the class map in the same words, the no-JavaScript path components/AGENTS.md says an adopting page owes; `LocationSearch`'s barrel takes that `fallback` and keeps it up while the lazy chunk loads. With no action text there is no link, because no translation names one. The title, subtitle and action URL a block keeps from before a switch to map-search are not drawn. `splashTitle` says which title a splash draws, so `getLeadSplash` agrees and `PageTemplate` still supplies the page's `<h1>`. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjZcE8bs5uRJ6dsg6kw
Summary
reaches the bar, so the brand stays as close as AA allows. Every role keeps the step it named.
StorySection surface="dark"drew white text on the page's white background — joined, same files.eslint --fix, Ardnived's option A: 1,037warnings to 24. chore(deps): move off the end-of-life eslint 9 line #251 then upgraded eslint on
main, whose new rules put 19 back. All 43 arenamed below with the reason each one stays.
gray-500, Ardnived's option B: a named exception to the barrather than a pairing that meets it, because darkening it makes an empty field read as filled
in. The guard's
EXEMPTmap andDESIGN_SYSTEM.mdboth say so in those words.teal-700, which theretune makes unnecessary. They are back at
main'steal-600.FormFieldcomputed anaria-describedbyand dropped it, so a field's description and errorreached no control. Joined: a swept file, the same AA bar, and the lint sweep is what found it.
Smoke (ladle)read the deleted Pages preview and went red. That fix is no longer here: fix(column-carousel): a dot's 44px hit area is stolen by its neighbour #201landed the same repair on
mainfirst, and the merge at24410d9takes its side.Change outline
Behaviour — three retuned values, not frozen ones
#179 decision 1 froze the palette, so each failing role jumped to the next declared step and
overshot by 1.0 to 5.5 ratio points. Ardnived asked for the brand back, so the three failing
values move instead, each to the lightest value of its own hue and saturation that clears 4.5:1
on white and on
gray-100, the tint the tree paints under text 35 times. That reopensdecision 1 as question 1 on #179.
The roles then keep the steps
mainalready names:coral-600#c54d2eis already one lightness point off its own minimum, so the secondary fillcannot come back any further and stay at AA.
Behaviour — the call sites that still move
Only the two greys with nowhere to go.
text-gray-700,text-teal-600andtext-errorareuntouched from
mainat every site. Seven of those teal sites lagged the retune, still readingthe frozen palette's
text-teal-700 hover:text-teal-800; they are back atmain's steps, whichteal-600#427b73now clears at 4.87:1.SubtleSystem.tsx:253already readteal-600, whichis what showed the revert had been partial.
Two pairings keep a deeper step because the fill beside them demands it:
Avatar'sneutrallabel on
bg-gray-200staysgray-800(5.29:1), andPlaylist's current track staysbg-teal-700, because itstext-teal-50credit reaches 4.92:1 there and only 4.35:1 onteal-600.Behaviour — pairings the ticket's table did not list
Each is a component painting a fill and a label itself, so no surface token resolves it.
Behaviour — the form field's description and error
FormFieldrenders<p id={id}-description>and<p id={id}-error role="alert">as siblings ofthe control, builds the
aria-describedbyvalue that would connect them, and never applies it.A screen reader read the label and neither. The error announced once on appearance and never on
refocus.
DESIGN_SYSTEM.md:377already required the attribute.The single-child reach is a named
shortcut:beside the code. Every call site today renders onecontrol; a field wrapping several needs a context instead.
Behaviour — the error panels
main(#200) replaced the deadbg-error-lightwithbg-error/10, which composites to about#faefef. The merge keeps that fill, and--color-erroris tuned to clear 4.5:1 on it ratherthan only on white, so
error-darkis gone from all 11 sites.Components — the dark story surfaces
teal-300, what the dark surface drawstext-primaryas, clears 4.5:1 on a900step and onnothing lighter:
teal-9005.71,teal-8003.82,gray-8002.95. So every dark story groundbecomes one. A gradient is governed by its lighter stop, so both of its stops are
900too.Files — what holds the bar from here
Base merge
origin/mainis merged in again at24410d9, 3 commits, six conflicts — #257, #201 and #253.SocialIcon.tsx,AudioPlayer.tsxandColumnCarousel.tsx— main's side. Each raw elementbecame an atom that already reads the token this branch retunes:
Linkatvariant="primary"and
Buttonatvariant="ghost", which drawstext-fg-muted.SocialIconkeeps this branch'ssecondary: coral-600, outside the conflict.Link.stories.tsx— main's structure, this branch's sweep. main rewrote External Links and addedRefused Schemes; every
text-gray-500andtext-gray-600those sections brought moves totext-gray-700.Playlist.tsx— both sides: this branch'stext-teal-50and main'stransition-colors duration-200.scripts/get-cloudflare-preview-url.mjsanddocs/cloudflare-previews-ci.md— main's side, andthis branch's
RETIRED_HOST_REgoes with it. #201 narrowedPREVIEW_URL_REtoworkers.dev, sono candidate can carry a
pages.devhost and the branch's later filter could never fire. mainalso derives the Worker's branch host when no comment names one.
Before it, at
43e1da9, 1 commit, no conflicts — #251's eslint upgrade.It re-dirties this PR's swept files with rules
--fixcannot resolve; see Test results.Before it, at
b5c3674, 2 commits, two conflicts.MeditationPlayer.tsx— main (#232) moved the upsell copy intot.richtranslation calls; thisbranch had only recoloured the paragraph that held the English strings. main's side stands, on
this branch's passing
text-gray-700.AtlasContent.tsx— main (#237) replaced the raw<a>with theLinkatom. main's side standswhole: its
text-teal-600 hover:text-teal-700passes under the retune, so the branch'steal-700/800is not carried over. That is one of the seven overshoot sites above.The earlier merge at
d2d2c97, 9 commits, had one conflict:components/atoms/Image/Image.stories.tsx. main restructured the States section intoStorySection variant="subsection"blocks and added a "Failed load" one; this branch had onlyrecoloured the raw
<p>that rewrite replaced. main's structure stands, and the recolour is notlost: the description renders through
StorySection, whosedescriptionColorthis branch retunesto the passing
text-gray-700. The branch's six other conversions in that file are untouched.And before it:
7af2449— 21 commits, no conflicts.fff3f01, from chore(design-system): narrow the scan set, widen the utility guard #200 —LocationSearch.tsx:286andNearbyOption.tsx:85kept main'sbg-error/10panel with this branch's passing text colour;layouts/tailwind.test.tskeptmain's
_source-scanhelpers and this branch's 4.5:1 assertion, dropping main's localcontrast()for the shared helper.b48581b, from fix(textbox): the ornate treatment ignores a right-image choice #198 —layouts/tailwind.test.tsagain: main named atokenclosure thisbranch had hoisted to module scope, so the branch's side stood.
Preview
Both branch aliases, read from the Cloudflare bot's comments. A branch alias always serves the
branch's newest build, so these render the retuned palette. The Ladle links are the place to judge
it. (They moved off
wm-design.pages.dev, the Pages project deleted in #221, which no longeranswers.)
Ladle — every variant side by side, which is where this change is easiest to judge:
teal-900gray-500The site, on live SahajCloud content:
Test results
.claude/skills/pr-prep/check.shon24410d9— lint (0 errors),tsc --noEmit,vitest run: 1,060 passed, 106 files.chore(deps): move off the end-of-life eslint 9 line #251's eslint upgrade merged. Repo-wide,
eslint .reports 1,106 warnings across 138 files,from 2,133 across 150. 0 errors throughout.
no-consolein stories and a CLI script, the bandeslint.config.jsdowngrades to
warnon purpose; 6perfectionist/sort-jsx-propswhere the prop carries acomment — one of them a
⚠line — so sorting orphans the comment from its prop; andFormField'sariaDescribedBy, which was the defect, not noise.--fixcannot resolve, so a re-sweep removes none of them: 11no-array-index-key, 2no-forward-ref, 2set-state-in-effect, 2no-clone-element, 1use-state, 1exhaustive-deps. They are new across the repo, not regressions in this diff,and each is a design change rather than a format one. One is this PR's own
cloneElementinFormField, the single-childshortcut:already named beside it. The 7th sort warning isperfectionist's stricter order on aVolumeRowprop pair that carries no comment.Avatar'sneutrallabel onbg-gray-200, which is why that one staysgray-800.securityReview.triggerPattern.scripts/get-cloudflare-preview-url.mjsmatched it on an earlier push; that review is stillowed at finalize.
Manual verification
Atoms / ButtonandAtoms / Linkin Ladle, light and dark. The teal is back withinfour lightness points of
teal-600; the coral fill cannot move and stay at AA.gray-700. OpenAbout meditation and confirm the hierarchy still reads from weight and size alone.
#c34040rather than#cc5e5e. SeeAtoms / Form / Input.gray-500, 2.33:1, inInputandTextarea. SeeAtoms / Form / Input: an empty field must still read as empty, not as filled in.message is now read as the field's description, not only as a one-off alert.
Notes for reviewer
teal-500/coral-500exactly and reaches4.5:1 with a white label. You kept the retune, so fix(components): text and button colour pairings fail the 4.5:1 AA bar #179's question 1 is now a decision there and
the
Button.tsxthread is resolved. The fills ship atteal-600#427b73(4.87:1) andcoral-600#c54d2e(4.69:1).text-gray-*call sites could become the surfacetokens (
text-fg-muted,text-primary) instead of scale steps, which is what the tokens existfor. Each site is a judgement about whether that text is body, muted or heading. Worth its own
ticket.
tests/guards/text-contrast.test.tsreaches one line. AclassNamerun is written on one,so a fill painted two elements up is invisible to it — which is why
Button's variant maps areparsed separately. Its
EXEMPTmap holds two pairings SC 1.4.3 exempts — theLogobrandmark, and
TechniqueCard's number badges, which are pure decoration — and now the placeholder,which it marks as a deviation rather than an exemption.
file can still be dirty where this PR never touched it:
FormField.stories.tsxcarries 126warnings beside the
FormField.tsxthis PR cleans. The remaining files are option B, and haveno ticket yet — say the word and I will file one. The 19 warnings chore(deps): move off the end-of-life eslint 9 line #251 introduced belong with
it: they land repo-wide, and chasing them on this diff alone would fix 19 of several hundred.
.claude/skills/design-extraction/SKILL.mdis now stale — it namestext-gray-600andbg-teal-500as the colours to extract to..claude/is a protected path, so an unattended runcannot write it. It needs an attended one-line edit.
Detail
Why
gray-100and not white alone. The critic measured each value against white, where theminima are
#767676,#458078and#c74f4f. But muted text sits besidehover:bg-gray-100on35 lines, and
#767676reaches only 4.20:1 there. Tuning againstgray-100costs two furtherlightness points and makes the value true wherever the tree actually paints it.
gray-200,gray-300andteal-200are sliders and anAvatarfill, not text grounds, bar the oneAvatarlabel that keepsgray-800.--surface-on-highlightis the row the retune cannot reach. Onbg-highlightteal-100the retuned
gray-700measures 3.50:1, so that token stays atgray-800(4.53:1).The dark surface, measured (acceptance criterion 5).
OrnateTextBox.tsx:102paintslinear-gradient(110deg,#8a6f56,#6b5340,#473729); at its lightest stopteal-300measures2.19:1 and
coral-3002.94:1.SplashandContentOverlaypaint a photograph, which cannot bemeasured. Neither component draws
text-primaryortext-secondary— both paint whitethroughout — so no shipping pairing fails. The dark steps therefore stay and the stories move,
as part 6 directed. Recorded in
DESIGN_SYSTEM.md's Surfaces section.The subsection title never followed the surface.
StorySectionrenders the title and thedescription in the wrapper div, outside the ground
renderContent()paints, which is whatSTORYBOOK.md states. Its
surface === 'dark'arm would have paintedgray-100on the white pageat 1.10:1, and nothing reached it: no story pairs
variant="subsection"withsurface="dark".Closes #179
🤖 Generated with Claude Code
https://claude.ai/code/session_01Mg9rjWb856u9XStZuzpX4X