forked from 0xWheatyz/SPARC
Add dark mode support to the React frontend using Tailwind dark variant #866
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 is configured in the project but no
dark:variant classes are applied. Users who prefer dark mode see the light theme regardless of their OS preference.Work to do
darkMode: "media"ordarkMode: "class"intailwind.config.js/tailwind.config.ts).dark:variants to all major layout and UI components (background, text, border, card colors).classstrategy, add a theme toggle button to the navigation bar that persists the preference tolocalStorage.Acceptance criteria
Resolved in codebase. frontend/src/context/ThemeContext.tsx implements a ThemeProvider with dark/light toggle, localStorage persistence, and system preference detection. The dark class is toggled on document.documentElement. Closing as implemented.