A Firefox extension to quickly toggle between light and dark themes with a single click.
- One-click theme switching between two configured themes
- Select any installed Firefox themes for light and dark modes
- Icon color changes to indicate current theme state
- Persists your theme preferences across sessions
- Starts with dark theme by default
- Manifest V3 compatible (Firefox 142+)
Coming soon to AMO
- Download or clone this repository
- Open Firefox and navigate to
about:debugging#/runtime/this-firefox - Click "Load Temporary Add-on..."
- Select the
manifest.jsonfile - Configure your themes in the extension options
- Right-click the toolbar icon and select "Options"
- Select your preferred dark theme from the dropdown
- Select your preferred light theme from the dropdown
- Click "Save Settings"
Click the toolbar icon to instantly switch between your configured themes.
The icon changes color to indicate the active theme:
- White icon: Dark theme is active
- Black icon: Light theme is active
This extension requires the following permissions:
| Permission | Purpose |
|---|---|
management |
List and enable installed themes |
storage |
Save your theme preferences |
- Firefox 142.0 or later
- Manifest V3 compliant
theme-switch/
├── manifest.json # Extension manifest
├── background.js # Toggle logic
├── options.html # Preferences page
├── options.js # Preferences logic
├── options.css # Preferences styling
└── icons/ # Extension icons
# Using web-ext
npx web-ext build --overwrite-dest
# Signing for distribution
npx web-ext sign --api-key YOUR_KEY --api-secret YOUR_SECRET --channel unlistedMIT License - see LICENSE file for details.
Rajeshkumar Kumar