4

Should websites have a dark-mode toggle button?

 2 years ago
source link: https://dev.to/shadowfaxrodeo/should-websites-have-a-dark-mode-toggle-button-1an1
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Should websites have a dark-mode toggle button?

Aug 26

・1 min read

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?

Discussion (1)

pic

CollapseExpand

You should add a toggle. As you said not all devices support dark-mode, and users don't always want to stick with the choice made by their OS. And since it's mostly text dark mode would be really helpful.

Comment button Reply


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK