I'm actually kind of annoyed at prefers-color-scheme, and the inability to control it as a user in my browser.
I have my Windows set to dark mode because I prefer how Explorer and the rest of the Windows UI looks in dark mode, and I want my OS chrome to be less distracting and to just "fade away". However, all web browsers see this as a signal to tell every website I would prefer them to be in dark mode also, which is not correct! I wish I could set chrome itself to prefers-color-scheme: light (without having to use the dev tools on every website).
The trouble is that `prefers-color-scheme` is set at browser or system level. In order for a website to use a different colour-scheme, then they need to add functionality with Javascript in order to be able to load different styling at user request.
I wish there were some URL-based rules you could set in the browser settings (I expect there are addons to do this, haven't looked though!).
I don't really care that I'm probably in the minority of users who think or care about this. It doesn't make how I feel any less valid.
are there better extensions for providing styles that apply to every website than stylus?
- match the Firefox theme
- match the system theme
- force light
- force dark
Though, maybe that only does the reverse of what you're looking for.
Perhaps it's because it's more readable, not less, and you realize that the site is not worth your time faster :)
Unfortunately firefox with enhanced tracking protection claims that the user WANTS a light theme instead of indicating no preference - yes, the spec has no no-preference but a) this means the spec is broken because there is no equivalent setting to not implementing the spec and b) web specs are defined by browser vendors and Firefox used to have a no-preference value for this. In general, desktop browsers will also often indicate prefer-color-scheme: light if the user has not actually made an active choice - either as a default in the browser or based on the default system theme. This unfortunately makes prefer-color-scheme: light not actually carry any useful information so there is currently no way to have a dark theme by default but provide a light thome for those users that actually want it (you can only do the reverse).
That being said I think most if not all browsers will always answer true to one of those.