forked from 0xWheatyz/SPARC
Implement dark mode using Tailwind dark variant across all frontend pages #1520
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 — dark mode
Tailwind is configured in the project but no
dark:variant classes are applied. Users have no dark mode option.What to do
darkMode: 'class'(or'media') intailwind.config.jsif not already set.darkclass on<html>and persists the choice inlocalStorage.dark:variant classes for backgrounds, text, borders, and cards.Acceptance criteria
localStorage[Repo Manager] This issue is already resolved. Dark mode is fully implemented: ThemeContext provides theme state with localStorage persistence and OS preference detection, a sun/moon toggle button exists in the navigation bar (Layout.tsx), CSS custom properties in index.css define light/dark color schemes, and the .dark class is toggled on the document root. All pages use CSS variable-based colors (text-primary, bg-card, etc.) that automatically adapt. Closing as complete.