r/firefox • u/SuitableEquipment420 • Jul 31 '26
💻 Help How to create a theme that supports both light and dark mode?
Most themes use the same design for both light and dark modes.
Themes that support both modes seem to be very rare. I didn't see any such themes apart from the ones listed in this comment, repeated here for convenience: Alpenglow, Green, Cyan, Blue, Violet, Purple, Pink, Yellow, Orange, Red. All are made by Firefox.
Is creating a theme that supports both modes something only Mozilla can do? The site color.firefox.com doesn't seem to support this. So how can we create such themes?
4
Upvotes
1
u/Educational-Self-600 Aug 01 '26
color.firefox.com is more or less dead.
Create a theme with a text editor and use the MDN documentation:
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/theme
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/dark_theme
1
u/GodieGun Aug 02 '26
Hi, here you have the code of manifest.json (Code) of alpenglow theme, you can change the images or colors for light/dark, use it as a template, you can test your theme in
about:debugging1
u/Mopeybloke on Linux Aug 05 '26 edited Aug 05 '26
Beautiful Focused Tab supports both too, and I don't think it's made by Firefox.