firefox-dark-theme.txt (859B) [raw]
1 prefers-color-scheme 'dark' on Firefox 2 ====================================== 3 Wed Jan 19 23:37:28 EST 2022 4 5 The prefers-color-scheme media query [1] has become the de-facto 6 way of auto selecting a darker theme on many sites. The only 7 problem is that it _seems_ that Firefox takes its hints from the 8 underlying desktop environment, and I usually run window managers 9 without this magical attribute set. 10 11 I found this about:config variable a while back to trick firefox 12 into thinking I'm using a dark "system theme", which works great, 13 but I always forget it (it can't be versioned in my dotfiles!), so 14 here it is in my gopher notes: 15 16 1. Go to about:config 17 2. Add a new property with the name: 18 19 ui.systemUsesDarkTheme 20 21 3. Set the value to "Number" and "1". No booleans allowed! 22 23 [1]: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme