This content originally appeared on DEV Community and was authored by Nathaniel
I'm currently working on a mostly text based website. We are supporting dark-mode
using css media-queries
.
We're currently discussing if we should have a toggle button.
Not all devices support dark-mode, and users don't always want to stick with the choice made by their OS.
On the other hand, this is just extra code that needs to be downloaded by every user — and it needs to remember their preferences with localStorage
, and I like to not create data when I can help it.
What do you think? Is it actually useful to have a dark mode toggle? or should we stick to supporting the choice made by the OS?
This content originally appeared on DEV Community and was authored by Nathaniel
Nathaniel | Sciencx (2021-08-26T20:43:24+00:00) Should websites have a dark-mode toggle button?. Retrieved from https://www.scien.cx/2021/08/26/should-websites-have-a-dark-mode-toggle-button/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.