DEV Community

Discussion on: Should websites have a dark-mode toggle button?

Collapse
meatboy profile image
Meat Boy • Edited on

IMO, yes. As long as the theme preference in localStorage is null you can stick to the dark/light mode from OS. Otherwise, if theme preference is set in localStorage you should use it.