Repository navigation
fix(web): lift the Lighthouse accessibility score to 100 - #515
Conversation
Small text on the marketing pages sat below WCAG AA contrast and the quickstart tabs mixed foreign children into the tablist. The muted greys move a step toward the surface, text on the accent gets a deep cut for light surfaces and a light cut for dark ones (both derived from the accent so the theme swatches still recolor them), the demo callout and "built" badge use readable colors, the demo document's headings follow the hero's h1, and the copy button leaves the tablist while each panel gets a proper tabpanel wrapper. Lighthouse accessibility: 86 -> 100 on /, /features and /plugins.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
There was a problem hiding this comment.
✅ No new issues found.
Mode: standard. Verdict: READY. No DRY, refactor or bug findings.
Reviewed changes
I reviewed the palette token changes, the TechnicalLabel tone split, the call-site swaps and the Quickstart tab and heading fixes on the private pages/ site.
- Contrast tokens:
--color-accent-inkand--color-dark-accentarecolor-mix()cuts of--color-accent, and the muted greys are adjusted. I recomputed the ratios for the default accent and every small-text pairing clears 4.5:1 (accent-ink 5.51 on paper and 6.11 under white, dark-accent 6.14 ondark-cardand 4.76 on the lit search row, dark-muted 4.71 on the lit row). - Swatch compatibility:
DevFeatures.astroandSite.astroset--color-accentondocument.documentElement, which is the same element that carries the@themevariables, so the derived tokens still follow the theme swatches. TechnicalLabeltone remap:accentnow resolves totext-accent-ink. The remainingtone="accent"callers (PageIntro,RuntimeStrip,OpenSource,PluginFlow) all sit on light surfaces. The dark ones (SectionIntrowithtone="dark"and the highlightedFeatureGridcard) moved todark-accent.- Quickstart ARIA: the copy button moved out of
role="tablist", and each panel is now a<div role="tabpanel">witharia-labelledby/aria-controlspairs. The tab script still selects panels by[data-panel], so switching tabs and copying both keep working. - Playground headings and callout: the demo document now uses
h2/h3after the heroh1. The demo source only uses theinfocallout, so mixing the body toward--color-inkaffects only the variant that is actually shown.
ℹ️ Non-default theme presets still fall below AA
The fixed 30% black and 25% white mixes are tuned for the default blue. With the persisted freshlime preset, accent-ink is 3.79:1 on paper and 4.2:1 behind the primary button's white text. With coffee, dark-accent is 3.62:1 on the lit search row. These are better than before the PR and don't affect Lighthouse, which uses the default accent, so nothing here blocks merging. It's a design choice whether the swatch demo should guarantee AA too.
A small accuracy note: the global.css comment gives 6.5:1 for dark-accent on dark-card. My calculation gives about 6.1:1.
claude-opus-5-5 | 𝕏
The accent text cuts were tuned for the default blue only: the freshlime preset left accent-ink at 3.8:1 on paper and coffee left dark-accent at 3.6:1 on the lit search row. Mixing 45% black into accent-ink and 40% white into dark-accent keeps every preset at or above 4.5:1 on each surface the tokens are used on, and the comments now carry the measured ratios (the dark-card figure was 6.1:1, not 6.5:1).
|
Follow-up in 309d060: the accent text mixes now clear 4.5:1 under all three theme presets (accent-ink 55% accent / 45% black, dark-accent 60% accent / 40% white), and the comment in |
There was a problem hiding this comment.
✅ No new issues found.
Mode: standard. Verdict: READY. No DRY, refactor or bug findings.
Reviewed changes
Since the last review, the derived accent cuts in global.css were retuned so they pass AA under every theme preset, not just the default blue. This closes the informational note from the previous review.
accent-inkdeepened: now 55% accent mixed with black (was 70%). I recomputed the contrast. The worst case isfreshlimeat 5.59:1 on paper and 6.20:1 under the primary button's white text. The default blue is 7.65:1 and 8.49:1. These match the new comment.dark-accentlightened: now 60% accent mixed with white (was 75%). The worst case iscoffeeat 4.72:1 on the lit search row (#353b2f) and 6.10:1 ondark-card. The default blue is 5.76:1 and 7.43:1. These also match the comment, and the earlier "6.5:1" mismatch is gone.- Knock-on to the playground callout: the darker
accent-inkalso darkens the 16% tint behind it. The title still clears 4.89:1 on the tint withfreshlime, and the body clears 6.30:1.
claude-opus-5-5 | 𝕏

Summary
PageSpeed scored the home page 86 on accessibility (report). This brings
/,/featuresand/pluginsto 100 (desktop and mobile, Lighthouse 12 locally with the PageSpeed desktop preset).Findings and fixes
muteddarkens to#64655danddark-mutedlightens to#a0a89a. The accent#348feastays the brand color for icons, rules and decoration, but small text and the primary button now use two derived cuts:accent-ink(accent mixed 30% toward black, for light surfaces and the primary button) anddark-accent(accent mixed 25% toward white, for text on dark cards and the lit search row). Both arecolor-mix()off--color-accent, so the theme swatches on the home page still recolor them.dark-accenttone, used by the darkSectionIntroand the highlighted feature card;accentnow maps toaccent-ink.accent-ink, callout body mixed towardinkinstead of transparent, "✓ built" in a newok-inkgreen.h2and sections ash3, following the heroh1.role="tablist", and each panel is a<div role="tabpanel">withid/aria-controls/aria-labelledbywrapping the<ol>.<mark>highlight) usesdark-accent; "DocuBook" in the OG card and the active navbar link useaccent-ink.Verification
/desktop/mobile/features/pluginsastro sync && tsc --noEmit, oxlint, prettier andpnpm testinpages/pass. Visually the primary button is a slightly deeper blue; nothing else is noticeable.