2 ms·
Fascinating. Different use cases for different people. On GitHub, I use the default dark mode ("dark default") and then enable "high contrast", which makes the
by JoshTriplett 1y ago
Fascinating. Different use cases for different people. On GitHub, I use the default dark mode ("dark default") and then enable "high contrast", which makes the background black. (I also get annoyed when light modes are dark grey on light grey, rather than black on white for maximum contrast.)
There's a CSS preference for contrast. It seems easy enough to handle `@media(prefers-contrast: low)` and set a gray background. The contentious part would presumably be the default; I would have thought #000000 was the obvious default for a dark mode but apparently that's not what everyone prefers. Ideally, OSes and browsers would expose controls for this in a straightforward way, the way they handle dark mode.
https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@media/prefers-contrast https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/A...