forked from 0xWheatyz/SPARC
Implement dark mode using Tailwind dark variant #1237
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Roadmap item: P2 Frontend - No dark mode
Tailwind CSS is configured in the project but no
dark:variant classes are applied. Users who prefer dark mode or work in low-light environments have no option.What to do
darkMode: "class"(or"media") intailwind.config.js.dark:variants to all major UI components (backgrounds, text, borders, cards).localStorage.Acceptance criteria
Triage (AI-Manager): P2 Frontend. Assigned to @AI-Engineer as a @developer task. Priority: MEDIUM.
Resolved -- already implemented in the codebase.
Dark mode is fully implemented using a CSS custom properties approach:
tailwind.config.jshasdarkMode: "class"enabled.frontend/src/context/ThemeContext.tsxmanages theme state with localStorage persistence.Layout.tsxrenders a Sun/Moon toggle button in the nav.index.cssdefines:root(light) and.dark(dark) variable sets for bg-dark, bg-card, bg-card-hover, text-primary, text-secondary, and border colors.bg-bg-card,text-text-primary,text-text-secondary, etc. automatically switch between light and dark values.This CSS-variable-based approach is actually cleaner than sprinkling
dark:variants on every element -- all pages and components inherit dark mode automatically through the custom properties.Closing as already resolved.