Dark Background and Light Text: Firefox page colors
Choose a coloring method for one tab, a website or your Firefox profile, then keep exceptions and global color preferences under control.
Get extensionDark Background and Light Text lets you choose how Firefox recolors a page and where that choice applies. I'd start with one difficult website, using Stylesheet processor first and keeping Disabled within reach. Its most useful distinction is between a saved website rule and a temporary choice for the current tab; choose the scope before changing the method.
Get the Firefox extension from its author
Use Dark Background and Light Text by Mikhail Khvoinitsky on Mozilla Add-ons. The current listing identifies version 0.7.7, and its compatibility information requires Firefox 153 or later. Mozilla also lists Firefox for Android support. A similarly named Dark mode / night reader extension for Chrome is offered by o9000; it isn't this Firefox add-on.
Before installing, review the requested permissions: Mozilla lists browser settings, tabs and data on all websites. The extension also changes Firefox's document-color setting and stylesheet-related response headers, as explained below; review those behaviors first if you rely on forced colors or require unmodified response policies. After adding it in your intended Firefox profile, open an ordinary webpage and select its toolbar button. Its access is broad even when you plan to adjust only a few pages.
The initial setup has Enabled checked and Stylesheet processor as its global default, so it can recolor other websites too. For limited coverage, use the selected-sites setup before continuing to browse.
The author's public source repository uses the Mozilla Public License 2.0. Mozilla's listing says the developer doesn't require data collection. That declaration and the available source help you assess the product; neither establishes an independent security audit.
Choose the scope before the method
Keep Enabled checked, then inspect the address selector under Dark Background and Light Text options for:. The selector can contain a domain, a narrower address path and < Current Tab >. A domain entry reaches more pages than a path entry. A path entry also covers deeper paths; query strings and fragments don't create separate rules. Current Tab applies to that tab, including later navigation in it, until the tab closes or you clear the override.

Select the scope first, then choose a method. The popup saves the choice and closes, so reopen it when you want to compare another method. In an ordinary window, address rules are stored locally in this Firefox profile. Private-window rules aren't saved with the ordinary configured pages and are cleared when the last private tab closes.
Default doesn't mean Disabled. It removes that particular override and lets a broader matching rule or the global default take over. A narrower saved address rule takes priority over a broader one, while a Current Tab override takes priority over address rules. If a page keeps returning to an unexpected appearance, check these scopes before changing your colors again. When a saved address change seems ineffective, choose Current Tab in the selector and set it to Default, then check the saved rule again.
Try another method without changing every site
I'd choose Stylesheet processor first because it's the extension's initial default. It processes page styles rather than applying one inversion to the whole page. Check a paragraph, a menu, a form field, links and a meaningful image before keeping the result.
- Simple CSS forces the configured foreground and background colors more directly. It can help when a page's own styling leaves areas unchanged, but distinctions that relied on background colors may be lost.
- Invert uses color inversion. Its stylesheet includes corrections for ordinary images and video, but a diagram, embedded image or unusual component can still need inspection. Don't use it to judge original artwork or chart colors.
- Disabled turns recoloring off for the selected scope. Use it for a site whose own theme works better, or when a method hides information.
The method definitions in the source distinguish those choices from Default. Choose an explicit method when you want an exception, or Default when you want the page to follow the surrounding rules again.
In Mozilla reviews of version 0.7.6, Peter23 praises the default processor and uses Simple CSS as a fallback, while permindex reports substantial slowdown. These are individual reports about an earlier version. I'd compare reading, scrolling and editing on the pages I need before choosing one method globally. A favorable result on a simple article doesn't settle how a complex web app will behave.
Set global colors or enable only chosen sites
Open the popup and select Global Preferences. Under Options, Default method of changing page colors controls pages without an overriding address or tab rule. To modify only selected sites, set that global method to Disabled and leave Enabled checked. Existing explicit address and Current Tab rules still take priority: record useful rules, inspect Configured pages, remove unwanted address rules and clear unwanted Current Tab overrides with Default. Then return to each wanted site and save an explicit method for its domain.
The color controls include Default foreground color, Default background color, link, visited-link, active-link and selection colors. These are global preferences: the address selector chooses a method, not a separate color palette for every site. The stored preference definitions make that distinction clear.
Change foreground and background together, then inspect links and selected text too. If pure white on black feels too stark, choose a less extreme pair while keeping text distinguishable from its background. The Bureau of Internet Accessibility explains why dark themes still need readable links and visible keyboard focus. Press Tab through the page and check that the focused control remains obvious.
I'd keep a site's original appearance whenever the adjusted version makes reading harder. A dark palette is a display preference, not a reason to accept missing controls or a promise of a health benefit.
Restore a page and understand the permissions
For one broken page, save unfinished work before reloading. Select its narrowest useful scope and choose Disabled, then reload. If the page recovers, leave that exception in place or compare another method there. For a problem everywhere, uncheck Enabled to suspend recoloring globally. That switch doesn't delete your saved rules; it also doesn't reverse the document-color setting or stop the response-header changes described below.
If the popup says modification isn't available because of Firefox restrictions, try a normal public webpage. Browser-internal pages can be protected from extension changes. When two appearance extensions are active, temporarily disable the other one for the affected page, compare, and restore it if it wasn't involved.
Browser settings access has a specific consequence here. By default, the extension sets Firefox's Override Document Colors behavior to never so the page styles can be changed. Global Preferences includes Do not set "Override Document Colors" to "never" (not recommended). If you rely on Firefox's own forced-color behavior, review this choice before adopting the extension; the two approaches can conflict.
The background implementation also uses request permissions to adjust stylesheet-related response headers. Its helper code permits inline styles in affected document policies and adjusts cross-origin access for stylesheet responses. This is more access than changing a browser theme's tab colors. If those capabilities don't fit your requirements, keep the site's native theme or Firefox's own appearance controls.
Tidy saved rules before a reset or move
Open Global Preferences → Configured pages to inspect stored address rules and their selected methods. Remove deletes one rule, allowing broader rules or the global default to apply. It doesn't mean that the affected site will necessarily become light. Use Disabled for an explicit exception instead.
Each ordinary preference has its own Reset button. Record your useful colors and configured pages before removing the add-on or moving profiles. Its preference code stores settings in browser.storage.local; don't assume that Firefox Sync will transfer this list. The preferences screen doesn't provide an import/export control.
For desktop shortcuts, open about:addons → gear menu → Manage Extension Shortcuts. The extension suggests F2 for the global toggle and Ctrl+Alt+D for the current-tab toggle. Review the assigned keys if recoloring changes unexpectedly or a shortcut conflicts with another task.
For a reproducible problem, use the issue tracker linked from Mozilla or the developer's support email. Include Firefox and extension versions, the affected public URL, selected scope and method, and what changes when Disabled is selected and the page is reloaded. Redact private text and account details from screenshots.
Choose this extension when direct method selection and a shared custom palette fit your Firefox workflow. If you want integrated scheduling and a different licensing model, Night Eye documents schedule and system-theme controls. For other ways to adjust how webpages are read, use the website appearance tools hub. Keep the smallest rule that solves your problem, then reopen the page to confirm it behaves as intended.
