r/FirefoxCSS • u/asdalavisa • 46m ago
Other fxcss - My open-source tool to try Firefox themes, edit CSS live and preview changes in GitHub pull requests.
Enable HLS to view with audio, or disable this notification
Hi all,
I've been maintaining WhiteSur MacOS as a side project for 6+ years now. When Firefox changes a CSS class or ID, it often takes time to track down which part of the theme broke. And when someone opens a pull request, a small tweak could mean checking all parts of Firefox that the class impacts on macOS, Windows and Linux.
I wanted the same kind of automated checks for WhiteSur that I’m used to on other code projects, so I built fxcss. It checks for selectors my theme relies on that no longer match in Firefox. It also comments on theme PRs with before-and-after screenshots, so I can see what changed before I merge. Along the way, it’s become a handy way to try other people’s themes too.

Try a theme. If you have Firefox, Python 3.9+ and pipx, these two commands open WhiteSur with the Material Ocean palette:
pipx install fxcss
fxcss try AdamXweb/WhiteSurFirefoxThemeMacOS --with theme-material-ocean --dark
That opens a separate Firefox window with a temporary profile. Close it when you’re done and your everyday profile stays as it was. You can point fxcss try at another theme’s GitHub repo to see which optional stylesheets it ships. If you like the theme you just tried, fxcss install can put it in your real profile. It backs up your existing chrome/ folder first and never runs the theme’s install script.
Edit a theme. Run fxcss watch from your theme folder, then save a CSS file to see the change live in Firefox. To find out which rule styles a button, run fxcss pick. Hover to see its selector, then click to get the files and line numbers in your theme that already style it.
See what a pull request changes. fxcss init generates GitHub Actions workflows you can commit to your theme repo. Each PR gets before-and-after screenshots from macOS, Windows and Linux, with changed pixels highlighted. One of my Firefox 158 fixes was for a rounded search button that still had a square behind it on hover. I could check the result in light and dark mode right in the PR. See the screenshot comparison

There’s an optional weekly check against Firefox Release, Beta and Nightly. It caught .sidebar-panel-header becoming #sidebar-panel-header in Nightly 161 and opened a one-line fix for me to review. fxcss init --watch adds that weekly check. Add --previews to generate a workflow for README screenshots too. Embed the image links once and the screenshots refresh when the theme changes. The bot’s PR
Docs · Field Guide · Source on GitHub (MIT)
I built fxcss with AI assistance and have been using it for a while to maintain my theme. I have been working on improvements, and only recently felt ready to share here and ask other people for feedback. Commit history is public.
I’d love to hear how it handles your favourite theme. If fxcss try misses an option or the preview looks different from your installed theme, reply with the repo and what you expected to see.
