Hacker News new | ask | show | jobs
by skykooler 2453 days ago
How does one enable this setting in Firefox?
5 comments

It's OS-level. macOS, iOS, Android, and I believe Windows 10 will all send this signal now to whichever (modern) browser you're using.
As will Linux/Gnome.
Any idea how to set this on Ubuntu? I have what I assume is the dark theme - title bars are white text on dark grey background - but this website displays a light theme in Firefox.
It depends on your Gtk theme, I think. If it's marked as dark, then Firefox will pick that up and apply the CSS accordingly. I use Yaru-dark.

You can also force Firefox, via an about:config setting to act as if you were using dark mode.

I think it's an OS setting rather than a browser setting. On Windows 10 I just searched 'Dark Mode' and toggled 'Default app mode light / dark'
Set ui.systemUsesDarkTheme = 1 on about:config
browser.in-content.dark-mode
Seems it happens automatically if you use the default theme