Skip to content

Dark theme / prefers-color-scheme for some websites css

So problem goes:

  1. As @Kresimir235 pointed out to me, if you have dark mode / theme on OS settings LibreWolf picks theme for it's GTK ok, however stuff like New tab is still burning eyes white

  2. On gitter someone mentioned that site https://snapdrop.net/ i've noticed it opens as dark on Firefox, and as light on LibreWolf


So i did my homework...

If you have set privacy.resistFingerprinting to true, prefers-color-scheme preference is overridden to light.

Alternately, users can create the numeric preference ui.systemUsesDarkTheme to override the default behavior and return light (value: 0), dark (value: 1), or no-preference (value: 2). (Any other value causes Firefox to return light.)

(c) https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme

We on LIbreWolf of course set privacy.resistFingerprinting to true, and that's the problem, coz it's some kind of "umbrella" setting which disables multiple important settings as well as ability to auto-detect or force color-scheme...

I know that's kinda part of fingerprinting routine, but it would be really cool if we could still somehow have privacy.resistFingerprinting = true, but with ability to override ui.systemUsesDarkTheme 😄


Here's a lot of those "umbrella" settings https://bugzilla.mozilla.org/show_bug.cgi?id=1333933

Edited by keybreak