4 ms·
> I find it hilarious that they put a dark mode toggle in the corner (why would I want this on a per-website basis?) They detect your OS preference and display
by ggregoire 6y ago
> I find it hilarious that they put a dark mode toggle in the corner (why would I want this on a per-website basis?)
They detect your OS preference and display their light/dark style automatically based on that [1]. The toggle is just there if you wanna switch it manually. My Mac is in dark mode but I usually prefer reading docs in light mode, so that toggle is handy.
Agree that it should update the background of the examples tho. Probably just a bug or something they didn't think about.
[1] https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme https://developer.mozilla.org/en-US/docs/Web/CSS/@media/pref...
- azinman2 6y agoIf that's the case then I think you should take your Mac out of dark mode. If we have to put it in every app and webpage in a non-standard way, then that suggests that dark mode itself is broken. That it doesn't change the example on the web page seems like a giant oversight, or a rendering error on Safari.
- mkl 6y agoIt's there so developers can look at the components in both colour schemes.