Skip to content

feat(theme): token-ize component surfaces for dark mode and re-skin#319

Merged
IzumiSy merged 1 commit into
mainfrom
feat/theme-tokenize-components
Jun 17, 2026
Merged

feat(theme): token-ize component surfaces for dark mode and re-skin#319
IzumiSy merged 1 commit into
mainfrom
feat/theme-tokenize-components

Conversation

@IzumiSy

@IzumiSy IzumiSy commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Re-created from #315 to focus on changes as the title says.

Summary

Replaces hardcoded color literals in components with semantic tokens, so every surface adapts correctly across light/dark mode.

What changed

  • badge.tsxbg-green-500 / bg-yellow-500 / bg-blue-500 (and their /10 subtle + dot variants) → status-completed / status-attention / status-neutral tokens.
  • select.tsx, combobox.tsx, autocomplete.tsx — trigger / input / chip surfaces move from a fixed bg-background to bg-transparent dark:bg-input/30, giving a subtle control fill that reads well in dark mode.
  • dialog.tsx, sheet.tsx — panel surface bg-backgroundbg-card (the backdrop bg-black/50 is intentionally left as-is).
  • tabs.tsx — active tab uses bg-primary/10 text-primary; the capsule track uses bg-background dark:bg-input/30 with no border.
  • csv-importer/CsvImporter.tsxtext-yellow-600 / bg-yellow-50 / border-yellow-500status-attention tokens; text-emerald-600status-completed.
  • 9 snapshots updated to match.

Replace hardcoded colors with semantic tokens so components adapt to mode
and brand changes. Badge success/warning/info map to status-completed/
attention/neutral. Form controls (select/combobox/autocomplete) use
bg-transparent dark:bg-input/30; dialog/sheet panels use bg-card. Tabs
selection uses bg-primary/10 text-primary and the capsule track uses
bg-background dark:bg-input/30 with no border. CsvImporter yellow/emerald
highlights map to status-attention/completed. Snapshots updated.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@IzumiSy IzumiSy self-assigned this Jun 17, 2026
@IzumiSy IzumiSy requested a review from a team June 17, 2026 02:22
@IzumiSy IzumiSy merged commit 5d7d7d3 into main Jun 17, 2026
5 of 6 checks passed
@IzumiSy IzumiSy deleted the feat/theme-tokenize-components branch June 17, 2026 02:30
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.

3 participants