Repository navigation
Releases
v0.26.0
What's Changed
- Preserve theme data and fix capture, comparison, and workflow correctness by @adamXbot in #85
- Fix exact visual thresholds and expand automation coverage by @adamXbot in #88
- Preserve theme customizations and plan maintenance across repository layouts by @adamXbot in #91
- UI polish overhaul by @adamXbot in #96
- Answer numbered questions with the arrow keys by @adamXbot in #97
- Release on merging the Prepare PR and move pins once PyPI serves it by @adamXbot in #98
- Show colour schemes apart from tweaks in the stylesheet menu by @adamXbot in #99
- Show this machine under the welcome tagline, with an OS symbol by @adamXbot in #100
- Show README install flags in two columns by @adamXbot in #101
- Correct the PR preview docs and cover what was missing by @adamXbot in #102
- Make Pillow a required dependency by @adamXbot in #103
- Fix the profiles crash, the subcommand usage line and a strict startup check by @adamXbot in #105
- Keep the person's own files safe, and finish the terminal polish by @adamXbot in #106
- Give the dialog capture test's Node helper room to start on a slow runner by @adamXbot in #108
Full Changelog: v0.25.0...v0.26.0
v0.25.0
fxcss 0.25.0 captures the parts of Firefox that themes style outside the main window: panels, Settings and hover states. The PR preview comment now shows each distinct change once instead of one picture per view per platform. It also says which older Firefox releases a change stops styling.
-
14 new views, light and dark, each cropped to its own surface so a tab-strip change leaves them alone:
- hovered toolbar buttons;
- the search engine button and its menu;
- the app menu, the extensions panel and the account panel;
- Settings (about:preferences, styled through
userContent.css).
Panels are separate OS windows, so they are taken with a screen capture checked against Firefox's own capture of the nav bar. That needs
fxcss[images], and on macOS screen-recording permission. When a machine can't see Firefox, the panel views are reported as not captured, with the reason, rather than captured wrong. -
Categories. Every view and every change belongs to one of 11 areas: Window, Tabs, Toolbars, Address bar, Find bar, Sidebar, Content, Dialogs, Panels, Settings and Optional stylesheets. A change in a full-window view is filed under the area it is actually in.
-
Distinct changes.
fxcss comparegroups changed pixels into distinct changes:- a page that moved by 1px in 42 views is one change, "moved up 1px";
- the PR preview comment is grouped by category, with one cropped picture per change and the same change on other platforms folded under it;
- every view is still linked to its full before and after.
On WhiteSur's #240, the 55 changed views on macOS come down to 15 changes. The old comment had 147 pictures across three platforms.
-
fxcss support --base OLD --head NEWsays which older Firefox releases a change drops styling for. A rename that only works from Firefox 158 is one example. The result now leads the PR preview comment and the Firefox watch's fix PRs. Set how far back to look withFXCSS_OLDEST_FIREFOXorfxcss init --oldest-firefox(default: the current ESR). -
PR previews can be narrowed with
FXCSS_VARIANTS,FXCSS_VIEWSandFXCSS_MIN_CHANGED_PERCENT, orfxcss init --variants/--views/--min-changed-percent. -
audit --strict-varsno longer counts a custom property as read by Firefox when only DevTools reads it. -
fxcss try --infokeeps a flag's argument, such as-t <name>, when listing a theme README's options.
Upgrade an existing installation with pipx upgrade fxcss, or use pip install "fxcss[images]==0.25.0" in a virtual environment or CI.
Generated workflows keep their version pins until you regenerate them. Run fxcss init with your existing options and --force, then review the diff to keep local edits. A check baseline saved by 0.24 lacks the new views; they are listed as not compared and don't fail the check. Run fxcss check --update-baseline with 0.25 to start comparing them.
The release workflow passed all 26 jobs, including cross-platform browser tests, installed-package checks and the PyPI installability gate. Before tagging, a Firefox compatibility run on the release commit's parent passed on Stable, ESR, Beta and Nightly. The pull request's CI captured every new view on Linux, Linux ESR, Windows and macOS, with each view reacting to its own CSS.
A fresh installation from PyPI showed version 0.25.0 with all 34 standard views. The published wheel and source archive have the same SHA256 hashes as the files the release workflow built and tested.
v0.24.0
fxcss 0.24.0 works with Firefox 159, which is in Beta now and due for release on 6 November. It also stops reporting a browser that failed to start as a problem with your theme.
- Firefox 159 support. Firefox 159 only lets automation reach the browser's own UI when Firefox is started with
MOZ_REMOTE_ALLOW_SYSTEM_ACCESS=1. Without it, every fxcss command failed on Beta and Nightly with "System access is required". fxcss now sets the variable for the Firefox it launches; older versions ignore it. Upgrade before 6 November, or capture, audit and preview workflows will start failing on release Firefox. fxcss auditexits 2 when it cannot run, for example when Firefox fails to start, and prints a one-line error instead of a traceback. Exit status 1 still means the audit ran and found something.--strict-varsnow works together with--no-unused. Before, combining them silently skipped the custom-property check. When--no-unusedhides the full report, the failure lists each property and where it is set.- The generated Firefox watch workflow reads the Firefox version without starting a browser. It opens a "needs attention" issue only for real audit findings, and fails the run when Firefox could not be audited or captured. Before, those runs finished green and filed misleading selector issues.
- CI tests the Python 3.9 minimum on Ubuntu 24.04, because
ubuntu-latest(now 26.04) has no Python 3.9.
Upgrade an existing installation with pipx upgrade fxcss, or use pip install "fxcss[images]==0.24.0" in a virtual environment or CI.
Generated workflows keep their version pins until you regenerate them. Run fxcss init with your existing options and --force, then review the diff to keep local edits. Your theme's workflows need 0.24.0 before Firefox 159 reaches release. A watch that passes --strict-vars may now report custom-property overrides that no longer do anything; it has been asking for that check all along.
The release workflow passed all 26 jobs, including cross-platform browser tests, installed-package checks and the PyPI installability gate. Before tagging, a Firefox compatibility run on the release commit passed on Stable, ESR, Beta and Nightly. That was the first clean Beta and Nightly result since 28 September.
A fresh installation from PyPI showed version 0.24.0. With a theme folder that does not exist, it reported "audit could not complete" with exit status 2 and no traceback. The published wheel and source archive have the same SHA256 hashes as the files the release workflow built and tested.
v0.23.0
fxcss 0.23.0 lets fxcss try test a theme from a folder on your computer or from a private repository, and explains failures instead of printing a traceback.
fxcss try ~/src/my-themetest-drives a local theme folder in a throwaway profile, the same wayinstallalready accepted folders.--refand--commitchoose GitHub versions, so with a folder they are ignored and say so.- Private repositories work when you are signed in with
gh auth login, or whenGITHUB_TOKENorGH_TOKENis set. fxcss asksghfor a token only after an anonymous lookup finds nothing, so public themes need no sign-in. - A missing repository, a private one you can't read, no network, a rejected token or a GitHub rate limit now prints a short explanation and exits with status 2. The explanation names the repository URL to check, where the token came from, and how to pass a folder instead.
- The fxcss.com website moved to its own
websitebranch, which has its own build and deploy commands.mainnow holds only fxcss itself. - Profile and variant documentation is clearer.
Upgrade an existing installation with pipx upgrade fxcss, or use pip install "fxcss[images]==0.23.0" in a virtual environment or CI.
Existing generated workflows keep their version pins until regenerated. Run fxcss init with your existing options and --force, then review the diff to keep local edits.
The release workflow passed all 26 jobs, including cross-platform browser tests, installed-package checks and the PyPI installability gate.
A fresh installation from PyPI showed version 0.23.0. It explained a missing repository with exit status 2 and no traceback, rejected a missing folder, and found a theme in a local folder without launching Firefox. The published wheel and source archive have the same SHA256 hashes as the files the release workflow built and tested.
v0.22.1
fxcss 0.22.1 improves theme checks, scaffolding and shell completion, and restores Firefox 157 sidebar CI checks.
- Saved theme checks show capture progress, clearer completion and interruption status, and links to reports and full screenshots. Interrupted runs keep useful diagnostic evidence without replacing a baseline.
- Windows startup handling waits for a usable browser document before continuing.
--comboand--variantsshell completion handles combinations separated by+while preserving comma-separated captures.fxcss newreports a clean usage error for an existing file and preserves its contents.fxcss init --showcaserecognizesssh://Git remotes and generates the repository's HTTPS URL.- Sidebar state checks use a visible container marker compatible with Firefox's legacy and revamped layouts.
- Website build dependencies have been updated to clear the dependency audit.
Upgrade an existing installation with pipx upgrade fxcss, or use pip install "fxcss[images]==0.22.1" in a virtual environment or CI.
Existing generated workflows keep their version pins until regenerated. Run fxcss init with your existing options and --force, then review the diff to preserve local edits.
The release workflow passed all 26 jobs, including cross-platform browser tests, installed-package checks and the PyPI installability gate. Merged-main CI and website checks also passed.
A fresh installation from PyPI verified the CLI version, generated workflows and version pins, combined stylesheet completion, existing-file preservation and SSH showcase URLs. The published wheel and source archive SHA256 hashes match the tested release artifacts.
v0.22.0
fxcss 0.22 brings saved theme checks, safer profile recovery, and more dependable Firefox screenshots and GitHub previews.
Saved theme checks
Use fxcss check to run selector audits, screenshot capture and baseline comparison from saved project settings. Each run produces a combined report, supports multiple Firefox builds, and checks that every expected browser state was captured. A failed or incomplete run cannot replace a baseline.
Safer theme management
Installation recovery, rollback and removal now preserve profile state through interrupted file operations. Removal keeps edited or added files, and optional stylesheet loading is checked across representative theme layouts and upgrades from the previous release.
Reliable captures and previews
- Linux workflows install and verify the display tools they need.
- Audio and muted-tab screenshots render their CSS states even without an audio device.
- Firefox startup recovery replaces unusable initial tabs and keeps browser automation connected to the selected page.
- Fixture tabs use Firefox's automation navigation commands, which wait for the new browser context and page load instead of starting asynchronous navigation too early.
- Captures wait for the sample pages, tab titles and icons to finish loading, preventing a slow runner from producing stable but incomplete screenshots.
- Startup refreshes discarded tab contexts, replaces temporary tabs that remain unusable, and corrects stale tab-overflow flags before RTL captures while preserving real overflow caused by theme styling.
- Startup checks that Firefox created its initial page document and restarts the temporary browser once if it did not. Failed startup also cleans up its process and profile.
- Windows waits for the Firefox browser process to exit before cleaning up its temporary profile.
- The starter theme supports current Firefox and ESR address-bar styling.
- Generated previews handle newly added and removed variants, validate image artifacts, and include state-specific capture checks.
- Exact selector patches that would duplicate an existing selector are left for manual cleanup, while independent fixes still apply (#26).
The README now explains theme installation, development, Firefox compatibility checks, screenshots and generated GitHub workflows as separate end-user tasks.
Upgrading
Upgrade with pipx upgrade fxcss, or install the pinned image-enabled package with pip install "fxcss[images]==0.22.0" in a virtual environment or CI.
To use older screenshot collections with the new check command, create a fresh baseline with fxcss check --baseline .fxcss/baseline-0.22 --update-baseline, review the images, and save that baseline path in .fxcss.json. Existing directories not managed by check are preserved; compare still works directly with older screenshots.
Existing generated workflows keep their old templates and version pins until updated. Regenerate them with your existing fxcss init options and --force, then review the diff to preserve custom edits.
Verification
The release candidate ran 360 unit tests with one expected platform skip and no failures. All 17 cross-platform CI jobs and Firefox Stable, ESR, Beta and Nightly compatibility checks passed. Six Windows runners completed 54 theme sessions, including three naturally occurring startup failures recovered by the new health check. A real-theme PR verified rendering, 87 published image paths, added-variant handling and cleanup across Windows, macOS and Linux.
Fixes #26. Changes merged in #33 and #34.
The tagged release workflow passed all 25 jobs before publication. A fresh PyPI installation verified the CLI, theme scaffolding, all six generated workflows and image comparison. Published wheel and source-distribution checksums match the tested release artifacts.
v0.21.0
Two fixes about telling the person in front of you what actually happened.
A guess is no longer presented as the change being proposed (#27)
report() rendered RENAMED and SIMILAR through the same loop, in the same before/after diff shape, separated only by a colour that --no-colour strips. In a CI pull request body that left one word distinguishing a fix that was applied from a guess that was not — and the guess arrived pre-formatted as a patch.
A near-miss finding now carries replacement_home, the document its suggested name actually ships in. The pack always knew; nothing asked it:
SIMILAR #placesToolbar → #PlacesToolbar (a guess, not applied)
no exact match; closest live name is #PlacesToolbar
#PlacesToolbar belongs to browser.xhtml
check what reads that name before using it -- a close
spelling can belong to an unrelated element
Suggestions no longer render with +/- lines, and the watch template puts the applied patch under its own heading with the full report folded into a <details>. Exact matches are untouched: still a diff, still patched.
The install prompts say what they did (#28)
Someone typed 20, 4 at the optional-sheets menu and got sheet 4 alone. Their terminal had leaked a Page Up escape into the line, so the first token arrived as \x1b[5~20; int() refused it and it was dropped in silence. Under-selecting on a typo is deliberate — these sheets are written into a profile someone lives in — but the silence turned a right instinct into a wrong result.
Include: ^[[5~20, 4
ignored '\x1b[5~20' — not a number
That is 1 of the 2 you asked for. Retype the whole list, or Enter to keep it.
repr() is deliberate: an escape sequence is shown rather than replayed at the terminal. Out-of-range numbers are reported the same way.
The profile menu now says which profile Firefox holds open right now, and whether one already has a chrome/ or an fxcss theme — the facts that settle "which one is mine" when the (Enter) default is not the profile in daily use. Paths shorten to ~. The chosen profile and the sheets being written are bold, off for non-terminals and under NO_COLOR.
parse_selection keeps its old signature and tests. 274 unit tests; CI green on Linux, macOS and Windows.
v0.20.0
Two fixes to the selector audit, both about not confusing a name with a different name that resembles it.
A name Firefox ships outranks one it merely resembles (#24)
suggest() consulted the shipped-chrome pack last, after both fuzzy matchers, so a token Firefox ships under its own spelling could still be reported as a typo for an unrelated live element. The pack lookup now runs before the fuzzy matchers and after the exact namespace flip: an exact same-name match in the other namespace is direct rename evidence and still wins, but a 0.80-similarity match to a different name never outranks Firefox shipping the literal name.
Also in #24: fxcss upgrade --audit selected upgrade-blockers with != "unresolved", the inverse of what --strict uses, so an offscreen finding — a name the shipped chrome demonstrably still carries — blocked an upgrade. The predicate is now named once in audit.actionable() and called from both places.
A rule scoped to another document is not judged by this window (#25)
@-moz-document binds a block to particular documents, and the audit had no handling for it: extraction was scope-blind, so every token was compared against DOM collected only from the main browser window. Tokens now carry the binding they were written under, and every live-DOM branch is skipped when that binding cannot reach browser.xhtml. The pack is still consulted, since omni.ja carries those documents. A new other-document confidence covers what the pack cannot answer.
Findings are now emitted per (token, scope) rather than per token. write_patch rewrites the exact file:line sites a finding carries, so one verdict spanning occurrences in different documents would rewrite sites the verdict was never about.
The case both came from
WhiteSur's #placesToolbar is the Library window's toolbar in places.xhtml. The live audit never opens that window, so the near-miss branch offered #PlacesToolbar — the main window's bookmarks toolbar, a different element in a different document. Against WhiteSur on Firefox 153 the selector findings drop from two to one and the offscreen tier rises from 78 to 79.
255 unit tests; CI green on Linux, macOS and Windows.
0.19.0 — the dialog, reached three ways
Three additions with one root cause: a theme's window-modal dialog (the quit confirmation) rendered a white body under every dark palette for months, and nothing could have caught it — the dead variable it themed with failed silently, the dialog is its own chrome document no capture view opened, and live sheet swaps never reached it.
New capture view: the window-modal dialog
light-04-dialog / dark-04-dialog join the standard set (now twenty views): the real commonDialog prompt, opened via the same in-window path Firefox's quit confirmation takes, captured fire-and-forget because Marionette dismisses modal dialogs on sight. Byte-identical across repeat captures, and rendered in CI on macOS, Windows and Linux. fxcss init regenerates the publish workflow with the new view allowlisted and titled.
Live sheets reach every chrome document
watch reloads and apply_css used to land on the top browser window only — edits showed everywhere except the dialog, silently, and windows opened after a swap started unthemed. Swaps now walk every chrome docshell, and an observer applies the current sheets to each chrome document as it is created: the same reach an installed userChrome.css has.
The audit reads the chrome Firefox ships
omni.ja is an "optimized" ZIP Python's zipfile refuses; fxcss now walks its local file headers directly and audits your theme against what the build actually consumes, not just what resolves:
- SET, NEVER READ — Firefox still declares the name but nothing reads it; overriding does nothing. A live probe can never see this case.
- DEFINED ONLY — neither declared nor read, with the closest consumed name suggested (
--panel-background→--panel-background-color). - offscreen — a selector absent from every live state but present in shipped markup (dialogs, other platforms), reported with the file that carries it instead of the old "unresolved" shrug.
--strict-varsfor CI; mark deliberate keeps inline with/* fxcss-keep */(an ESR that still reads the name, say).- No second, unthemed Firefox launch when omni.ja is readable.
Run against a real long-lived theme, the new audit flagged 38 dead property overrides — including the one that caused the white dialog — and reclassified 78 selectors from "unresolved" to healthy-with-evidence.
v0.18.0 — upgrade --compare, watch canary, combo proof
Three features, each closing a gap this project hit for real.
upgrade --compare — see it before deciding
An upgrade could already say which selectors the new version loses (--audit) and which files you have edited (always checked). Now it can show you what the theme will look like afterwards: it renders what is installed and what the upgrade would install, diffs them with the same comparison the PR previews use, and prints where the before/after images landed — all before the confirmation prompt.
The installed side renders from your profile's own chrome/ — local edits and carried-over optional sheets included — not from a re-fetch of the recorded version, which could not reproduce either. Needs Pillow and a local Firefox, like shot. Exercised end to end in CI against a live Firefox.
The weekly watch now smoke-tests the capture pipeline
fxcss audit sees selectors; it does not see the capture pipeline. When Firefox 154 moved a module, every preview render broke on release day while beta had carried the breakage for four days — and an audit-only watch had no way to say so. The watch template now runs one standard capture per channel and opens a distinct issue when it fails ("previews will fail when this Firefox reaches release; the fix is usually an fxcss update"), closing it when the channel is clean again.
tweaks calls out combinations that are not real
The static conflict check (install refusing two colour palettes) sees sheets fighting over the same declarations. It cannot see two sheets fighting over the same pixels through different rules. tweaks now judges every blessed --combo against its own parts: if a+b renders pixel-identically to b alone, TWEAKS.md says "not a real combination on this Firefox" instead of documenting it as an option. A fact about pixels, not a heuristic.
Regenerate workflows with fxcss init --force --watch --previews to pick up the watch change.