Refactor dashboard and feedback pages to use semantic color tokens - #27
Merged
Merged
Conversation
… mode All dashboard-layout pages (dashboard, feedback, reports, help) used hardcoded Tailwind classes like bg-white, text-gray-900, border-gray-200 that don't respond to dark mode. Replaced with CSS variable-based classes (bg-card, text-foreground, text-muted-foreground, border-border, etc.) and added dark: variants for accent colors. https://claude.ai/code/session_017szLhEzeeAg5rdZy23vZDb
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Summary
Refactored the dashboard and feedback pages to use semantic color tokens from the design system instead of hardcoded Tailwind color classes. This enables better theme support, including dark mode, and improves maintainability by centralizing color definitions.
Key Changes
Color Token Migration: Replaced hardcoded colors (
text-gray-900,bg-white,border-gray-200, etc.) with semantic tokens:text-gray-900→text-foreground/text-card-foregroundbg-white→bg-cardborder-gray-200→border-bordertext-gray-600→text-muted-foregroundbg-gray-50→bg-mutedDark Mode Support: Added dark mode variants for colored elements:
dark:text-{color}-400variantsdark:bg-{color}-900/30variantsForm Elements: Updated select inputs and other form controls to use semantic tokens:
bg-background text-foregroundclasses for proper themingborder-bordertokenConsistent Styling: Applied changes across:
pages/dashboard/index.vue)pages/feedback/index.vue)Implementation Details
https://claude.ai/code/session_017szLhEzeeAg5rdZy23vZDb