User Agents

Firefox Dark Mode: How to Enable and Use It

Firefox has a built-in dark mode that you can enable through its settings or by using a dark theme. The browser also respects your operating system's dark mode setting, so if your system is set to dark, Firefox will often follow suit automatically. This article explains how Firefox's dark mode works, how to turn it on, how to customize it, and what to do when websites still appear bright.

What Firefox Dark Mode Actually Does

Firefox's dark mode is not a single switch that inverts every color on every page. Instead, it consists of two separate layers: the browser interface (toolbars, menus, tabs, and settings pages) and the content area (the web pages you visit). The browser interface can be darkened by selecting a dark theme or by enabling the system dark mode preference. The content area, however, is controlled by each website's own CSS. Many sites now support a dark color scheme via the prefers-color-scheme media query, but others do not. Firefox does not force all websites into dark mode by default, though there are workarounds and extensions that can help.

How to Enable Dark Mode in Firefox

There are several ways to get a dark Firefox interface. The most straightforward is to change the theme. Here is how:

  1. Open Firefox and click the menu button (three horizontal lines) in the top-right corner.
  2. Select Add-ons and themes from the menu.
  3. In the Add-ons Manager, click Themes in the left sidebar.
  4. Choose a dark theme from the list. Firefox typically includes a built-in dark theme called Dark. Click Enable next to it.

Alternatively, you can enable dark mode through Firefox's settings if you want the browser to follow your system's appearance:

  1. Click the menu button and select Settings.
  2. In the General panel, scroll down to the Language and Appearance section.
  3. Under Website appearance, you can choose Automatic, Light, or Dark. Selecting Dark tells Firefox to prefer dark color schemes on websites that support them.
  4. To make the entire browser interface dark, you still need to select a dark theme as described above, or set your operating system to dark mode.

Note that menu labels and locations can vary slightly between Firefox versions and operating systems, but the general path is similar.

How Firefox Dark Mode Interacts with Your System

Firefox can automatically detect whether your operating system is using a light or dark theme. On Windows 10 and 11, macOS, and many Linux desktop environments, if you set the system appearance to dark, Firefox will usually switch its interface to dark as well, provided you are using the default theme or a theme that supports automatic switching. This behavior is controlled by the ui.systemUsesDarkTheme preference in about:config, but you generally do not need to touch it. If Firefox does not follow your system's dark mode, check that you have not manually selected a light theme, and ensure that the Website appearance setting is set to Automatic or Dark.

Making Websites Dark in Firefox

As mentioned, Firefox does not natively force all websites to display in dark mode. However, there are a few approaches to darken web content:

  • Use websites that support dark mode: Many popular sites (YouTube, Twitter, Reddit, and others) have their own dark mode toggles. Firefox will respect those settings.
  • Enable the prefers-color-scheme override: In about:config, you can set layout.css.prefers-color-scheme.content-override to 0 (dark), 1 (light), or 2 (system). This tells websites that you prefer a dark color scheme, and sites that support it will respond accordingly.
  • Use a dark mode extension: Extensions like Dark Reader can invert or restyle pages to be dark. These are third-party add-ons; install them from the official Firefox Add-ons site and review their permissions before use.

Keep in mind that forcing dark mode on sites that do not support it can sometimes break layouts or make text unreadable. Use extensions with caution and disable them for sites where they cause problems.

Common Problems and Fixes

Even after enabling dark mode, you might encounter issues. Here are some common ones and how to address them:

  • Firefox interface is still light: Make sure you have selected a dark theme in the Add-ons Manager. Also check that your operating system is not forcing a light theme. On Windows, for example, the app mode setting can override Firefox's theme.
  • Websites remain bright: This is expected if the site does not support dark mode. Try the prefers-color-scheme override or a dark mode extension.
  • Dark mode resets after restart: Firefox should remember your theme choice. If it does not, check that you are not using a private browsing window that clears settings, or that your profile is not corrupted. Creating a new Firefox profile can help diagnose the issue.
  • Text is hard to read in dark mode: Some themes or extensions may produce low contrast. Switch to a different theme or adjust the extension's settings.

Dark Mode vs. High Contrast and Other Accessibility Modes

Firefox also offers high contrast mode, which is different from dark mode. High contrast mode is designed for users with visual impairments and typically uses a black background with bright text and borders. It can be enabled through the operating system's accessibility settings or via Firefox's about:config by setting browser.display.document_color_use to 2 (always use high contrast). Dark mode, by contrast, is a cosmetic preference that aims to reduce eye strain in low-light environments. If you need maximum readability, high contrast mode may be more appropriate, but it can make some websites look unusual.

Frequently Asked Questions

Does Firefox have a dark mode?

Yes, Firefox offers a dark theme for its interface and can respect your system's dark mode setting. It also supports the prefers-color-scheme media query, allowing websites to serve dark styles when you prefer them.

How do I turn on dark mode in Firefox?

You can enable a dark theme via the Add-ons and themes menu, or set your operating system to dark mode and let Firefox follow. Additionally, in Settings under Language and Appearance, you can set Website appearance to Dark to signal your preference to websites.

Why is Firefox still light after I enabled dark mode?

If the browser interface is still light, ensure you have selected a dark theme and that your system is not overriding it. If websites are still light, it is because they do not support dark mode; you can use the prefers-color-scheme override or a dark mode extension.

Can I make all websites dark in Firefox?

Not natively. Firefox does not force dark mode on all sites. You can use the layout.css.prefers-color-scheme.content-override preference to tell sites you prefer dark, but only sites that implement dark styles will respond. For a universal dark mode, consider a third-party extension like Dark Reader.

Is dark mode better for my eyes?

Dark mode can reduce eye strain in low-light conditions, but it is not universally better. Some people find light text on dark backgrounds harder to read, especially in bright environments. It is a matter of personal preference and context.

Does dark mode save battery life?

On devices with OLED or AMOLED screens, dark mode can save battery because black pixels are turned off. On LCD screens, the backlight remains on, so the savings are minimal or nonexistent. The impact depends on your device's display technology.