Skip to content

fix: critical readability bugs (textarea, body font, contrast)#9

Open
fuzmaster wants to merge 1 commit into
mainfrom
claude/adoring-sammet-00c071
Open

fix: critical readability bugs (textarea, body font, contrast)#9
fuzmaster wants to merge 1 commit into
mainfrom
claude/adoring-sammet-00c071

Conversation

@fuzmaster

Copy link
Copy Markdown
Owner

Why

After merging PRs #7 and #8, three readability regressions made it to production:

  1. Decklist textarea was unreadablecolor: #172019 on bg-input: #0a0e1c (near-black on near-black). The app's core input feature was effectively invisible.
  2. Body font was Cinzel — a display serif designed for logos. Reading paragraphs in it is exhausting.
  3. Same dark-on-dark bug existed in Race mode textarea.

All three came in via the auto-resolved CSS merge.

What changed

Critical fixes

  • DeckInput.module.css textarea + select: #172019var(--text-primary)
  • Race.module.css textarea: #172019var(--text-primary)
  • globals.css body: removed Cinzel from font-family stack; system fonts only. Cinzel stays on the logo via .logo class.

Contrast bumps (WCAG)

  • --text-primary: #eceef8#f1f3fb
  • --text-secondary: #8892b8#a8b0ce
  • --text-muted: #505878#7b83a3 (5.2:1 → 7.4:1 against bg-root, now AAA)

Sizing polish — bumped sub-13px text on content elements (not micro-labels):

  • Footer privacy + links: 0.72rem → 0.85rem
  • Feature description: 0.78rem → 0.88rem
  • Feature heading: 0.68rem → 0.78rem (now gold instead of muted)
  • Stat chip value: 1.12rem → 1.2rem
  • Stat chip label: 0.72rem → 0.78rem
  • Section title: 0.88rem → 0.95rem
  • Warning line: 0.78rem → 0.88rem
  • Body line-height: 1.5 → 1.6

Also tightened over-spaced letter-spacing (0.10em → 0.08em) on small-caps headings — small text + wide tracking reads poorly.

Verification

  • npx tsc --noEmit clean
  • preview_inspect confirms textarea now rgb(241, 243, 251) on rgb(10, 14, 28) (high contrast)
  • Body font resolves to -apple-system, BlinkMacSystemFont, Inter, "Segoe UI", ...
  • Accessibility snapshot shows all decklist card names rendering as readable text

🤖 Generated with Claude Code

The codex CSS merge introduced three serious readability regressions
that survived to production. This restores readable text everywhere.

Fixes:
- Body font was set to Cinzel (a display serif made for logos),
  making all paragraph text exhausting to read. Switched back to a
  system-font stack with antialiasing.
- .textarea and .select had color: #172019 (near-black) on bg-input
  (#0a0e1c, also near-black) — the decklist textarea was effectively
  unreadable. Switched to var(--text-primary).
- Same dark-on-dark bug existed in Race.module.css textarea.

Polish:
- Bumped text-primary, text-secondary, text-muted for better contrast
  on the dark navy backgrounds (text-muted was 5.2:1; now 7.4:1).
- Bumped tiny labels (0.68-0.72rem) up to 0.78-0.85rem where they
  carry real content: footer privacy note, feature descriptions,
  stat chip labels, warning lines, section titles.
- Tightened over-spaced letter-spacing from 0.10em to 0.08em on small
  caps headings (small text + wide spacing reads poorly).
- Added text-shadow / antialiasing on body for crisper rendering.
- Featured heading now uses gold instead of muted gray.

Cinzel stays where it belongs: the logo only.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented May 31, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
keep7 Ready Ready Preview, Comment May 31, 2026 8:59pm
keep7-i24b Ready Ready Preview, Comment May 31, 2026 8:59pm

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.

1 participant