Firefox Browser Add-ons
  • Extensions
  • Themes
    • for Firefox
    • Dictionaries & Language Packs
    • Other Browser Sites
    • Add-ons for Android
Log in
Preview of Toggle dark mode

Toggle dark mode by Cimbali

Toggle the content’s color scheme between preferring light or dark (or inheriting)

4.3 (24 reviews)4.3 (24 reviews)
818 Users818 Users
You'll need Firefox to use this extension
Download Firefox and get the extension
Download file

Extension Metadata

About this extension
For Firefox version ≥ 95.

Minimal add-on

This is the simplest possible add-on with the least possible permissions.

Clicking the add-on action in your toolbar cycles the color scheme preference for browser content, between the following 4 values:
  1. dark colors
  2. light colors
  3. inherit browser colors (dark or light)
  4. inherit system colors (dark or light)
You can enable or disable values in the cycle from the add-on content.

Fingerprinting incompatibility

Strong fingerprinting resistance (by setting the preference privacy.resistFingerprinting) stops Firefox from disclosing your color preference to websites, which means this add-on will have no effect.

Website support

This add-on relies on the fact that websites have their own proper stylesheets for dark and light modes, for example DuckDuckGo.
An increasing number of websites now offer light and dark schemes, though you may need to select a specific option to inherit your browser’s colors, e.g. google, github, stackoverflow, and many more.

If you want to add your own dark mode to other websites, you can use user style sheet addons such as e.g. Stylus. Then you can wrap the CSS in a prefers-color-scheme media feature so it responds to this add-on’s toggle. For example:


@media (prefers-color-scheme: dark) {
/* CSS that ony applies to dark mode */
body { background: black; color: #ddd; }
}

@media (prefers-color-scheme: light) {
/* CSS that ony applies to light mode */
body { background: white; color: black; }
}
Rated 4.3 by 24 reviewers
Log in to rate this extension
There are no ratings yet

Star rating saved

5
19
4
0
3
2
2
0
1
3
Read all 24 reviews
Permissions and dataLearn more

Required permissions:

  • Read and modify browser settings
More information
Add-on Links
  • Homepage
  • Support site
Version
1.0.1
Size
53.48 KB
Last updated
4 years ago (Oct 19, 2021)
Related Categories
  • Appearance
License
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version History
  • See all versions
Add to collection
Report this add-on
Release notes for 1.0.1
Adding a keyboard shortcut option
More extensions by Cimbali
  • There are no ratings yet

  • There are no ratings yet

  • There are no ratings yet

  • There are no ratings yet

  • There are no ratings yet

  • There are no ratings yet

Go to Mozilla's homepage

Add-ons

  • About
  • Firefox Add-ons Blog
  • Extension Workshop
  • Developer Hub
  • Developer Policies
  • Community Blog
  • Forum
  • Report a bug
  • Review Guide

Browsers

  • Desktop
  • Mobile
  • Enterprise

Products

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Privacy
  • Cookies
  • Legal

Except where otherwise noted, content on this site is licensed under the Creative Commons Attribution Share-Alike License v3.0 or any later version.