DEV Community

Discussion on: Implementing Dark Mode (Part 3)

Collapse
 
okikio profile image
Okiki Ojo

In my opinion, the best dark mode experience that can be achieved is if you use the prefers-color-scheme media query, and have the user change the theme at will through the browsers, by having a setting similar to the settings browsers have for cookies, if this was a thing, everyone's life would be much easier.

Collapse
 
mtfoley profile image
Matthew Foley

I think we're on the same page! In Part 1 (dev.to/opensauced/implementing-dar...), I briefly touched on how we settled on a three-state solution to try to get the best of all sides (follow system by default, but allow the user to override and persist the preference on that device).