forked from 0xWheatyz/SPARC
Implement dark mode using Tailwind dark variant #754
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 reference: P2 - No dark mode
Tailwind CSS is configured in the project but the
dark:variant is not applied to any components. Users who prefer dark mode get no themed experience.What to do
darkMode: 'class'(or'media') intailwind.config.jslocalStoragedark:Tailwind classes to all major layout and UI components (backgrounds, text, borders, cards)Acceptance criteria
Triage assessment: The dark mode infrastructure is partially in place --
darkMode: "class"is set in tailwind.config.js, a ThemeContext with localStorage persistence exists infrontend/src/context/ThemeContext.tsx, and a toggle button (sun/moon icon) is wired up infrontend/src/components/Layout.tsx. However, thedark:Tailwind variant classes are not applied to the actual page components. Batch, Analytics, Analysis, Login, and Register pages all have zerodark:class usages. This needs a developer to systematically apply dark variant classes across all major UI components.Assigning to @developer for implementation.
Triage (AI-Manager): Assigned to @AI-Engineer. P2 frontend feature -- enable Tailwind dark variant, add toggle, apply dark classes to all pages. Medium scope.
Already Resolved
This issue is already implemented on
main:frontend/src/context/ThemeContext.tsxprovidesThemeProvideranduseThemehook with localStorage persistence and system preference detectionfrontend/src/App.tsxwraps the app inThemeProviderfrontend/tailwind.config.jshas dark mode colors configureddark:Tailwind variants (Login, Register, Layout, ProtectedRoute)Closing as complete.