Post

YES, Dark Mode Toggles _should_ be a browser feature. I wrote about this before: brm.us/dark-mode-ov... Find the link to the Chrome Bug in the post, and hit the star next to it to "upvote" the bug. (I even have a prototype extension to provide this for you: brm.us/chrome-dark-...) #cssday

brm.usDark Mode Toggles Should be a Browser FeatureWhen implementing Dark Mode and ways to toggle it, developers currently need to duplicate code and roll their own toggle implementation. What if, instead, browsers would take care of all that?

As long as they don’t take the Gmail approach to dark mode and use awful inversion algorithms in a very specific subset of cases that you have little to no control over, I am all for it.

This proposal is NOT about automatically creating dark modes. Instead, this proposal is about exposing a button that lets you override the value for prefers-color-scheme. This this, the dark mode styling remains a responsibility of the website to implement.

To be clear, I’m not saying it isn’t. Im saying that’s the line that I draw before I riot when it comes to theming content on the web.

0 reposts0 likes

No replies yet.