3 ms·
There's a new CSS forced-color mode that somewhat standardises the ability to force user colours on the web. It's related, but distinct from prefers-color-schem
by ZeroGravitas 4y ago
There's a new CSS forced-color mode that somewhat standardises the ability to force user colours on the web. It's related, but distinct from prefers-color-scheme for dark/light modes and prefers-contrast.
It may not be perfect but any project in this space should probably build on top of the standards and lobby sites themselves to support it better.
I noticed Ars Technica does something fancy with blend mode that makes its article images hard to see in this mode for example, but presumably it'll sort that when they notice.
https://developer.mozilla.org/en-US/docs/Web/CSS/@media/forced-colors https://developer.mozilla.org/en-US/docs/Web/CSS/@media/forc...
https://blogs.windows.com/msedgedev/2020/09/17/styling-for-windows-high-contrast-with-new-standards-for-forced-colors/ https://blogs.windows.com/msedgedev/2020/09/17/styling-for-w...
- phgn 4y agoOh that's interesting. But the problem with relying on standards is what to do before people adopt them? (even the support for prefers-color-scheme is pretty bad) I think any extension that adds better page theming needs to do its own CSS patching by default. If the project gets large enough and people want to fix their sites, they can do so through the web standards.