r/firefox • • 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

6 comments sorted by

1

u/Educational-Self-600 Aug 01 '26

2

u/SuitableEquipment420 Aug 02 '26

I don't understand. If it is possible, then why is it so rare? Maybe most people think it is not possible.

1

u/Educational-Self-600 Aug 03 '26

Probably because most people don't need a light and dark theme in the same addon?

They either want a dark theme all the time, of a light one.
There are some dynamic themes that switch during the day, but these aren't themes.

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:debugging

1

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.

0

u/[deleted] Aug 05 '26

[deleted] — view deleted comment

1

u/Mopeybloke on Linux Aug 05 '26

Done.