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

Abierto
#159 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
12/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
css, typescript
Área
frontend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
0
Forks
4
Merge medio
54 min
PR fusionados (30 d)
6

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Yormee-103/PayLoop

Todos los issues de Yormee-103/PayLoop

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.