fxcss 0.25.0__tar.gz → 0.26.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {fxcss-0.25.0 → fxcss-0.26.0}/PKG-INFO +532 -158
- {fxcss-0.25.0 → fxcss-0.26.0}/README.md +530 -156
- {fxcss-0.25.0 → fxcss-0.26.0}/fxcss/__init__.py +1 -1
- {fxcss-0.25.0 → fxcss-0.26.0}/fxcss/adopt.py +8 -1
- {fxcss-0.25.0 → fxcss-0.26.0}/fxcss/audit.py +341 -190
- {fxcss-0.25.0 → fxcss-0.26.0}/fxcss/check.py +15 -1
- fxcss-0.26.0/fxcss/checklist.py +354 -0
- fxcss-0.26.0/fxcss/cli.py +3638 -0
- {fxcss-0.25.0 → fxcss-0.26.0}/fxcss/compare.py +89 -9
- {fxcss-0.25.0 → fxcss-0.26.0}/fxcss/complete.py +2 -1
- {fxcss-0.25.0 → fxcss-0.26.0}/fxcss/core.py +328 -60
- fxcss-0.26.0/fxcss/fetch.py +949 -0
- {fxcss-0.25.0 → fxcss-0.26.0}/fxcss/install.py +670 -75
- fxcss-0.26.0/fxcss/inventory.py +478 -0
- fxcss-0.26.0/fxcss/layout.py +768 -0
- {fxcss-0.25.0 → fxcss-0.26.0}/fxcss/probe.py +1 -1
- fxcss-0.26.0/fxcss/prompt.py +348 -0
- {fxcss-0.25.0 → fxcss-0.26.0}/fxcss/scaffold.py +112 -36
- {fxcss-0.25.0 → fxcss-0.26.0}/fxcss/sheets.py +65 -6
- fxcss-0.26.0/fxcss/style.py +582 -0
- {fxcss-0.25.0 → fxcss-0.26.0}/fxcss/support.py +20 -19
- {fxcss-0.25.0 → fxcss-0.26.0}/fxcss/templates/pr-preview-publish.yml +17 -3
- {fxcss-0.25.0 → fxcss-0.26.0}/fxcss/templates/pr-preview.yml +2 -3
- {fxcss-0.25.0 → fxcss-0.26.0}/fxcss/templates/readme-previews.yml +2 -3
- {fxcss-0.25.0 → fxcss-0.26.0}/fxcss/templates/showcase.yml +9 -5
- {fxcss-0.25.0 → fxcss-0.26.0}/fxcss/tweaks.py +14 -5
- {fxcss-0.25.0 → fxcss-0.26.0}/fxcss.egg-info/PKG-INFO +532 -158
- {fxcss-0.25.0 → fxcss-0.26.0}/fxcss.egg-info/SOURCES.txt +28 -0
- {fxcss-0.25.0 → fxcss-0.26.0}/pyproject.toml +7 -4
- fxcss-0.26.0/tests/test_audit_sheets_regressions.py +140 -0
- fxcss-0.26.0/tests/test_capture_names.py +249 -0
- fxcss-0.26.0/tests/test_capture_state_checks.py +325 -0
- fxcss-0.26.0/tests/test_compare_resolution.py +238 -0
- fxcss-0.26.0/tests/test_connection_lifecycle.py +201 -0
- fxcss-0.26.0/tests/test_data_safety.py +612 -0
- fxcss-0.26.0/tests/test_dialog_capture.py +124 -0
- fxcss-0.26.0/tests/test_discovery_tweaks_catalogue_regressions.py +156 -0
- fxcss-0.26.0/tests/test_flag_columns.py +127 -0
- fxcss-0.26.0/tests/test_install_fidelity.py +379 -0
- fxcss-0.26.0/tests/test_inventory.py +217 -0
- fxcss-0.26.0/tests/test_layout.py +250 -0
- fxcss-0.26.0/tests/test_maintenance_cli.py +498 -0
- fxcss-0.26.0/tests/test_maintenance_preservation.py +254 -0
- fxcss-0.26.0/tests/test_prompt.py +413 -0
- fxcss-0.26.0/tests/test_release_orchestration.py +516 -0
- fxcss-0.26.0/tests/test_review_maintenance.py +280 -0
- fxcss-0.26.0/tests/test_sheet_groups.py +195 -0
- fxcss-0.26.0/tests/test_smoke_regressions.py +287 -0
- fxcss-0.26.0/tests/test_support_scaffold_regressions.py +98 -0
- fxcss-0.26.0/tests/test_terminal_style.py +203 -0
- fxcss-0.26.0/tests/test_threshold_and_variant_migration.py +151 -0
- {fxcss-0.25.0 → fxcss-0.26.0}/tests/test_units.py +243 -46
- fxcss-0.26.0/tests/test_welcome_context.py +303 -0
- {fxcss-0.25.0 → fxcss-0.26.0}/tests/test_workflows.py +127 -37
- fxcss-0.25.0/fxcss/cli.py +0 -2321
- fxcss-0.25.0/fxcss/fetch.py +0 -527
- {fxcss-0.25.0 → fxcss-0.26.0}/LICENSE +0 -0
- {fxcss-0.25.0 → fxcss-0.26.0}/fxcss/__main__.py +0 -0
- {fxcss-0.25.0 → fxcss-0.26.0}/fxcss/capture.py +0 -0
- {fxcss-0.25.0 → fxcss-0.26.0}/fxcss/catalogue.py +0 -0
- {fxcss-0.25.0 → fxcss-0.26.0}/fxcss/omni.py +0 -0
- {fxcss-0.25.0 → fxcss-0.26.0}/fxcss/templates/firefox-watch.yml +0 -0
- {fxcss-0.25.0 → fxcss-0.26.0}/fxcss/templates/pr-preview-cleanup.yml +0 -0
- {fxcss-0.25.0 → fxcss-0.26.0}/fxcss/templates/starter/chrome/userChrome.css +0 -0
- {fxcss-0.25.0 → fxcss-0.26.0}/fxcss/templates/starter/custom/accent-red.css +0 -0
- {fxcss-0.25.0 → fxcss-0.26.0}/fxcss.egg-info/dependency_links.txt +0 -0
- {fxcss-0.25.0 → fxcss-0.26.0}/fxcss.egg-info/entry_points.txt +0 -0
- {fxcss-0.25.0 → fxcss-0.26.0}/fxcss.egg-info/requires.txt +1 -1
- {fxcss-0.25.0 → fxcss-0.26.0}/fxcss.egg-info/top_level.txt +0 -0
- {fxcss-0.25.0 → fxcss-0.26.0}/setup.cfg +0 -0
- {fxcss-0.25.0 → fxcss-0.26.0}/tests/test_capture_coverage.py +0 -0
- {fxcss-0.25.0 → fxcss-0.26.0}/tests/test_checks.py +0 -0
- {fxcss-0.25.0 → fxcss-0.26.0}/tests/test_patch_duplicates.py +0 -0
- {fxcss-0.25.0 → fxcss-0.26.0}/tests/test_profile_safety.py +0 -0
- {fxcss-0.25.0 → fxcss-0.26.0}/tests/test_support.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fxcss
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.26.0
|
|
4
4
|
Summary: Live-reload, inspect and screenshot-test Firefox userChrome.css themes
|
|
5
5
|
Author: AdamXweb
|
|
6
6
|
License: MIT
|
|
@@ -17,8 +17,8 @@ Classifier: Topic :: Software Development :: Testing
|
|
|
17
17
|
Requires-Python: >=3.9
|
|
18
18
|
Description-Content-Type: text/markdown
|
|
19
19
|
License-File: LICENSE
|
|
20
|
+
Requires-Dist: pillow>=10.1
|
|
20
21
|
Provides-Extra: images
|
|
21
|
-
Requires-Dist: pillow>=10.1; extra == "images"
|
|
22
22
|
Dynamic: license-file
|
|
23
23
|
|
|
24
24
|
|
|
@@ -38,11 +38,10 @@ with visual previews and Firefox compatibility checks.
|
|
|
38
38
|
## Getting started
|
|
39
39
|
|
|
40
40
|
You need **Python 3.9+** and an installed **Firefox** on macOS, Windows or
|
|
41
|
-
Linux. Install fxcss
|
|
42
|
-
profile:
|
|
41
|
+
Linux. Install fxcss, then try a theme in a disposable profile:
|
|
43
42
|
|
|
44
43
|
```bash
|
|
45
|
-
pipx install
|
|
44
|
+
pipx install fxcss
|
|
46
45
|
fxcss try AdamXweb/WhiteSurFirefoxThemeMacOS
|
|
47
46
|
```
|
|
48
47
|
|
|
@@ -108,40 +107,100 @@ is never touched — close the window and nothing remains.
|
|
|
108
107
|
It reports what it found before doing anything:
|
|
109
108
|
|
|
110
109
|
```
|
|
111
|
-
|
|
112
|
-
MacOS Big Sur like theme for Firefox on MacOS & Windows.
|
|
113
|
-
latest release v1.6.3 (2025-07-26)
|
|
114
|
-
latest commit b10c574 (2025-07-26) Merge pull request #167 …
|
|
110
|
+
fxcss try AdamXweb/WhiteSurFirefoxThemeMacOS
|
|
115
111
|
|
|
116
|
-
|
|
117
|
-
|
|
112
|
+
AdamXweb/WhiteSurFirefoxThemeMacOS ★619 MIT
|
|
113
|
+
MacOS Big Sur like theme for Firefox on MacOS & Windows. Make your Firefox look like Safari.
|
|
114
|
+
latest release v2.1.0 (2026-10-28)
|
|
115
|
+
latest commit 68f8699 (2026-11-10) fix: align the toolbar and close the tab bar gap …
|
|
118
116
|
|
|
119
|
-
|
|
120
|
-
it installs the files itself, which is all those scripts do.
|
|
117
|
+
fetching release v2.1.0 …
|
|
121
118
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
119
|
+
layout chrome/ at the repository root 72 stylesheets, 377 KB
|
|
120
|
+
loads 35 stylesheets 29 browser-window, 2 web-content, 4 shared
|
|
121
|
+
user hook customChrome.css not shipped, as intended
|
|
122
|
+
installer install.sh fxcss copies the files itself and never runs it
|
|
123
|
+
|
|
124
|
+
Optional stylesheets 30 · layer any on with --with name,name
|
|
125
|
+
Tweaks
|
|
126
|
+
compact-tabs hideextension increase-contrast singletabhidden tabs-swapclose
|
|
127
|
+
enabletabview highlight-tab noidentity standard-urlbar windows-swapclose
|
|
128
|
+
|
|
129
|
+
Colour schemes · pick one
|
|
130
|
+
theme-ayu-mirage theme-github-dark theme-nord
|
|
131
|
+
theme-catppuccin-frappe theme-gruvbox-dark theme-one-dark
|
|
132
|
+
…
|
|
133
|
+
|
|
134
|
+
Setup beyond the files 1 automatic · 3 to check
|
|
135
|
+
✓ automatic 3 prefs in configuration/user.js in fxcss's own block
|
|
136
|
+
! check Firefox's native vertical tabs
|
|
137
|
+
a setting in Firefox's own sidebar options
|
|
125
138
|
…
|
|
126
139
|
|
|
127
|
-
|
|
128
|
-
|
|
140
|
+
README install flags as the README words them, for its own script; fxcss never runs it
|
|
141
|
+
-c Left hand side tab close button -v Re-enables the tabview button
|
|
142
|
+
-p Makes tabs height compact like… -t <name> Colour theme (see Colour themes below)
|
|
143
|
+
…
|
|
129
144
|
```
|
|
130
145
|
|
|
131
146
|
Releases are preferred over branch tips, since that is what the author blessed;
|
|
132
147
|
`--commit` takes the latest commit instead, and `--ref` takes any tag, branch or
|
|
133
|
-
SHA.
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
148
|
+
SHA. A browser URL for a branch or folder
|
|
149
|
+
(`https://github.com/owner/theme/tree/photon-style/themes/one`) is read as
|
|
150
|
+
meaning that branch and that folder, and the branch is then *tracked* rather
|
|
151
|
+
than pinned. `--with name,name` layers on the theme's optional stylesheets so
|
|
152
|
+
you can see a variant without hunting through install flags. `--shot dir`
|
|
153
|
+
captures the standard screenshots instead of opening a window, and `--keep dir`
|
|
154
|
+
leaves the download behind so you can start editing it with `watch`.
|
|
155
|
+
|
|
156
|
+
#### How the theme is found
|
|
137
157
|
|
|
138
|
-
|
|
158
|
+
Theme repositories are laid out in more ways than `chrome/userChrome.css`.
|
|
159
|
+
`try`, `install` and `upgrade` share one *plan* for reading a source tree, and
|
|
160
|
+
say which layout they found:
|
|
161
|
+
|
|
162
|
+
| Layout | Example | What happens |
|
|
163
|
+
| --- | --- | --- |
|
|
164
|
+
| `chrome/userChrome.css` at the root | WhiteSur Safari, ShyFox | Used where it is. |
|
|
165
|
+
| `userChrome.css` at the root, parts beside it | ArcWTF, Foxlim, the GNOME theme | The folder *is* `chrome/`; documentation, licences, screenshots and install scripts are left out unless a stylesheet refers to them. |
|
|
166
|
+
| Only `userContent.css` | GlassyFox | Installed as a content-only theme; the browser window is left alone. |
|
|
167
|
+
| One theme in a subfolder | `firefox/chrome/…`, `NewFox/profile/chrome/…` | Found, and the folder recorded so upgrades read the same place. |
|
|
168
|
+
| Several themes side by side | `1.Normal/`, `2.WithTST/`; Simplify's colour families | A real choice: a menu at a terminal, otherwise an error listing the `--subpath` values. Folders that look historical (`old/`, `Old Versions/`, screenshots) or belong to Thunderbird are listed but not chosen. |
|
|
169
|
+
| `src/userChrome-<edition>.css` files | WhiteSur | Named editions, chosen with `--subpath src/userChrome-WhiteSur.css`; a sibling `common/` folder is merged in the way the theme's installer does, by copying. |
|
|
170
|
+
| A committed `chrome.zip` | Win 7 Aero | Unpacked as data within size limits and read like any other tree. `.rar`/`.7z` are reported as unsupported with the reason. |
|
|
171
|
+
| No entry stylesheet at all | Brave-Fox, Firefox-Onebar | Unsupported, naming the sheets a README might tell you to `@import`; `--entry path.css` generates a `userChrome.css` that imports one. |
|
|
172
|
+
|
|
173
|
+
The planner never selects a directory outside the download, and nothing from
|
|
174
|
+
the download is executed: a theme whose entry sheet imports files the source
|
|
175
|
+
does not contain (Material Fox's uncompiled `user-chrome.css`) is reported as
|
|
176
|
+
needing a build rather than installed half-empty. `install` stops there unless
|
|
177
|
+
`--force`; `try` only warns.
|
|
178
|
+
|
|
179
|
+
`try --info` ends with a **setup checklist**: what the theme needs beyond its
|
|
180
|
+
files, read from the files it ships and its README — preference files outside
|
|
181
|
+
`configuration/user.js` (with their pref names), `.uc.js` scripts that need a
|
|
182
|
+
userChrome.js loader, extension settings to import, fonts, forks and platform
|
|
183
|
+
effects. Each item is *required*, *optional* or *unknown*, with the evidence.
|
|
184
|
+
Nothing on it is applied automatically; see `install --prefs` below.
|
|
185
|
+
|
|
186
|
+
#### Private repositories, other hosts and local folders
|
|
139
187
|
|
|
140
188
|
A private repository looks exactly like a missing one to anyone who cannot read
|
|
141
189
|
it. fxcss sends `GITHUB_TOKEN` or `GH_TOKEN` when either is set; otherwise, if a
|
|
142
|
-
repository is not publicly visible
|
|
143
|
-
(`gh auth token`) and tries again.
|
|
144
|
-
|
|
190
|
+
repository is not publicly visible or an anonymous request hits GitHub's rate
|
|
191
|
+
limit, it asks the GitHub CLI for its login (`gh auth token`) and tries again.
|
|
192
|
+
So after `gh auth login`, private themes your account can read work like public
|
|
193
|
+
ones and a signed-in person is never told to sign in. The token is only ever
|
|
194
|
+
sent to GitHub's own hosts — never to another host, and never across a redirect
|
|
195
|
+
that leaves GitHub — and never appears in a message.
|
|
196
|
+
|
|
197
|
+
Themes on **Codeberg**, **git.gay** (and other Forgejo instances listed in
|
|
198
|
+
`fetch.HOSTS`) and **GitLab** can be tried, installed and upgraded from their
|
|
199
|
+
URLs; their public APIs answer the same questions. `adopt` compares against
|
|
200
|
+
GitHub's tree API and says so when it meets another host. A repository that
|
|
201
|
+
has **moved** on GitHub resolves to its new owner/name, is downloaded from
|
|
202
|
+
there (the old name still answers on the API but not on the download host) and
|
|
203
|
+
is recorded under the new name.
|
|
145
204
|
|
|
146
205
|
A theme that is not on GitHub, or not pushed yet, can be tried from its folder:
|
|
147
206
|
`fxcss try ~/src/my-theme`. The folder is read where it is and never modified;
|
|
@@ -181,6 +240,8 @@ profile.
|
|
|
181
240
|
fxcss install owner/theme # into your default profile
|
|
182
241
|
fxcss install owner/theme --with compact-tabs # optional sheets, permanently
|
|
183
242
|
fxcss install ~/src/my-theme # a local checkout works too
|
|
243
|
+
fxcss install owner/theme --subpath 2.WithTST # one of several editions
|
|
244
|
+
fxcss install owner/theme --prefs user.js # also a shipped preference file
|
|
184
245
|
fxcss install --list-profiles # see what it found first
|
|
185
246
|
```
|
|
186
247
|
|
|
@@ -213,27 +274,67 @@ list of hashed directory names — and installing into the wrong one looks
|
|
|
213
274
|
exactly like the theme not working:
|
|
214
275
|
|
|
215
276
|
```
|
|
216
|
-
|
|
217
|
-
1. default-release
|
|
218
|
-
|
|
219
|
-
|
|
277
|
+
Which profile? 3 found in ~/Library/Application Support/Firefox/Profiles
|
|
278
|
+
› 1. default-release Release 8f2b1a.default-release (Enter)
|
|
279
|
+
2. dev-edition-default Developer Edition c41d9e.dev-edition-default
|
|
280
|
+
3. work unrecognised 7ab3.work
|
|
281
|
+
|
|
282
|
+
Which one? ↑↓ or 1-3 [1]
|
|
220
283
|
```
|
|
221
284
|
|
|
222
285
|
The label comes from the directory suffix Firefox itself assigns, so a profile
|
|
223
|
-
you named yourself reads `
|
|
286
|
+
you named yourself reads `unrecognised` rather than being guessed at.
|
|
224
287
|
|
|
225
288
|
Run it without `--with` and it offers the theme's optional stylesheets rather
|
|
226
289
|
than leaving you to find them in the repository:
|
|
227
290
|
|
|
228
291
|
```
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
292
|
+
Optional stylesheets 30 · pick any
|
|
293
|
+
Tweaks
|
|
294
|
+
1✓ compact-tabs 5. increase-contrast 9. tabs-swapclose
|
|
295
|
+
2. enabletabview 6. noidentity 10. windows-swapclose
|
|
296
|
+
…
|
|
297
|
+
|
|
298
|
+
Colour schemes · pick one
|
|
299
|
+
11. theme-ayu-mirage 21. theme-material-ocean
|
|
232
300
|
…
|
|
233
|
-
|
|
234
|
-
|
|
301
|
+
15. theme-catppuccin-mocha › 25✓ theme-nord
|
|
302
|
+
…
|
|
303
|
+
|
|
304
|
+
Include which? ↑↓←→ and space to tick, or e.g. 1,3 or all [1,25]
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
When a theme ships both, colour schemes (named `theme-…`, or after a palette
|
|
308
|
+
such as `nord` or `catppuccin-mocha`) are listed apart from the tweaks; any
|
|
309
|
+
other theme gets one list. The grouping is only how the menu reads: the
|
|
310
|
+
sheets are numbered straight through, and what you pick is imported in the
|
|
311
|
+
theme's own order. "Pick one" appears when every pair of the theme's colour
|
|
312
|
+
schemes clashes in the way described below, so installing any two of them
|
|
313
|
+
would be refused. Pick two anyway and the menu asks which one to keep:
|
|
314
|
+
|
|
315
|
+
```
|
|
316
|
+
Keep which colour scheme? both set the same 110 colours; only one can take effect
|
|
317
|
+
1. theme-catppuccin-mocha ██ #11111b ██ #cdd6f4 ██ #cba6f7 ██ #6c7086
|
|
318
|
+
› 2. theme-nord ██ #242933 ██ #eceff4 ██ #88c0d0 ██ #5e81ac (Enter)
|
|
319
|
+
|
|
320
|
+
Which one? ↑↓ or 1-2 [2]
|
|
235
321
|
```
|
|
236
322
|
|
|
323
|
+
Each row shows the colours that sheet would set, most-used first, as a
|
|
324
|
+
swatch in that colour and its hex code (just the hex code where the terminal
|
|
325
|
+
cannot show the colour). Enter keeps the one that loads last, which is the one
|
|
326
|
+
that would have won anyway.
|
|
327
|
+
|
|
328
|
+
Every numbered question answers to the keyboard at a terminal. ↑ and ↓ move
|
|
329
|
+
the `›` (← and → cross columns), Space ticks a stylesheet, Enter takes the
|
|
330
|
+
answer and Esc stops. Typing the number works as it always has, and moves the
|
|
331
|
+
pointer as you type. Through a pipe, in CI, with `TERM=dumb` or in a terminal
|
|
332
|
+
narrower than 60 columns, the question is a plain typed prompt; set
|
|
333
|
+
`FXCSS_PLAIN_PROMPTS=1` to keep it that way everywhere, for example for a
|
|
334
|
+
screen reader that copes badly with lines redrawn in place. Each question
|
|
335
|
+
ends by naming the option that skips it next time (`--profile`, `--with`,
|
|
336
|
+
`--firefox`, `--subpath`, `--ref` or `--commit`).
|
|
337
|
+
|
|
237
338
|
#### Options that cancel each other out
|
|
238
339
|
|
|
239
340
|
Some of a theme's optional sheets are alternatives rather than additions.
|
|
@@ -283,10 +384,11 @@ looking for, and equally the branch can be mid-rewrite, so neither is right to
|
|
|
283
384
|
assume:
|
|
284
385
|
|
|
285
386
|
```
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
387
|
+
Which version? the default branch has moved on since the latest release
|
|
388
|
+
1. release v2.0 2025-01-03 what the author last published (Enter)
|
|
389
|
+
2. latest commit on master 2026-08-14 newer than the release — fix tab colours
|
|
390
|
+
|
|
391
|
+
Which one? 1-2 [1]
|
|
290
392
|
```
|
|
291
393
|
|
|
292
394
|
Scripts and CI never see any of these prompts: without a terminal the release
|
|
@@ -297,13 +399,42 @@ The install is what a theme's install script does, done carefully:
|
|
|
297
399
|
- the complete replacement is prepared before your existing `chrome/` moves
|
|
298
400
|
to a timestamped `chrome.backup-*` sibling; a failed swap restores it;
|
|
299
401
|
- any `--with` optional sheets go where the theme's own `@import`s expect
|
|
300
|
-
them, or load after the base theme through an import-only wrapper;
|
|
402
|
+
them, or load after the base theme through an import-only wrapper; the
|
|
403
|
+
local files each sheet refers to (nested `@import`s, images, fonts) come
|
|
404
|
+
along to the same relative place, so it looks as it did in `fxcss try`.
|
|
405
|
+
Files outside the theme, or where the theme already installed a different
|
|
406
|
+
file, are not copied, and the install says so;
|
|
301
407
|
- `toolkit.legacyUserProfileCustomizations.stylesheets` is enabled in
|
|
302
408
|
`user.js` — inside a clearly marked block, so it can be removed cleanly —
|
|
303
|
-
together with any `configuration/user.js` the theme ships
|
|
409
|
+
together with any `configuration/user.js` the theme ships, whose pref names
|
|
410
|
+
are listed before you confirm. Everything outside the block is kept byte
|
|
411
|
+
for byte;
|
|
412
|
+
- shipped preference files elsewhere (a root `user.js`, `config/user.js`,
|
|
413
|
+
`prefs/recommended.js`) appear on the setup checklist with their pref
|
|
414
|
+
names and are **not** applied unless you say `--prefs user.js`; then they
|
|
415
|
+
join the same removable block, as written, and upgrades carry the choice
|
|
416
|
+
forward (stopping if the file disappears upstream). Nothing is ever applied
|
|
417
|
+
from README prose or from `-moz-pref()` toggles in the CSS;
|
|
304
418
|
- a manifest (`chrome/fxcss-install.json`) records every file written, its
|
|
305
|
-
sha256,
|
|
306
|
-
|
|
419
|
+
sha256, where the theme came from — which host, repo and ref, whether that
|
|
420
|
+
ref was a release or a branch, and the full commit a branch pointed at —
|
|
421
|
+
plus the layout selected, the preference files applied and each optional
|
|
422
|
+
sheet's path in the repository.
|
|
423
|
+
|
|
424
|
+
When several options have the same name, select their repository paths, for
|
|
425
|
+
example `--with custom/tabs.css,optional/tabs.css`. Each retains its identity
|
|
426
|
+
through upgrades. Options loaded after the base get separate dependency trees
|
|
427
|
+
when combined. If two selected files need the same native import slot, or
|
|
428
|
+
would overwrite different contents already there, installation refuses before
|
|
429
|
+
changing the profile, including with `--force`.
|
|
430
|
+
|
|
431
|
+
Tracked branches are downloaded at the resolved commit SHA, and adoption
|
|
432
|
+
compares that exact tree. If the full SHA cannot be read, fxcss stops instead
|
|
433
|
+
of recording a branch name as a known revision.
|
|
434
|
+
|
|
435
|
+
Installing over a profile fxcss already manages keeps the files you added
|
|
436
|
+
there active (see [upgrade](#fxcss-upgrade)); installing over a `chrome/`
|
|
437
|
+
folder fxcss did not write moves it aside whole, as the origin backup.
|
|
307
438
|
|
|
308
439
|
Restart Firefox after installation; it reads `userChrome.css` at startup.
|
|
309
440
|
See [uninstall](#fxcss-uninstall) to remove a theme later.
|
|
@@ -330,17 +461,30 @@ guess — it is the same bytes:
|
|
|
330
461
|
```console
|
|
331
462
|
$ fxcss adopt AdamXweb/WhiteSurFirefoxThemeMacOS
|
|
332
463
|
|
|
333
|
-
|
|
464
|
+
fxcss adopt default-release
|
|
334
465
|
|
|
335
|
-
|
|
466
|
+
profile default-release
|
|
467
|
+
~/Library/Application Support/Firefox/Profiles/8f2h1kqp.default-release
|
|
468
|
+
|
|
469
|
+
comparing 148 files against AdamXweb/WhiteSurFirefoxThemeMacOS …
|
|
336
470
|
v2.0.0: 129/135 files match, 6 edited, 7 added
|
|
337
471
|
v1.6.3: 114/132 files match, 18 edited, 10 added
|
|
338
472
|
|
|
339
473
|
best match: v2.0.0: 129/135 files match, 6 edited, 7 added
|
|
340
474
|
Recorded as that version plus local differences, so an upgrade knows
|
|
341
475
|
not to overwrite them without being told.
|
|
476
|
+
|
|
477
|
+
backup the theme as it is now, kept as chrome.backup-20260817014143
|
|
478
|
+
yours 7 files that version does not ship, kept as your own across upgrades
|
|
479
|
+
|
|
480
|
+
✓ Recorded 135 files as AdamXweb/WhiteSurFirefoxThemeMacOS@v2.0.0
|
|
481
|
+
fxcss upgrade can now update it, and fxcss uninstall puts this back.
|
|
342
482
|
```
|
|
343
483
|
|
|
484
|
+
Files in `chrome/` that the matched version does not contain are recorded as
|
|
485
|
+
yours, not the theme's: upgrades carry them across and `uninstall` leaves them
|
|
486
|
+
where they are.
|
|
487
|
+
|
|
344
488
|
Comparison uses GitHub's git-tree API rather than downloading anything, so
|
|
345
489
|
checking ten versions costs ten small requests instead of ten archives — and
|
|
346
490
|
archives are the first thing GitHub rate-limits.
|
|
@@ -349,7 +493,15 @@ Naming the repository is usually necessary. `adopt` checks `chrome/` for a git
|
|
|
349
493
|
remote (definitive — someone cloned it there) and for GitHub URLs in the
|
|
350
494
|
theme's own files (a hint worth confirming), but plenty of themes leave no
|
|
351
495
|
trace at all once installed: WhiteSur's `chrome/` contains no URL anywhere.
|
|
352
|
-
That is normal, not a failure, and the message says so.
|
|
496
|
+
That is normal, not a failure, and the message says so. A repository that was
|
|
497
|
+
only *mentioned* — a credit, a palette, an upstream — is recorded only when at
|
|
498
|
+
least half of a version's files match; otherwise `adopt` refuses and asks you
|
|
499
|
+
to name the repository yourself, because recording the wrong project hands
|
|
500
|
+
every later upgrade to it.
|
|
501
|
+
|
|
502
|
+
A match against a branch records the commit the branch pointed at, not its
|
|
503
|
+
name, so `upgrade --check` straight after adopting an exact branch tip says
|
|
504
|
+
"up to date" instead of announcing the same commit as an update.
|
|
353
505
|
|
|
354
506
|
**Nothing is installed or replaced.** The `chrome/` already there is *copied*
|
|
355
507
|
to a `chrome.backup-*` and then described, so `uninstall` has somewhere to put
|
|
@@ -385,22 +537,23 @@ names:
|
|
|
385
537
|
```console
|
|
386
538
|
$ fxcss profiles --check
|
|
387
539
|
|
|
388
|
-
|
|
540
|
+
fxcss profiles
|
|
541
|
+
|
|
542
|
+
Firefox profiles
|
|
543
|
+
2 in ~/Library/Application Support/Firefox/Profiles
|
|
389
544
|
|
|
390
|
-
● default-release
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
update v2.0.0 available — 2026-08-16
|
|
545
|
+
● default-release Release 8f2h1kqp.default-release
|
|
546
|
+
theme AdamXweb/WhiteSurFirefoxThemeMacOS @ v2.0.0
|
|
547
|
+
installed 2026-08-14 09:12 tracking the release
|
|
548
|
+
sheets theme-nord
|
|
549
|
+
files 145 ! 1 edited since install, 1 added by hand
|
|
550
|
+
update v2.1.0 available 2026-10-28
|
|
397
551
|
|
|
398
|
-
dev-edition-default
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
`fxcss install` here would back this up first
|
|
552
|
+
dev-edition-default Developer Edition p93kd0zx.dev-edition-default
|
|
553
|
+
theme ! installed by hand chrome/ holds 41 files
|
|
554
|
+
fxcss adopt takes it over; fxcss install would replace it, backing it up first
|
|
402
555
|
|
|
403
|
-
● the profile Firefox opens
|
|
556
|
+
● opens by default: the profile Firefox opens on its own
|
|
404
557
|
```
|
|
405
558
|
|
|
406
559
|
Three states, kept distinct on purpose: a profile fxcss installed into and can
|
|
@@ -409,12 +562,15 @@ profile with no theme at all. Only the first can be described in detail; for
|
|
|
409
562
|
the second, all fxcss honestly knows is that files are there and that
|
|
410
563
|
installing would move them aside.
|
|
411
564
|
|
|
412
|
-
`--check` asks
|
|
565
|
+
`--check` asks the host once per theme, not once per profile, and compares like
|
|
413
566
|
for like: an install tracking releases is measured against the newest tag, one
|
|
414
|
-
tracking a branch against the commit that branch points at now
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
567
|
+
tracking a branch against the commit that branch points at now (a branch other
|
|
568
|
+
than the default is looked up by name). An install pinned with `--ref` reports
|
|
569
|
+
as pinned rather than as behind. A release-tracked install that is current
|
|
570
|
+
while the default branch has moved on says both — and stays on releases;
|
|
571
|
+
`upgrade --commit` is the way to follow the branch instead. Where the manifest
|
|
572
|
+
predates fxcss recording which of those applied, it says so instead of
|
|
573
|
+
guessing — "up to date" is never printed unless it was actually checked.
|
|
418
574
|
|
|
419
575
|
The same reservation covers local edits: installs from before 0.16 recorded no
|
|
420
576
|
file hashes, so `fxcss profiles` reports them as *not checked for edits*
|
|
@@ -436,15 +592,27 @@ fxcss rollback # …and back again
|
|
|
436
592
|
tag, one that followed a branch moves to that branch's current commit, and one
|
|
437
593
|
pinned with `--ref` does not move at all unless you say so.
|
|
438
594
|
|
|
439
|
-
It stops rather than surprise you, in
|
|
595
|
+
It stops rather than surprise you, in four places:
|
|
440
596
|
|
|
441
597
|
- **Files you edited yourself.** Every install records a sha256 per file, so
|
|
442
598
|
an upgrade knows which ones you have since changed and refuses to write over
|
|
443
|
-
them until `--force`.
|
|
599
|
+
them until `--force`.
|
|
600
|
+
- **Files you added.** A stylesheet you dropped into `chrome/` — imported
|
|
601
|
+
from `customChrome.css`, say — is carried into the new tree so it stays
|
|
602
|
+
*active*, not merely kept in the backup where it would stop applying.
|
|
603
|
+
`customChrome.css` itself counts as yours once you have written in it, even
|
|
604
|
+
though fxcss created the empty file. The
|
|
605
|
+
manifest lists them under `user_files`. If the new version ships a file at
|
|
606
|
+
the same path with different contents, that is a collision: the upgrade
|
|
607
|
+
stops before anything moves and lists the paths; `--force` installs the
|
|
608
|
+
theme's copies and leaves yours in the backup, recorded as `displaced`.
|
|
444
609
|
- **Options that vanished.** If you installed `--with theme-nord` and the new
|
|
445
610
|
version renamed or dropped that sheet, the `@import` would simply stop
|
|
446
611
|
resolving and the option would turn itself off. `upgrade` names the loss and
|
|
447
|
-
makes you choose instead.
|
|
612
|
+
makes you choose instead. Sheets are matched by their path in the repository
|
|
613
|
+
first, so a sheet that only exists inside `chrome/extras/` survives an
|
|
614
|
+
upgrade as reliably as one in `custom/`. The same goes for preference files
|
|
615
|
+
chosen with `--prefs`.
|
|
448
616
|
- **Selectors the new version needs and your Firefox lacks** — with `--audit`,
|
|
449
617
|
which runs the same check as [`fxcss audit`](#fxcss-audit) against the
|
|
450
618
|
fetched copy *before* anything is installed.
|
|
@@ -455,31 +623,45 @@ a re-fetch of what the manifest says — and diffs them before the confirmation
|
|
|
455
623
|
prompt, printing where the before/after images landed. It completes the three
|
|
456
624
|
questions an upgrade can answer about a theme with no API: do the selectors
|
|
457
625
|
still exist (`--audit`), has the user edited anything (always checked), and
|
|
458
|
-
what actually changes on screen (`--compare`). Needs
|
|
459
|
-
|
|
626
|
+
what actually changes on screen (`--compare`). Needs a local Firefox, like
|
|
627
|
+
`shot`.
|
|
460
628
|
|
|
461
629
|
`--check` changes nothing and answers with its exit code, for cron, launchd or
|
|
462
630
|
CI: **0** up to date, **1** an upgrade is available, **2** it cannot be told
|
|
463
631
|
(no install here, an unreachable repo, or a manifest too old to say what it
|
|
464
|
-
tracked).
|
|
465
|
-
|
|
632
|
+
tracked). For a theme installed from a local folder there is no upstream to
|
|
633
|
+
ask, so the folder's files are compared with what was installed and "up to
|
|
634
|
+
date" includes the managed preference block. Explicit `--prefs` and `--with`
|
|
635
|
+
choices can also change an installation whose remote revision is current;
|
|
636
|
+
`--check` reports whether that proposed setup differs without applying it.
|
|
637
|
+
fxcss deliberately ships no scheduler of its own —
|
|
638
|
+
this is the piece you point yours at.
|
|
639
|
+
|
|
640
|
+
The layout selected at install time (`--subpath`, `--entry`) is recorded and
|
|
641
|
+
reused, so a theme taken from `2.WithTST/` is upgraded from `2.WithTST/` and
|
|
642
|
+
one taken from `src/userChrome-WhiteSur.css` from the same edition.
|
|
466
643
|
|
|
467
644
|
```console
|
|
468
645
|
$ fxcss upgrade
|
|
469
646
|
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
647
|
+
fxcss upgrade default-release
|
|
648
|
+
|
|
649
|
+
profile default-release
|
|
650
|
+
~/Library/Application Support/Firefox/Profiles/8f2h1kqp.default-release
|
|
651
|
+
installed AdamXweb/WhiteSurFirefoxThemeMacOS @ v1.6.3
|
|
652
|
+
upstream v2.0.0 2026-08-16
|
|
473
653
|
|
|
474
654
|
fetching v2.0.0 …
|
|
475
|
-
|
|
655
|
+
layout chrome/ at the repository root 72 stylesheets, 377 KB
|
|
656
|
+
loads 35 stylesheets 29 browser-window, 2 web-content, 4 shared
|
|
657
|
+
sheets keeping theme-nord
|
|
476
658
|
|
|
477
659
|
Upgrade to v2.0.0? [Y/n]
|
|
478
660
|
|
|
479
|
-
|
|
480
|
-
the previous version is kept as chrome.backup-20260817014202
|
|
661
|
+
backup the previous version, kept as chrome.backup-20260817014202
|
|
481
662
|
|
|
482
|
-
|
|
663
|
+
✓ Upgraded to v2.0.0
|
|
664
|
+
Restart Firefox to see it; fxcss rollback puts the previous version back.
|
|
483
665
|
```
|
|
484
666
|
|
|
485
667
|
### fxcss rollback
|
|
@@ -499,12 +681,19 @@ list can show what each one holds:
|
|
|
499
681
|
```console
|
|
500
682
|
$ fxcss rollback --list
|
|
501
683
|
|
|
502
|
-
|
|
684
|
+
fxcss rollback default-release
|
|
685
|
+
|
|
686
|
+
profile default-release
|
|
687
|
+
~/Library/Application Support/Firefox/Profiles/8f2h1kqp.default-release
|
|
688
|
+
installed AdamXweb/WhiteSurFirefoxThemeMacOS @ v2.0.0
|
|
503
689
|
|
|
690
|
+
Backups newest first
|
|
504
691
|
chrome.backup-20260817014202
|
|
505
692
|
AdamXweb/WhiteSurFirefoxThemeMacOS@v1.6.3
|
|
506
|
-
chrome.backup-20260817014143
|
|
693
|
+
chrome.backup-20260817014143 the original
|
|
507
694
|
your own chrome/, from before fxcss
|
|
695
|
+
|
|
696
|
+
fxcss rollback --to <name> restores one of these.
|
|
508
697
|
```
|
|
509
698
|
|
|
510
699
|
`fxcss rollback` restores the most recent, or `--to <name>` any of them.
|
|
@@ -518,7 +707,8 @@ That original is the reason upgrades chain rather than stack blindly. After
|
|
|
518
707
|
five upgrades the newest backup holds *the theme*, not your files, so the
|
|
519
708
|
manifest carries the original's name forward and `fxcss uninstall` still
|
|
520
709
|
restores what you had before you ever ran fxcss. `--keep N` (default 3) prunes
|
|
521
|
-
older backups; the original is never one of them
|
|
710
|
+
older backups; the original is never one of them, and neither is any
|
|
711
|
+
`chrome.backup-*` folder that holds no fxcss install record.
|
|
522
712
|
|
|
523
713
|
### fxcss uninstall
|
|
524
714
|
|
|
@@ -537,6 +727,15 @@ If the profile originally had no `chrome/`, uninstalling after an upgrade
|
|
|
537
727
|
returns it to that state when no files need to be kept. Restart Firefox to see
|
|
538
728
|
the result.
|
|
539
729
|
|
|
730
|
+
A `chrome/` with no manifest in it is yours — what a rollback to the original
|
|
731
|
+
put back, or a theme installed by hand — and `uninstall` leaves it exactly as
|
|
732
|
+
it is, however many backups sit beside it: it removes a leftover fxcss block
|
|
733
|
+
from `user.js` if there is one, lists the backups, and changes nothing else.
|
|
734
|
+
So install → rollback → uninstall ends with your original files in place, and
|
|
735
|
+
running it again does the same. If `chrome/` is absent after an interrupted
|
|
736
|
+
swap or a completed uninstall, `uninstall` leaves that absent state alone too.
|
|
737
|
+
Use `fxcss rollback --to <backup-name>` explicitly to restore a backup.
|
|
738
|
+
|
|
540
739
|
## Building and inspecting themes
|
|
541
740
|
|
|
542
741
|
Work on Firefox's tabs, toolbars and other browser UI with a live preview.
|
|
@@ -780,8 +979,11 @@ window around it, which is why themes break it without noticing — a dark theme
|
|
|
780
979
|
whose dialog body renders white shows up here and nowhere else.
|
|
781
980
|
|
|
782
981
|
The captures land **flat** in `--out`, one file per view (`shots/before/light-01-window.png`);
|
|
783
|
-
`--url` captures go to `<out>/live
|
|
784
|
-
|
|
982
|
+
`--url` captures go to `<out>/live/`, named after the URL without its scheme,
|
|
983
|
+
`www.`, query or fragment; URLs that differ only in those parts are numbered in
|
|
984
|
+
the order given (`example-com`, `example-com-2`) rather than overwriting each
|
|
985
|
+
other. This is the directory to publish from if you want plain screenshots —
|
|
986
|
+
`fxcss compare` writes a different shape, below.
|
|
785
987
|
|
|
786
988
|
```bash
|
|
787
989
|
fxcss shot --out shots --variants all
|
|
@@ -791,6 +993,17 @@ fxcss shot --out shots --variants all
|
|
|
791
993
|
ships (`custom/`, `optional/`, `variants/`…), each loaded on its own and removed
|
|
792
994
|
again — so `tabs-swapclose` or `compact-tabs` are checked by CI without a
|
|
793
995
|
separate install. Name specific ones (`--variants a,b`) or take them all.
|
|
996
|
+
Names are the filename lower-cased with punctuation folded to `-`. Two sheets
|
|
997
|
+
with the same name in different folders are told apart by folder
|
|
998
|
+
(`custom-tabs`, `optional-tabs`); two in one folder that differ only in case
|
|
999
|
+
or punctuation are reported as an error, since nothing distinguishes them.
|
|
1000
|
+
|
|
1001
|
+
Adding `optional/tabs.css` alongside an existing `custom/tabs.css` renames
|
|
1002
|
+
the existing `tabs` variant to `custom-tabs` and names the new one
|
|
1003
|
+
`optional-tabs`. Update explicit `--variants` selections and `--views`
|
|
1004
|
+
filters accordingly. Existing baselines retain `variant-tabs`, so checks
|
|
1005
|
+
report that view as missing until you review the renamed captures and
|
|
1006
|
+
refresh the baseline with `--update-baseline`.
|
|
794
1007
|
|
|
795
1008
|
#### Browser states it captures
|
|
796
1009
|
|
|
@@ -845,10 +1058,10 @@ restyled tab strip, say — leaves it alone:
|
|
|
845
1058
|
| `*-11-settings` | Settings | `about:preferences`, styled by `userContent.css` |
|
|
846
1059
|
|
|
847
1060
|
Panels are separate OS windows that Marionette cannot see, so these four are
|
|
848
|
-
taken with a screen capture of the panel's area. That
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
1061
|
+
taken with a screen capture of the panel's area. That briefly brings the
|
|
1062
|
+
capture Firefox to the front. The capture is first checked against Marionette's
|
|
1063
|
+
own image of the window; when it cannot see Firefox (no screen-recording
|
|
1064
|
+
permission on macOS, a Wayland session,
|
|
852
1065
|
another window on top) the panel views are reported as unsupported with that
|
|
853
1066
|
reason rather than captured wrong. A Firefox without the search engine button
|
|
854
1067
|
skips its two views the same way.
|
|
@@ -910,6 +1123,10 @@ cannot quietly shrink the comparison. Unselected views are left out of
|
|
|
910
1123
|
as a small change: `summary.json` lists it under `below_threshold` with its
|
|
911
1124
|
percentage, but no comparison image is drawn and it does not count towards
|
|
912
1125
|
`changed_views` or `any_change`. A change of exactly the threshold is pictured.
|
|
1126
|
+
Changed pixels are counted in the captures' own pixels, not in the scaled-down
|
|
1127
|
+
pictures, so a one-pixel border still counts at a high device pixel ratio.
|
|
1128
|
+
Small per-channel color differences and isolated antialiasing shifts between
|
|
1129
|
+
unchanged surrounding colors are ignored as rendering noise.
|
|
913
1130
|
|
|
914
1131
|
#### Distinct changes
|
|
915
1132
|
|
|
@@ -1104,20 +1321,21 @@ class your CSS mentions, resolves each against a running Firefox, and shows what
|
|
|
1104
1321
|
to change — with the real line from your file and the replacement applied:
|
|
1105
1322
|
|
|
1106
1323
|
```
|
|
1107
|
-
14 selectors need attention
|
|
1108
|
-
|
|
1109
|
-
RENAMED #urlbar-background → .urlbar-background
|
|
1110
|
-
same name, now a class rather than an id
|
|
1111
|
-
|
|
1112
|
-
chrome/parts/headerbar-urlbar.css:52
|
|
1113
|
-
- #urlbar-background {
|
|
1114
|
-
+ .urlbar-background {
|
|
1324
|
+
✗ 14 selectors need attention
|
|
1115
1325
|
|
|
1116
|
-
|
|
1117
|
-
|
|
1326
|
+
✗ RENAMED #urlbar-background → .urlbar-background
|
|
1327
|
+
same name, now a class rather than an id
|
|
1328
|
+
chrome/parts/headerbar-urlbar.css:52
|
|
1329
|
+
- #urlbar-background {
|
|
1330
|
+
+ .urlbar-background {
|
|
1118
1331
|
|
|
1119
|
-
|
|
1120
|
-
|
|
1332
|
+
! SIMILAR #appMenu-fullscreen-button → #appMenu-fullscreen-button2 a guess, not applied
|
|
1333
|
+
no exact match; closest live name is #appMenu-fullscreen-button2
|
|
1334
|
+
#appMenu-fullscreen-button2 belongs to browser.xhtml
|
|
1335
|
+
check what reads that name before using it: a close
|
|
1336
|
+
spelling can belong to an unrelated element
|
|
1337
|
+
chrome/parts/icons.css:198
|
|
1338
|
+
#appMenu-fullscreen-button {
|
|
1121
1339
|
```
|
|
1122
1340
|
|
|
1123
1341
|
These examples come from findings in a long-running theme. The
|
|
@@ -1195,11 +1413,22 @@ exit for CI; `fxcss-keep` lines are exempt.
|
|
|
1195
1413
|
|
|
1196
1414
|
#### Unused and unreachable code
|
|
1197
1415
|
|
|
1198
|
-
`audit` also reports housekeeping, in its own section, separate from breakage
|
|
1416
|
+
`audit` also reports housekeeping, in its own section, separate from breakage.
|
|
1417
|
+
It reads the theme through the same stylesheet inventory `install` and
|
|
1418
|
+
`upgrade` use: quoted and unquoted `@import url(…)` forms, escaped paths,
|
|
1419
|
+
imports behind `-moz-pref()` or media conditions, and the user hooks a theme
|
|
1420
|
+
imports without shipping (`customChrome.css`, FlexFox's
|
|
1421
|
+
`uc-user-settings.css`). Sheets reached only from `userContent.css` style web
|
|
1422
|
+
and extension pages, and their selectors are reported as *other-document*
|
|
1423
|
+
rather than as browser-window breakage. When an entry sheet is missing or a
|
|
1424
|
+
required import resolves to nothing, the section opens with **INCOMPLETE** and
|
|
1425
|
+
the reasons, instead of reading as a clean bill of health.
|
|
1199
1426
|
|
|
1200
1427
|
- **Stylesheets nothing imports.** Files under `chrome/` unreachable by
|
|
1201
|
-
following `@import` from `userChrome.css`. Sheets in a
|
|
1202
|
-
`optional/` folder are excluded — being
|
|
1428
|
+
following `@import` from `userChrome.css` or `userContent.css`. Sheets in a
|
|
1429
|
+
`custom/`, `optional/`, `extras/` or `tweaks/` folder are excluded — being
|
|
1430
|
+
opt-in is the point of those — and so are conditional imports that are
|
|
1431
|
+
merely switched off.
|
|
1203
1432
|
- **Custom properties used but never set**, where an unthemed Firefox does not
|
|
1204
1433
|
provide them either. These are usually typos: the `var()` silently falls back.
|
|
1205
1434
|
- **Custom properties set but read nowhere.** Reported cautiously — setting
|
|
@@ -1231,43 +1460,60 @@ fxcss init --showcase --previews # also publish screenshots
|
|
|
1231
1460
|
fxcss init --watch --showcase --previews # generate all six workflow files
|
|
1232
1461
|
```
|
|
1233
1462
|
|
|
1234
|
-
`init` writes to `.github/workflows
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1463
|
+
`init` writes to `.github/workflows/` **at the repository root** — found with
|
|
1464
|
+
`git rev-parse --show-toplevel` from the theme folder — and points every
|
|
1465
|
+
command in them at the theme's folder when that is not the root
|
|
1466
|
+
(`fxcss shot --theme 'head/firefox'`). A repository that holds several themes
|
|
1467
|
+
needs `--subpath` to say which. Flat and nested layouts both generate previews
|
|
1468
|
+
for all repository changes, including dependencies outside the theme folder.
|
|
1469
|
+
Named editions and themes that need `--entry` are refused, because the
|
|
1470
|
+
generated workflows cannot select them yet; lay the theme out as
|
|
1471
|
+
`chrome/userChrome.css` to use the workflows.
|
|
1472
|
+
Existing files are preserved unless you pass `--force`; review regenerated
|
|
1473
|
+
files before committing, especially if you have customised them. Generation
|
|
1474
|
+
pins the installed fxcss version. These layout, trigger and patch-mapping
|
|
1475
|
+
changes need fxcss **0.26.0 or later**.
|
|
1476
|
+
To try an fxcss commit that is not released yet, use
|
|
1477
|
+
`fxcss init --toolkit-ref <full-40-character-fxcss-commit-SHA>`: the generated
|
|
1478
|
+
workflows then install that commit directly instead of a PyPI version. `init`
|
|
1479
|
+
says so when the copy you are running did not come from PyPI, since a pin to
|
|
1480
|
+
an unpublished version cannot install. The preview
|
|
1481
|
+
publisher validates variant filenames and PNG headers, including options added
|
|
1482
|
+
by later PRs. Updating fxcss locally does not update workflows already in a
|
|
1483
|
+
repository.
|
|
1484
|
+
|
|
1485
|
+
Audit patches for flat and nested themes address their original files relative
|
|
1486
|
+
to the Git root, so the watch workflow can apply them there. Packaged ZIPs and
|
|
1487
|
+
assembled editions have no direct source mapping: patch generation refuses
|
|
1488
|
+
those layouts; audit the unpacked source folder to prepare a patch instead.
|
|
1239
1489
|
|
|
1240
1490
|
| Feature | Enable with | When it runs | What readers see |
|
|
1241
1491
|
| --- | --- | --- | --- |
|
|
1242
|
-
| PR previews | `init` |
|
|
1492
|
+
| PR previews | `init` | All pull request changes; macOS, Windows and Linux. | A comment that opens with the Firefox support result, then shows each distinct change once with before/after views and highlighted differences, including optional stylesheets. |
|
|
1243
1493
|
| Firefox watch | `init --watch` | Weekly on Mondays, or manually; Release, Beta and Nightly on macOS. | Fix PRs or issues for actionable selector findings, plus a separate issue if screenshot capture fails. |
|
|
1244
|
-
| README previews | `init --previews` |
|
|
1494
|
+
| README previews | `init --previews` | All repository changes on `main`/`master`, or manually; macOS. | Refreshed standard and variant screenshots plus cropped option comparisons on the `previews` branch. |
|
|
1245
1495
|
| Release showcase | `init --showcase` | A release is published, or manually; macOS. | Light/dark screenshots against live websites on the `showcase` branch. |
|
|
1246
1496
|
|
|
1247
|
-
The workflows download Firefox on their runners. Generated
|
|
1248
|
-
|
|
1249
|
-
and
|
|
1497
|
+
The workflows download Firefox on their runners. Generated PR and README
|
|
1498
|
+
previews run for all repository changes, without path filters: imported CSS,
|
|
1499
|
+
images, fonts and other dependencies can live anywhere in a theme repository.
|
|
1500
|
+
This deliberately includes documentation-only edits so dependency-only changes
|
|
1501
|
+
outside standard folders cannot silently skip previews.
|
|
1250
1502
|
Re-run generation and review the changes to update the pinned fxcss version
|
|
1251
|
-
or adopt improvements to the workflow templates
|
|
1503
|
+
or adopt improvements to the workflow templates; see
|
|
1504
|
+
[Updating generated workflows](#updating-generated-workflows). New variants are
|
|
1505
|
+
included automatically unless `FXCSS_VARIANTS` names specific stylesheets.
|
|
1252
1506
|
|
|
1253
1507
|
### Pull request previews
|
|
1254
1508
|
|
|
1255
1509
|
The default setup writes three cooperating workflows:
|
|
1256
1510
|
|
|
1257
|
-
1. **Render:** capture the base and proposed theme revisions
|
|
1258
|
-
system, compare them and upload the
|
|
1259
|
-
cached for later pushes to the same PR.
|
|
1511
|
+
1. **Render:** capture the base and proposed theme revisions in the current
|
|
1512
|
+
Firefox release on each operating system, compare them and upload the
|
|
1513
|
+
images. Matching base captures are cached for later pushes to the same PR.
|
|
1260
1514
|
2. **Publish:** validate the artifacts, publish images to `ci-previews`, and
|
|
1261
1515
|
create or update the preview comment. Unchanged views remain available as
|
|
1262
1516
|
full screenshots.
|
|
1263
|
-
|
|
1264
|
-
The comment groups the [distinct changes](#distinct-changes) by area of the UI
|
|
1265
|
-
and pictures each once, from the first platform that has it. The same change
|
|
1266
|
-
on another platform is folded under it, with each platform's views listed and
|
|
1267
|
-
linked to their full before-and-after; a change only one platform shows is
|
|
1268
|
-
labelled as such. A tab strip restyle that touches every view therefore reads
|
|
1269
|
-
as one picture under Tabs rather than one per view per platform. Views a runner
|
|
1270
|
-
could not capture are listed as not compared.
|
|
1271
1517
|
3. **Clean up:** remove a PR's published images when it closes.
|
|
1272
1518
|
|
|
1273
1519
|
Preview comments start once the workflows are on the default branch.
|
|
@@ -1278,6 +1524,45 @@ but does not execute PR code.
|
|
|
1278
1524
|
The preview shows what changed, leaving the reviewer to decide whether it is
|
|
1279
1525
|
correct. It does not reject a PR simply because the screenshots differ.
|
|
1280
1526
|
|
|
1527
|
+
#### What the comment shows
|
|
1528
|
+
|
|
1529
|
+
The comment opens with the Firefox support result, when
|
|
1530
|
+
[that check is enabled](#choosing-what-the-preview-shows). It then groups the
|
|
1531
|
+
[distinct changes](#distinct-changes) by area of the UI and pictures each once,
|
|
1532
|
+
from the first platform that has it. The same change on another platform is
|
|
1533
|
+
folded under it, with each platform's views listed and linked to their full
|
|
1534
|
+
before-and-after; a change only one platform shows is labelled as such. A tab
|
|
1535
|
+
strip restyle that touches every view therefore reads as one picture under Tabs
|
|
1536
|
+
rather than one per view per platform.
|
|
1537
|
+
|
|
1538
|
+
Below the changes, each platform has a section for anything that needs a closer
|
|
1539
|
+
look:
|
|
1540
|
+
|
|
1541
|
+
- Views that exist only in the pull request, such as a newly added optional
|
|
1542
|
+
stylesheet, are shown as new.
|
|
1543
|
+
- Views missing from the pull request's captures are flagged, so a reviewer can
|
|
1544
|
+
check whether the view was removed or could not be captured.
|
|
1545
|
+
- Views a runner could not capture are listed as not compared.
|
|
1546
|
+
- Screenshots or change records that fail the publisher's validation are
|
|
1547
|
+
counted as unreviewed, with a prompt to check the workflow artifacts before
|
|
1548
|
+
approving.
|
|
1549
|
+
|
|
1550
|
+
A comment too long for GitHub lists its views without links; every comparison
|
|
1551
|
+
is still in the workflow run's artifacts for 14 days.
|
|
1552
|
+
|
|
1553
|
+
The comment is published only when the render job succeeds on all three
|
|
1554
|
+
platforms. If one fails, the pull request keeps any earlier comment. Re-running
|
|
1555
|
+
the failed job or pushing a fix publishes as usual. To publish what the other
|
|
1556
|
+
platforms produced for the pull request's latest commit, start the publish
|
|
1557
|
+
workflow by hand with the ID from that render run's URL:
|
|
1558
|
+
|
|
1559
|
+
```bash
|
|
1560
|
+
gh workflow run pr-preview-publish.yml -f run_id=<run-id>
|
|
1561
|
+
```
|
|
1562
|
+
|
|
1563
|
+
That comment covers only the platforms that finished, and has no Firefox
|
|
1564
|
+
support result if the Linux job was the one that failed.
|
|
1565
|
+
|
|
1281
1566
|
#### Choosing what the preview shows
|
|
1282
1567
|
|
|
1283
1568
|
Four settings at the top of `pr-preview.yml` control what is captured and
|
|
@@ -1292,22 +1577,25 @@ env:
|
|
|
1292
1577
|
```
|
|
1293
1578
|
|
|
1294
1579
|
- `FXCSS_VARIANTS` chooses which optional stylesheets are captured, which also
|
|
1295
|
-
shortens the run.
|
|
1296
|
-
|
|
1580
|
+
shortens the run. Join names with `+` (`compact+dark`) to capture them
|
|
1581
|
+
together. Named stylesheets must exist in both the base branch and the pull
|
|
1582
|
+
request; `all` adapts as sheets are added.
|
|
1297
1583
|
- `FXCSS_VIEWS` chooses which views are compared and shown, using the
|
|
1298
1584
|
[`compare --views`](#fxcss-compare) patterns. Every standard view is still
|
|
1299
|
-
captured. The comment notes that a selection is in effect.
|
|
1585
|
+
captured. The comment notes that a selection is in effect. A pattern that
|
|
1586
|
+
matches none of a runner's captures fails that platform's render job, so a
|
|
1587
|
+
pattern naming only panel views can fail where a runner cannot capture them.
|
|
1300
1588
|
- `FXCSS_MIN_CHANGED_PERCENT` leaves out the image for a view where less than
|
|
1301
1589
|
that share of pixels changed. The comment still lists each such view with its
|
|
1302
1590
|
percentage, so a small change is never reported as no change.
|
|
1303
|
-
- `FXCSS_OLDEST_FIREFOX` is the oldest Firefox the theme supports.
|
|
1304
|
-
comment opens with the [`fxcss support`](#fxcss-support)
|
|
1305
|
-
warning when merging drops styling for an older release
|
|
1306
|
-
earlier, ESR 153 included"), a note when new rules only
|
|
1307
|
-
releases, or one line saying support is unchanged. The Linux job
|
|
1308
|
-
check, caches build indexes between runs, and never fails the
|
|
1309
|
-
it; if it cannot run, the comment says so.
|
|
1310
|
-
setting.
|
|
1591
|
+
- `FXCSS_OLDEST_FIREFOX` is the oldest Firefox the theme supports. Unless it
|
|
1592
|
+
is empty, each comment opens with the [`fxcss support`](#fxcss-support)
|
|
1593
|
+
result for it: a warning when merging drops styling for an older release
|
|
1594
|
+
("Firefox 157 and earlier, ESR 153 included"), a note when new rules only
|
|
1595
|
+
match newer releases, or one line saying support is unchanged. The Linux job
|
|
1596
|
+
runs the check, caches build indexes between runs, and never fails the
|
|
1597
|
+
preview over it; if it cannot run, the comment says so. `firefox-watch.yml`
|
|
1598
|
+
has its own copy of this setting, so change both if you edit them by hand.
|
|
1311
1599
|
|
|
1312
1600
|
Set them when generating the workflows, or edit the file directly:
|
|
1313
1601
|
|
|
@@ -1316,11 +1604,29 @@ fxcss init --variants compact --views 'light-*,variant-*' --min-changed-percent
|
|
|
1316
1604
|
--oldest-firefox 140
|
|
1317
1605
|
```
|
|
1318
1606
|
|
|
1319
|
-
Settings are validated against the theme before anything is written.
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1607
|
+
Settings are validated against the theme before anything is written.
|
|
1608
|
+
|
|
1609
|
+
#### Updating generated workflows
|
|
1610
|
+
|
|
1611
|
+
Workflows keep the fxcss version and templates they were generated with. A
|
|
1612
|
+
repository set up with fxcss 0.24 or earlier therefore has none of the settings
|
|
1613
|
+
above, none of the [surfaces outside the window](#surfaces-outside-the-window)
|
|
1614
|
+
and no grouping in its comment until it regenerates them. Upgrade fxcss first,
|
|
1615
|
+
because generation pins the installed version, then run:
|
|
1616
|
+
|
|
1617
|
+
```bash
|
|
1618
|
+
fxcss init --force --watch --showcase --previews --oldest-firefox 140
|
|
1619
|
+
```
|
|
1620
|
+
|
|
1621
|
+
`--force` replaces only the workflows the command asks for, so name each one
|
|
1622
|
+
you use. A workflow left out keeps its old fxcss pin and template, along with
|
|
1623
|
+
its own copy of `FXCSS_OLDEST_FIREFOX`. Every setting you do not pass returns
|
|
1624
|
+
to its default, including values you edited in the file by hand, so repeat them
|
|
1625
|
+
on the command line.
|
|
1626
|
+
|
|
1627
|
+
The comment wording comes from `pr-preview-publish.yml`, and the publisher
|
|
1628
|
+
always runs from the default branch, so merge the regenerated files there
|
|
1629
|
+
before expecting the new comment.
|
|
1324
1630
|
|
|
1325
1631
|
### Watching Firefox for breakage
|
|
1326
1632
|
|
|
@@ -1364,7 +1670,7 @@ text.
|
|
|
1364
1670
|
For a custom workflow, the core capture-and-compare steps are:
|
|
1365
1671
|
|
|
1366
1672
|
```yaml
|
|
1367
|
-
- run: pip install "fxcss[images]==0.
|
|
1673
|
+
- run: pip install "fxcss[images]==0.25.0"
|
|
1368
1674
|
- run: fxcss shot --theme base --out shots/base
|
|
1369
1675
|
- run: fxcss shot --theme head --out shots/head
|
|
1370
1676
|
- run: fxcss compare --base shots/base --head shots/head --out out/ --platform ${{ runner.os }}
|
|
@@ -1481,16 +1787,17 @@ fxcss doctor
|
|
|
1481
1787
|
Reports your Firefox version, whether `userChrome.css` is enabled, whether
|
|
1482
1788
|
context menus are themeable on your platform, how many stylesheets your theme
|
|
1483
1789
|
has — and **every Gecko build installed on the machine**, with versions. Start
|
|
1484
|
-
here if something isn't behaving.
|
|
1790
|
+
here if something isn't behaving. Run outside a theme folder, it reports on
|
|
1791
|
+
Firefox alone, so it also works as a first check straight after installing
|
|
1792
|
+
fxcss.
|
|
1485
1793
|
|
|
1486
1794
|
### Requirements
|
|
1487
1795
|
|
|
1488
1796
|
- Python 3.9+
|
|
1489
1797
|
- Firefox (any recent release; the toolkit finds it automatically on macOS,
|
|
1490
1798
|
Windows and Linux, or set `FIREFOX_BIN`)
|
|
1491
|
-
- Pillow
|
|
1492
|
-
|
|
1493
|
-
`pipx inject fxcss pillow`. Other commands use the Python standard library.
|
|
1799
|
+
- Pillow 10.1 or newer, installed automatically. `catalogue`, `compare`,
|
|
1800
|
+
`check`, `tweaks` and `upgrade --compare` use it.
|
|
1494
1801
|
|
|
1495
1802
|
### Installation
|
|
1496
1803
|
|
|
@@ -1498,7 +1805,7 @@ fxcss is [on PyPI](https://pypi.org/project/fxcss/). Install it with **pipx**,
|
|
|
1498
1805
|
which gives it its own environment and puts `fxcss` on your PATH:
|
|
1499
1806
|
|
|
1500
1807
|
```bash
|
|
1501
|
-
pipx install
|
|
1808
|
+
pipx install fxcss
|
|
1502
1809
|
```
|
|
1503
1810
|
|
|
1504
1811
|
No pipx yet? `brew install pipx` (macOS), `sudo apt install pipx` (Debian and
|
|
@@ -1511,18 +1818,37 @@ Ubuntu), or `python3 -m pip install --user pipx` elsewhere.
|
|
|
1511
1818
|
> application. pip still works fine *inside a virtual environment*:
|
|
1512
1819
|
>
|
|
1513
1820
|
> ```bash
|
|
1514
|
-
> python3 -m venv ~/.venvs/fxcss && ~/.venvs/fxcss/bin/pip install
|
|
1821
|
+
> python3 -m venv ~/.venvs/fxcss && ~/.venvs/fxcss/bin/pip install fxcss
|
|
1515
1822
|
> ```
|
|
1516
1823
|
|
|
1824
|
+
On Linux, Pillow comes prebuilt for x86_64 and aarch64, including musl
|
|
1825
|
+
distributions such as Alpine. On other CPUs (32-bit x86, RISC-V, ppc64le,
|
|
1826
|
+
s390x) or glibc older than 2.27, pip compiles it, so install a compiler and the
|
|
1827
|
+
image headers first. On Debian and Ubuntu:
|
|
1828
|
+
|
|
1829
|
+
```bash
|
|
1830
|
+
sudo apt install gcc libc6-dev python3-dev libjpeg-dev zlib1g-dev libfreetype-dev
|
|
1831
|
+
```
|
|
1832
|
+
|
|
1833
|
+
If Pillow cannot be built, install fxcss without it in a virtual environment.
|
|
1834
|
+
pipx cannot do this. The image commands will say Pillow is missing, and
|
|
1835
|
+
everything else works:
|
|
1836
|
+
|
|
1837
|
+
```bash
|
|
1838
|
+
python3 -m venv ~/.venvs/fxcss && ~/.venvs/fxcss/bin/pip install --no-deps fxcss
|
|
1839
|
+
```
|
|
1840
|
+
|
|
1517
1841
|
For CI, or anywhere a surprise upgrade would be unwelcome, pin the release —
|
|
1518
1842
|
the [releases page](https://github.com/AdamXweb/fxcss/releases) has the latest.
|
|
1519
1843
|
CI runners' Pythons are not externally managed, so plain pip is fine there:
|
|
1520
1844
|
|
|
1521
1845
|
```bash
|
|
1522
|
-
pip install "fxcss[images]==0.
|
|
1846
|
+
pip install "fxcss[images]==0.25.0"
|
|
1523
1847
|
```
|
|
1524
1848
|
|
|
1525
|
-
|
|
1849
|
+
Pinned installs keep the `[images]` extra so the same line also brings in Pillow
|
|
1850
|
+
on older releases. Upgrade an existing pipx installation with
|
|
1851
|
+
`pipx upgrade fxcss`.
|
|
1526
1852
|
|
|
1527
1853
|
### Upgrading to 0.22
|
|
1528
1854
|
|
|
@@ -1664,7 +1990,7 @@ To work on fxcss itself, clone and install it in an editable environment:
|
|
|
1664
1990
|
|
|
1665
1991
|
```bash
|
|
1666
1992
|
git clone https://github.com/AdamXweb/fxcss.git
|
|
1667
|
-
cd fxcss && python3 -m pip install -e
|
|
1993
|
+
cd fxcss && python3 -m pip install -e .
|
|
1668
1994
|
```
|
|
1669
1995
|
|
|
1670
1996
|
And if you would rather install nothing at all, the repo runs as-is:
|
|
@@ -1675,13 +2001,20 @@ python3 -m fxcss <command>
|
|
|
1675
2001
|
|
|
1676
2002
|
### Testing fxcss itself
|
|
1677
2003
|
|
|
1678
|
-
The toolkit's own CI runs unit tests on Python 3.9, 3.12 and 3.14
|
|
2004
|
+
The toolkit's own CI runs the unit tests on Python 3.9, 3.12 and 3.14 on
|
|
2005
|
+
Linux, and the whole suite again on macOS and Windows, so profile
|
|
1679
2006
|
installation, upgrade, rollback, removal and failure recovery are checked on
|
|
1680
|
-
|
|
1681
|
-
|
|
2007
|
+
all three, including edited files and paths with spaces and non-ASCII
|
|
2008
|
+
characters. Real Firefox checks cover Stable on all three platforms
|
|
1682
2009
|
and ESR on Linux, repeated capture consistency, deliberate CSS changes,
|
|
1683
2010
|
nested imports, content stylesheets and stacked optional stylesheets.
|
|
1684
2011
|
|
|
2012
|
+
A Linux/Python 3.12 job also runs the suite with the minimum supported Pillow,
|
|
2013
|
+
10.1.0. Capture determinism compares all three pairs from one `check` and two
|
|
2014
|
+
`shot` runs, prints raw changed-pixel counts, and retains original screenshots
|
|
2015
|
+
when a job fails. The scheduled compatibility jobs run the same real-change
|
|
2016
|
+
and state-specific capture assertions on Stable, ESR, Beta and Nightly.
|
|
2017
|
+
|
|
1685
2018
|
A separate compatibility workflow checks Stable, ESR, Beta and Nightly on Linux
|
|
1686
2019
|
every Monday and Thursday, or on demand. Failed audits, incomplete captures and
|
|
1687
2020
|
rendering differences fail the run; reports and screenshots are retained as
|
|
@@ -1691,16 +2024,17 @@ and enable **compatibility** to include all four channels. Normal PR CI runs
|
|
|
1691
2024
|
Stable and ESR; the additional channels are optional for manual runs.
|
|
1692
2025
|
|
|
1693
2026
|
Package publishing is gated on CI and checks of the exact wheel and source
|
|
1694
|
-
archive being published. Clean environments outside the checkout test
|
|
1695
|
-
|
|
1696
|
-
compatibility with the latest released fxcss. Package checks run on
|
|
1697
|
-
operating systems with Python 3.9 and 3.14; the release tag must also match the
|
|
2027
|
+
archive being published. Clean environments outside the checkout test an
|
|
2028
|
+
install without dependencies, a normal install with Pillow, generated workflows
|
|
2029
|
+
and profile compatibility with the latest released fxcss. Package checks run on
|
|
2030
|
+
all three operating systems with Python 3.9 and 3.14; the release tag must also match the
|
|
1698
2031
|
built package version. These are fxcss's own checks; `init` generates the theme
|
|
1699
2032
|
repository workflows described above.
|
|
1700
2033
|
|
|
1701
2034
|
Run the checks locally with:
|
|
1702
2035
|
|
|
1703
2036
|
```bash
|
|
2037
|
+
python3 -m pip install -e . # includes Pillow, which the unit tests need
|
|
1704
2038
|
python3 -m unittest discover -s tests -v
|
|
1705
2039
|
python3 -m tests.smoke_themes # requires Firefox and a display
|
|
1706
2040
|
python3 -m tests.smoke_variants # requires Firefox and a display
|
|
@@ -1709,6 +2043,46 @@ python3 -m build
|
|
|
1709
2043
|
python3 scripts/package_smoke.py --dist dist # downloads the released package and image dependencies
|
|
1710
2044
|
```
|
|
1711
2045
|
|
|
2046
|
+
The unit tests cover `compare`, `catalogue` and the other image commands, so
|
|
2047
|
+
they need Pillow: without the install above, the image tests error instead of
|
|
2048
|
+
being skipped. If `pip install` refuses with `externally-managed-environment`,
|
|
2049
|
+
create a virtual environment first (`python3 -m venv .venv && . .venv/bin/activate`). The publisher
|
|
2050
|
+
workflow tests also use Node and bash when they are installed, and skip
|
|
2051
|
+
otherwise. Offline release orchestration tests execute the workflow scripts
|
|
2052
|
+
with stubbed pip, sleep and gh commands to check tag validation, the PyPI
|
|
2053
|
+
installability retry gate and website dispatch without network access. They
|
|
2054
|
+
also check that publication still requires CI and the built-distribution checks,
|
|
2055
|
+
and run the release rules, tagging and the pin update against local Git
|
|
2056
|
+
repositories.
|
|
2057
|
+
|
|
2058
|
+
### Releasing fxcss
|
|
2059
|
+
|
|
2060
|
+
A release is one pull request. Title it **Prepare vX.Y.Z** and change
|
|
2061
|
+
`__version__` in `fxcss/__init__.py` to X.Y.Z. Merging it does the rest:
|
|
2062
|
+
|
|
2063
|
+
1. **Release** tags the merge commit `vX.Y.Z` and starts **Publish** on that tag.
|
|
2064
|
+
2. **Publish** runs CI, checks the built packages, uploads them to PyPI and
|
|
2065
|
+
waits until pip can install the new version.
|
|
2066
|
+
3. Publish then moves the README's `fxcss==` pins to the new version, refreshes
|
|
2067
|
+
fxcss.com and creates the GitHub release with generated notes. You can edit
|
|
2068
|
+
the notes afterwards.
|
|
2069
|
+
|
|
2070
|
+
Only a release pull request may change `__version__`. The **Release version**
|
|
2071
|
+
check fails any other pull request that does, and Release won't tag a version
|
|
2072
|
+
that didn't come from one. While features land, leave the version at the
|
|
2073
|
+
latest release and write "X.Y.Z or later" in the README where a feature needs
|
|
2074
|
+
the next one.
|
|
2075
|
+
|
|
2076
|
+
To release the version that is already on main, run Release by hand:
|
|
2077
|
+
|
|
2078
|
+
```bash
|
|
2079
|
+
gh workflow run release.yml --ref main
|
|
2080
|
+
```
|
|
2081
|
+
|
|
2082
|
+
If Publish fails, re-run it from the Actions tab. If the fix needs a code
|
|
2083
|
+
change, merge the fix, delete the tag with `git push origin :refs/tags/vX.Y.Z`,
|
|
2084
|
+
then run Release by hand.
|
|
2085
|
+
|
|
1712
2086
|
## How this was built
|
|
1713
2087
|
|
|
1714
2088
|
fxcss was written with the assistance of **Claude** (Anthropic's Claude Opus 5),
|