feat(theme): token-ize component surfaces for dark mode and re-skin#319
Merged
Conversation
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>
erickteowarang
approved these changes
Jun 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.tsx—bg-green-500/bg-yellow-500/bg-blue-500(and their/10subtle + dot variants) →status-completed/status-attention/status-neutraltokens.select.tsx,combobox.tsx,autocomplete.tsx— trigger / input / chip surfaces move from a fixedbg-backgroundtobg-transparent dark:bg-input/30, giving a subtle control fill that reads well in dark mode.dialog.tsx,sheet.tsx— panel surfacebg-background→bg-card(the backdropbg-black/50is intentionally left as-is).tabs.tsx— active tab usesbg-primary/10 text-primary; the capsule track usesbg-background dark:bg-input/30with no border.csv-importer/CsvImporter.tsx—text-yellow-600/bg-yellow-50/border-yellow-500→status-attentiontokens;text-emerald-600→status-completed.