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

オープン
#159 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
12/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
活発
技術スタック
css, typescript
領域
frontend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
0
フォーク
4
平均マージ
54分
マージ済み PR(30日)
6

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Yormee-103/PayLoop のほかの issue

Yormee-103/PayLoop の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。