4 ms·
Is there anything like a web standard for theming? I.e. you have a browser that makes a query to some standard interface for supported themes on a website and i
by Uptrenda 7y ago
Is there anything like a web standard for theming? I.e. you have a browser that makes a query to some standard interface for supported themes on a website and it would automatically choose the type that you prefer. Values could be things like high contrast mode, dark mode, or even minimal (that was largely text-only.) Then there would be auto-magic dark mode on all major websites.
- scotchio 7y ago@media (prefers-color-scheme: dark) {} Mixed with root variables
- Uptrenda 7y ago+1 this is cool
- guessmyname 7y agoSafari Release 81 renamed “supported-color-schemes” to “color-scheme” [1]. But it seems that “prefers-color-scheme” is still, well, preferred [2]. [1] https://developer.apple.com/safari/technology-preview/release-notes/ https://developer.apple.com/safari/technology-preview/releas... [2] https://caniuse.com/#search=color-scheme https://caniuse.com/#search=color-scheme
- tambre 7y agosupported-color-schemes is a HTML tag indicating if the website supports dark mode (useful for auto-darkening support) and the media query is for actually implementing it.