Review fixes: say what the fallbacks do and don't hold for
Fable's review of b7a1a03 (APPROVE AFTER FIXES): all 69 values equal rastrillo v0.37.0's fallbacks, but an app's own CSS with a different fallback still changes. Fichas' rail (frame.css var(--rst-rail-bg, var(--rst-bg))) turns --rst-surface when it bumps past this, unless that line changes in the same bump. AGENTS.md and the theme comment now say so, and that the equality was checked against v0.37.0 only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 files changed,
+16
−5
AGENTS.md+12 −3theme/estilo.css+4 −2
CI passed — run details
CI log
=== modcache === all modules verified === vet === CGO_ENABLED=0 go vet ./... CGO_ENABLED=0 go vet -tags browser ./... === fmt === === build === CGO_ENABLED=0 go build -buildvcs=false ./... === go-test === CGO_ENABLED=0 go test -count=1 ./... ok amadan.net/oficina/estilo.git/base 0.004s ok amadan.net/oficina/estilo.git/brand 0.002s ok amadan.net/oficina/estilo.git/busy 0.009s ok amadan.net/oficina/estilo.git/callui 0.004s ok amadan.net/oficina/estilo.git/chrome 2.815s ? amadan.net/oficina/estilo.git/cmd/oficina-notices [no test files] ok amadan.net/oficina/estilo.git/colophon 0.022s ok amadan.net/oficina/estilo.git/credits 0.005s ok amadan.net/oficina/estilo.git/credits/catalog 0.004s ok amadan.net/oficina/estilo.git/desk 0.004s ok amadan.net/oficina/estilo.git/googleimport 1.495s ok amadan.net/oficina/estilo.git/homeconnect 0.004s ok amadan.net/oficina/estilo.git/internal/lint 0.006s ? amadan.net/oficina/estilo.git/internal/tokencheck [no test files] ok amadan.net/oficina/estilo.git/menu 0.011s ok amadan.net/oficina/estilo.git/savestatus 0.139s ok amadan.net/oficina/estilo.git/sky 0.030s ok amadan.net/oficina/estilo.git/theme 0.011s
diff --git a/AGENTS.md b/AGENTS.md| index 25e42c3..fea53fd 100644 |
| --- a/AGENTS.md |
| +++ b/AGENTS.md |
| @@ -121,9 +121,18 @@ What Calma is, and where each part lives: |
| The 69 tokens rastrillo added between v0.23.0 and v0.37.0 (Fiesta's |
| fills, controls, tints, switches, type, and depth, light and sheen) |
| are declared at **the fallback v0.37.0's `tokens.css` uses for each**, |
| - so declaring them changed nothing on screen. Adopting Fiesta's depth |
| - and sheen, or any other value for them, is a design decision for |
| - Paul like any token change below. |
| + so rastrillo's own stylesheet draws exactly what it did. That |
| + equality was checked by hand against v0.37.0 (Fiesta 1.3.0) only; |
| + nothing pins it, so re-check it whenever the snapshot is regenerated |
| + (Fiesta 1.5.0, for one, falls back `--rst-focus-edge` to the accent). |
| + **An app's own CSS can still change** if it reads one of these tokens |
| + with a different fallback: Fichas' `frame.css` reads |
| + `var(--rst-rail-bg, var(--rst-bg))`, so its rail turns |
| + `--rst-surface` when it bumps past this commit, unless that line |
| + becomes `var(--rst-bg)` in the same bump. Check each app's CSS for |
| + `var(--rst-…, …)` reads of these tokens when it bumps. Adopting |
| + Fiesta's depth and sheen, or any other value for them, is a design |
| + decision for Paul like any token change below. |
| - `TestContrastMeetsWCAG` — every pair rastrillo's own gate checks, in |
| both schemes, for estilo.css **and every app's accent**, through |
| rastrillo's `ui.ContrastRatio` (parsing copied verbatim). |
diff --git a/theme/estilo.css b/theme/estilo.css| index 3d729b8..37b466f 100644 |
| --- a/theme/estilo.css |
| +++ b/theme/estilo.css |
| @@ -89,8 +89,10 @@ |
| rastrillo v0.37.0 (its look from Fiesta 1.3.0) has day declare these |
| 69 tokens beyond the set Calma was built on. Each is set to the |
| fallback rastrillo v0.37.0's tokens.css uses where it reads it, so |
| - a page looks exactly as it did before they were declared: the gate |
| - (TestDeclaresRastrilloTokens) stays strict and nothing moves. |
| + rastrillo's own stylesheet draws exactly what it did before they were |
| + declared, and the gate (TestDeclaresRastrilloTokens) stays strict. An |
| + app's CSS that reads one of these with a different fallback of its |
| + own does change (Fichas' rail; AGENTS.md, Theme). |
| Adopting Fiesta's depth, light and sheen, or any value here other |
| than its fallback, is a separate design decision for Paul (AGENTS.md, |
| Theme), not a pin bump. */ |