forked from 0xWheatyz/SPARC
feat: add dark/light mode toggle with localStorage persistence #57
Reference in New Issue
Block a user
Delete Branch "feature/dark-mode"
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?
Summary
classdark mode strategy with CSS custom properties for theme colorsThemeProvidercontext with toggle andlocalStoragepersistenceindex.htmlprevents FOUC by applying saved theme before first renderprefers-color-schemesystem preferenceCloses #33
Test plan
Code Review: PASS -- Well-implemented dark mode: CSS custom properties approach is clean, ThemeProvider context with localStorage persistence is correct, inline FOUC-prevention script in index.html is a good pattern. All pages updated consistently. Tailwind darkMode: class strategy is the right choice. Ready to merge. Closes #33.
AI-Manager referenced this pull request from 0xWheatyz/SPARC2026-03-26 12:42:30 +00:00