|
|
|
|
|
by JDiculous
2452 days ago
|
|
I strongly disagree. Users should be able to control their preferences by application, and not be locked into an OS setting. My suggestion of still using classes doesn't eliminate centralization of config, it just means moving the dark mode CSS outside of the media query and into a class, and adding a couple lines of Javascript. |
|
If your app really just has light and dark theme choices, you should get rid of the toggle and move all your dark class styles into the prefers-color-scheme:dark media query instead.