fix: fix light/dark/system theme switcher

- Add darkMode: class to tailwind config for class-based dark mode
- Load saved theme from localStorage on mount and apply immediately
- Add media query listener for system theme changes in system mode
This commit is contained in:
2026-02-06 17:08:42 -05:00
parent c7a82c4de8
commit 114fa556eb
7 changed files with 62 additions and 30 deletions

View File

@@ -3,6 +3,7 @@ export default {
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
darkMode: 'class',
theme: {
extend: {},
},