Add a light theme

Aperta
#266 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
css, nextjs, react, typescript

Direzione di ricerca

Start in src/app/globals.css and list the tokens of the single dark palette; the prefers-reduced-motion rule around line 415 is the pattern to copy for a prefers-color-scheme block. Then grep for hard-coded colors, first at src/lib/public-metrics/card-image.tsx:20-29. Done means both themes pass axe on every screen, no hard-coded dark color remains, and each token pair's 4.5:1 contrast is recorded; the manual-switch question in the issue is still undecided, so confirm it before building one.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

accessibility area: web blocked enhancement impact: low priority: P3 size: M

Summary

DevMacro has only a dark theme, so people who set their system to light mode, or who read better on a light background, get the dark palette everywhere. The app should offer a light palette that follows the system setting, with every token pair readable at 4.5 to 1 for body text.

Found in the UX review of integration/demo-2026-11 (pull request #205) at ce44e95, on the seeded demo workspace with simulated data.

Evidence

  • src/app/globals.css defines one dark palette and has no prefers-color-scheme rule. The only media query on a user preference is prefers-reduced-motion at src/app/globals.css:415.
  • The share cards hard-code the same dark colors (src/lib/public-metrics/card-image.tsx:20-29).

The dashboard in its only theme, dark

Scope

  • A light palette that follows the system setting, with every token pair at 4.5 to 1 for body text.

Acceptance criteria

  • Light and dark both pass axe on every app screen.
  • No hard-coded dark color left in components.
  • A contrast check for each token pair recorded on the pull request.

Decisions needed

  • Whether a manual theme switch is wanted as well as following the system.

Model: anthropic/claude-opus-5-5 | Reasoning effort: unknown

Lingua principale
TypeScript
Stelle
1
Fork
1
Merge medio
6h 56m
PR unite (30g)
136

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di eddiejaoude/StackDash

Tutte le issue di eddiejaoude/StackDash

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.