Skip to content

Light mode: darken secondary/metadata text for AA contrast#10

Merged
btravers merged 2 commits into
mainfrom
fix/light-text-contrast
Jun 28, 2026
Merged

Light mode: darken secondary/metadata text for AA contrast#10
btravers merged 2 commits into
mainfrom
fix/light-text-contrast

Conversation

@btravers

Copy link
Copy Markdown
Contributor

From the light-mode review: the page read as washed out because the secondary/tertiary text greys were too light.

Measured (on the #FBF7F9 page)

token before after
--faint (metadata, stars, hero pills, footer) #9789963.1:1 ❌ #7666785.0:1 ✅
--muted (secondary body) #6A5965 — 6.1:1 #5E5159 — 7.1:1 (more presence)

--text (17:1), --text-green (6.4:1) and --text-accent (4.6:1) already passed; the wordmark stays the brand-pink --display-accent (large text). Hierarchy text › muted › faint is preserved.

These are @btravstack/theme tokens, so the docs sites' light body/metadata text (--vp-c-text-2/-3) gets the same lift once the theme publishes.

Verified live-build: pills 7.1:1, stars/footer 5.0:1; build green, no overflow/errors.

The light --muted/--faint greys were washed out: --faint #978996 was only
3.1:1 on white (failed WCAG-AA), used for metadata, star counts, the hero
pills and the footer. Darken:
- --muted #6A5965 -> #5E5159 (~7.1:1) for more presence
- --faint #978996 -> #766678 (~5.0:1, was 3.1 — now passes AA)

Both live on @btravstack/theme, so the docs sites' light secondary text
(--vp-c-text-2/-3) gets the same lift. Verified: pills 7.1:1, stars/footer
5.0:1; build green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 28, 2026 15:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates light-mode text tokens in @btravstack/theme to increase contrast and improve perceived hierarchy (text → muted → faint) without changing primary text or fill accents.

Changes:

  • Darkens --muted and --faint in the light scheme to meet/beat WCAG AA contrast targets.
  • Adds/updates inline contrast documentation for the adjusted tokens.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/theme/src/tokens.css Outdated
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@btravers btravers merged commit 148d859 into main Jun 28, 2026
@btravers btravers deleted the fix/light-text-contrast branch June 28, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants