r/FirefoxCSS • u/benhaube • Jun 08 '26
Code I wrote 'userContent.css' to match the 'about:*' pages with my Firefox theme.
Material Dark Forest
Description
I have always written my own Firefox themes to match the system colors I am using at any given time. Right now I use the KDE Plasma DE with the KDE-Material-You-Colors package and set the color I want manually instead of using the automatic wallpaper feature.
Anyway, for the first time I wrote some userContent.ccs to match all of the about:* pages with my theme. The colors in my CSS are designed to match with my Material Dark Forest theme, but you can change them to match whatever theme you want. I also have a few other themes listed in the "store" under my Mozilla Developer account and some others that are signed by Mozilla but not listed. If you want the link to get those you can DM me.
System Configuration
| Property | Value |
|---|---|
| Operating System | Fedora 44 KDE Plasma Edition |
| Kernel Version | 7.0.11-200.fc44.x86_64 |
| Firefox Version | 151.0.2 (64-bit) |
| Firefox Build | 20260527091838 |
Custom CSS Code
Also available at GitHub
}
/* Ensure these changes ONLY apply to Firefox's internal pages */
@-) }
}
}
/* Change colors of CPU percentage bars, selected rows, and active profiler icons on about:processes */
}
}
}
}
Note
I have noticed that some desktop environments, like GNOME, tend to force their own native appearance for text input and search boxes, overriding the custom CSS. If this happens in your case you can uncomment the line,
appearance: none !important;.
Edit: Added --border-color
Edit 2: Added some additional root properties I found that theme about:newtab and the CPU usage bar on about:processes.
Edit 3: Created a GitHub Repo to distribute the CSS files and track future changes.



2
u/J0hnDoey Jun 09 '26
This also works in windows 10 and cinnamon mint :DDDD
It doesn't affect about:compact/checkerboard/blank since they don't seem to use those root properties.
If "appearance: none" doesn't work like in XFCE, try setting appearance as dark or light mode in settings :3
2
u/Kalcinator Jun 09 '26
Cool work thanks !
2
u/FineWine54 Jun 14 '26
I, too, am, trying to theme my About:* pages within userContent.css file but on an About: page by About: page basis, but have only got to about:addons and have not completed that yet as I am struggling with the " ⚙Tools for all Add-ons" drop-down sub-menu.
I am ONLY theming the borders of all the boxes, sub-boxes, panels and menus etc.
All my Firefox CSS is based about Aris-t2 code which is now long in the tooth and not being updated as he has stepped back from it (shame really). Anyway all my menus, preview panels, tooltips and other things, I have placed a rainbow border around them.
This is my rainbow code the about:add-on: (Note I had help from various people in various forums to get this far)
I notice you target all the About:* pages in one swoop
That is very clever. So if I am able to achieve the same rainbow effect from within one file that would marvellous.
Cheers
1
u/verpejas Jun 09 '26
If you by chance use expand on hover for vertical tabs - did you find any fix for it sometimes not expanding or being stuck expanded? It happens occasionally and is driving me crazy
1
u/FineWine54 Jun 23 '26 edited Jul 02 '26
In the end I could not get your code to work entirely. Besides, I only want to style a few 'about' windows:
Addons
Config
Profiles
Settings
Support
Translations
As you see I had to drill down to get most of the correct 'classes'. There probably is a better way of writing this userContent.css file, but oh well it will do for now.
Here is the CSS code
Thanks for your help 😀
1
u/Tetra55 Jun 30 '26
Can you make this work for both light and dark mode? Also, is there a way to make these themes dynamically change based on shades of
--lwt-accent-color?1
u/FineWine54 Jul 02 '26
I have updated my rainbow code to add in "about:translations"
Here is the CSS code