Skip to content

docs(sandbox): add neutral theme contrast audit - #5649

Draft
rubyycheung wants to merge 12 commits into
codex/neutral-theme-component-contrastfrom
codex/neutral-theme-sandbox-audit
Draft

docs(sandbox): add neutral theme contrast audit#5649
rubyycheung wants to merge 12 commits into
codex/neutral-theme-component-contrastfrom
codex/neutral-theme-sandbox-audit

Conversation

@rubyycheung

@rubyycheung rubyycheung commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Render the exact light/dark palette stored on the built neutralTheme.
  • Label whether the page shows the built theme or pending preview overrides.
  • Present palette values as explicit family + mode + tone labels instead of unexplained T50 shorthand.
  • Group component previews and contrast results by component family.
  • Document WCAG requirements and decorative exceptions.

Source of truth

The page no longer generates a parallel palette. It reads neutralTheme.palettes, so the tonal strips, audit mappings, and shipped theme metadata use the same approved values.

The provenance label says Built neutral theme · no pending overrides when no experiment is applied. Otherwise it reports the pending override count. Hover labels spell out entries such as “Blue, light-mode tone 45” while retaining the numeric API key shown by the palette.

Scope

This PR is sandbox-only beyond inherited stack changes. Palette mappings are in #5628; component-specific contrast treatments are in #5690; ProgressBar structure is in #5645; status-role mappings are in #5667.

Stack

#5627#5668#5628#5690 → this PR → #5667

Verification

Sandbox TypeScript, focused ESLint, formatting, repository checks, and inherited palette/contrast tests pass.

@rubyycheung

@vercel

vercel Bot commented Aug 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
astryx Ready Ready Preview Aug 30, 2026 9:07am

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Aug 28, 2026
@rubyycheung
rubyycheung force-pushed the codex/neutral-theme-palette-contrast branch from 0b5e442 to c2bed61 Compare August 30, 2026 07:02
@rubyycheung
rubyycheung force-pushed the codex/neutral-theme-sandbox-audit branch from a43efc8 to 9647abc Compare August 30, 2026 07:06
@rubyycheung
rubyycheung force-pushed the codex/neutral-theme-sandbox-audit branch from 9647abc to 58e0553 Compare August 30, 2026 07:37
@rubyycheung
rubyycheung force-pushed the codex/neutral-theme-sandbox-audit branch from 58e0553 to a9133a4 Compare August 30, 2026 07:46
@rubyycheung
rubyycheung force-pushed the codex/neutral-theme-sandbox-audit branch from a9133a4 to 29cb496 Compare August 30, 2026 07:50
@rubyycheung
rubyycheung force-pushed the codex/neutral-theme-sandbox-audit branch from 29cb496 to bb2383e Compare August 30, 2026 08:09
@rubyycheung
rubyycheung force-pushed the codex/neutral-theme-sandbox-audit branch from bb2383e to 7177925 Compare August 30, 2026 08:17
@rubyycheung
rubyycheung changed the base branch from codex/neutral-theme-palette-contrast to codex/neutral-theme-component-contrast August 30, 2026 08:17
@rubyycheung
rubyycheung force-pushed the codex/neutral-theme-sandbox-audit branch from f0b506b to 2fc6cd8 Compare August 30, 2026 09:03
@github-actions
github-actions Bot deleted the branch codex/neutral-theme-component-contrast September 1, 2026 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant