Dark Mode for Websites: Chrome, Edge, Firefox & Forced
In this article
This guide shows you how to read any website in dark mode across Chrome, Edge, and Firefox, including how to force dark mode on sites that don't offer it natively. You'll learn built-in flags, extensions, and browser settings—no technical expertise required.
What You'll Need
- A desktop or laptop computer running Windows, macOS, or Linux.
- One of the following browsers installed: Google Chrome, Microsoft Edge, or Mozilla Firefox.
- For forced dark mode, an internet connection to install a browser extension (or use built-in flags).
Step-by-Step
Chrome (Built-in Dark Mode for All Sites)
- Open Chrome and type
chrome://flagsin the address bar, then press Enter. - In the search box at the top, type
dark. - Look for Auto Dark Mode for Web Contents (or Force Dark Mode for Web Contents in older versions).
- Click the dropdown next to it and select Enabled.
- Click Relaunch at the bottom of the page. Chrome will restart, and all websites will be forced into dark mode.
- To revert, go back to the same flag and set it to Disabled, then relaunch.
Edge (Built-in Dark Mode for All Sites)
- Open Edge and type
edge://flagsin the address bar, then press Enter. - Search for
dark. - Find Auto Dark Mode for Web Contents and set it to Enabled.
- Click Relaunch. Edge will restart and apply dark mode to all websites.
- To disable, repeat the steps and set the flag to Disabled.
Firefox (Built-in Dark Mode for All Sites)
- Open Firefox and type
about:configin the address bar, then press Enter. - Click Accept the Risk and Continue if prompted.
- In the search bar, type
ui.systemUsesDarkTheme. - Click the toggle icon (circular arrow) on the right to change the value to
1. This tells Firefox to use your system's dark theme for websites. - Restart Firefox for the change to take effect.
- If you want to force dark mode regardless of system theme, search for
layout.css.prefers-color-scheme.contentand set its value to2(0 = light, 1 = dark, 2 = forced dark).
Forced Dark Mode with Extensions (All Browsers)
- Open your browser's extension store (Chrome Web Store, Edge Add-ons, or Firefox Add-ons).
- Search for Dark Reader (a popular, open-source extension).
- Click Add to Chrome (or Edge/Firefox) and confirm any prompts.
- Click the Dark Reader icon in your toolbar.
- Toggle the On switch to enable dark mode. You can adjust brightness, contrast, and sepia filters.
- Use the Site list option to exclude specific websites from dark mode, or to force it only on certain sites.
Common Mistakes
- Using the wrong flag name: Chrome and Edge may label the flag differently (e.g., "Force Dark Mode" vs. "Auto Dark Mode"). Search for "dark" and read the description—both work similarly.
- Forgetting to relaunch: Flags and about:config changes only take effect after a full browser restart. Closing and reopening the window is not enough.
- System theme mismatch: Firefox's
ui.systemUsesDarkThemeonly works if your operating system is set to dark mode. If your OS is light, use thelayout.css.prefers-color-scheme.contentoverride instead. - Extensions not working on certain pages: Some sites (like browser internal pages or web stores) block extensions. That's normal.
Tips
- Use Dark Reader's per-site toggle to keep light mode on sites that already have good dark themes (e.g., YouTube, GitHub).
- If you only want dark mode at night, schedule Dark Reader to turn on automatically via its settings (click the extension icon → ⋯ → Settings → Theme toggle → Time).
- For Chrome/Edge flags, note that forced dark mode can break some images or icons—if a site looks wrong, disable the flag for that site (not possible per-site) or use an extension instead.
- Firefox's
layout.css.prefers-color-scheme.contentset to2forces dark mode even if the site doesn't support it, but some elements may remain unreadable—use Dark Reader for better results.
Troubleshooting
- Dark mode isn't applying: Ensure you've relaunched the browser completely. Also, check that your OS is in dark mode if using Firefox's system theme setting.
- Some sites look broken (white boxes, invisible text): This happens with forced dark mode. Try disabling the flag and using Dark Reader, which has better contrast handling.
- Dark Reader doesn't work on a page: Click the extension icon and check if the site is in the "Invert list" or "Ignore list". Remove it from the ignore list if needed.
- Can't find the flag: Flags change with browser versions. If you don't see "Auto Dark Mode", update your browser to the latest version.
- Firefox about:config changes revert: Make sure you're editing the correct preference and restarting. If it resets, your browser may have a policy that locks preferences—contact your administrator.
Frequently Asked Questions
Will dark mode work on all websites?
Not perfectly. Built-in flags and extensions force dark mode, but some sites (especially those with complex backgrounds or images) may look odd. Extensions like Dark Reader usually handle these better.
Does dark mode save battery?
On OLED screens, yes—dark pixels require less power. On LCD screens, the difference is negligible.
Can I use dark mode on my phone?
Yes, but this guide covers desktop browsers. On mobile, use the browser's built-in dark mode or a mobile extension (Firefox supports extensions on Android).
Will forced dark mode affect screenshots?
Yes, screenshots will capture the dark version of the site, which may not be what you want for documentation. Temporarily disable dark mode before taking screenshots.
Does Dark Reader slow down browsing?
Minimally. It adds a small overhead, but most users won't notice. If you do, try disabling it on heavy sites.
Can I set dark mode per site without extensions?
No, built-in flags apply globally. Extensions like Dark Reader allow per-site settings.