Replace the ad-hoc light-theme overrides with design tokens

Aperta
#159 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
12/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
css, typescript
Ambito
frontend

Direzione di ricerca

Start with web/app/globals.css to see the html.light override block, then read web/tailwind.config.ts to see how colours are currently mapped. Check #63 for the stopgap that this supersedes. Done means both themes are defined through semantic tokens, the override list is gone, and text contrast meets 4.5:1. The payload asks for a proposal first, so agree the approach with maintainers before changing components.

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

Descrizione

design difficulty: advanced needs-discussion refactor web

Difficulty: Advanced

Problem

web/app/globals.css implements the light theme as a long list of html.light .some-utility overrides that re-colour individual Tailwind classes. Every new colour class needs a matching override, which is why several are missing (see #63).

Why it matters

The approach does not scale and keeps producing contrast bugs.

Scope of work

Propose and implement semantic colour tokens (CSS variables mapped in tailwind.config.ts, with Tailwind's class-based dark variant or equivalent), migrate components gradually, and remove the override block.

Expected outcome

Both themes are defined once through tokens, and new components work in both themes by default.

Acceptance criteria

  • The override list is removed or empty.
  • Both themes are visually equivalent to the current ones and meet 4.5:1 contrast for text.
  • The migration approach is documented.

Relevant files

  • web/app/globals.css, web/tailwind.config.ts, components and pages

Dependencies

Supersedes the stopgap in #63; large change, coordinate with UI PRs.

Maintainer discussion needed?

Yes: approach and timing.

Lingua principale
TypeScript
Stelle
0
Fork
4
Merge medio
54m
PR unite (30g)
6

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 Yormee-103/PayLoop

Tutte le issue di Yormee-103/PayLoop

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.