# Adopting bcc-ui-theme Status as of 2026-10-15: **0.1.0 is released** — HF commit `6a43c17` (`anne-voigt/bcc-ui-theme`, tag `v0.1.0`), wheel sha256 `f8414b3d…b36d2c`. `pdac-genomics-agent` has adopted it on its **dev Space only** for Annie's look (Annie, 2026-10-15 decision queue, D4). No other consumer is re-pinned; each diff in `docs/repin/` carries the real pin line. --- ## 1. Order of work 1. **Release the wheel** — `scripts/release.sh`, which prints the pin line. 2. **Re-pin one consumer** and deploy it to its *dev* Space only. 3. Look at it. Adopt the rest once the look is agreed. 4. `pdac-genomics-agent` goes **first** (Annie, 2026-10-15): its dev Space is private and admin-only, so the look can be judged where no user sees it. It has no other claim to the slot (§3). 5. `DecoupleRpy_Agent` should be **last**, because it is the only app whose appearance actually changes (§4). 6. `lit-agent` adopts **now, on gradio 5.50**, via `Blocks(theme=…, css=…)` — it does not wait for its gradio 6 migration (§5). ## 2. The call site — version-dependent, and not silent **Corrected 2026-09-22.** This section previously said the constructor form "silently disappears" on 6.x. It does not. gradio 6.0 *deprecated* `theme`/`css` on `Blocks()`; `__init__` stashes the value in `_deprecated_css` / `_deprecated_theme`, warns, and `launch()` back-fills it — ```python css = css if css is not None else self._deprecated_css # gradio 6.18 blocks.py:2728 ``` — so the stylesheet is still served. Measured against both pinned versions: | | `gr.Blocks(...)` | `demo.launch(...)` | |---|---|---| | gradio 5.50 | accepted, warns | `TypeError` — declares neither, no `**kwargs` | | gradio 6.18 | accepted, warns, **and served** | accepted | `Blocks()` is the one form that works on both majors; `launch()` is 6.x-only. Use `launch()` on 6.x anyway — forward path, one less boot warning — but that is maintenance, not a fix for a broken page. Nothing here can lose a stylesheet without also raising or warning. ```python # gradio 6.x — the five Space apps with gr.Blocks(title="…") as demo: ... demo.launch(theme=theme(), css=CSS) # gradio 5.x — lit-agent, until it migrates with gr.Blocks(title="…", theme=theme(), css=CSS) as demo: ... demo.launch() ``` ### Verifying an adoption Accepting the argument is not the same as serving the stylesheet, and the `Blocks` object is not evidence either way — under the constructor form `demo.css` and `demo.theme` both read `None` while the page is styled. Check the served page: ```bash curl -s https://.hf.space/ | grep -c 'bcc-caveat {' ``` ⚠ **Grep a CSS declaration, never a bare class name.** The moment an app sets `elem_classes=["bcc-caveat"]` — the whole point of adopting the class — that string lands in the gradio config JSON on every build, styled or not, and a `grep -c 'bcc-caveat'` returns non-zero regardless. That is exactly how the genomics `vs-raw-json` probe gave a false pass in the 2026-09-22 inventory. Match something only the stylesheet can emit (a selector with its brace, or a declaration such as `max-height: 460px`). Copy the selector exactly as `_css.py` writes it — `.bcc-caveat {`, with the space. The 2026-09-22 form of this command (`'bcc-caveat{'`) returned 0 on a page that was serving the stylesheet (genomics, 2026-10-15). On gradio 6 the stylesheet arrives in the page's config JSON, not a static `