DEV Community

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

Collapse
 
zenorocha profile image
Zeno Rocha • Edited

One misconception developers have with light/dark mode is automatically applying a theme based on the system user preferences.

Although it's safe to assume that users might want their apps to follow that preference, it would be best if they had the option to switch to a different theme manually.

There are all sorts of reasons a user might want to switch. Maybe they want to take a screenshot in light mode, record a screen share in dark mode, or simply prefer to use your app with one theme or another.

Regardless of the use case, you should give them the control to change.

Source: 5 Lessons We Learned Adding Dark Mode to WorkOS