Skip to content

Refactor dashboard and feedback pages to use semantic color tokens - #27

Merged
Andreas-Froyland merged 1 commit into
mainfrom
claude/fix-dashboard-dark-mode-Z4J51
Feb 9, 2026
Merged

Andreas-Froyland merged 1 commit into
mainfrom
claude/fix-dashboard-dark-mode-Z4J51

Conversation

@Andreas-Froyland

Copy link
Copy Markdown
Member

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-900text-foreground / text-card-foreground
    • bg-whitebg-card
    • border-gray-200border-border
    • text-gray-600text-muted-foreground
    • bg-gray-50bg-muted
  • Dark Mode Support: Added dark mode variants for colored elements:

    • Icon colors now include dark:text-{color}-400 variants
    • Background colors for activity indicators use dark:bg-{color}-900/30 variants
    • Badge backgrounds include dark mode overrides
  • Form Elements: Updated select inputs and other form controls to use semantic tokens:

    • Added bg-background text-foreground classes for proper theming
    • Updated border colors to use border-border token
  • Consistent Styling: Applied changes across:

    • Dashboard page (pages/dashboard/index.vue)
    • Feedback page (pages/feedback/index.vue)
    • Additional pages (2 more files)

Implementation Details

  • All changes are backward compatible and use existing Tailwind classes
  • Semantic tokens should be defined in the project's design system configuration
  • Dark mode support is now automatic for components using these tokens
  • No functional changes to the UI behavior, only styling improvements

https://claude.ai/code/session_017szLhEzeeAg5rdZy23vZDb

… 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
@vercel

vercel Bot commented Feb 9, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
veerify Error Error Feb 9, 2026 6:15pm

@Andreas-Froyland
Andreas-Froyland merged commit 2fe8f2c into main Feb 9, 2026
8 of 11 checks passed
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.

2 participants