oficina / estilo Public

theme: Calma's fallbacks re-checked at rastrillo v0.38.0 (Fiesta 1.5.0)

Home moves to rastrillo v0.38.0 (smart-door step 3), so the token-name
snapshot is now v0.38.0's day. Its names are the same 98 as v0.37.0's,
so TestDeclaresRastrilloTokens and Home's name gate pass either way; what
moved are two fallbacks in Fiesta 1.5.0's tokens.css, re-checked by
script at every var(--rst-..., fallback) use site:

- --rst-focus-edge falls back to the accent, not --rst-line-strong.
  Fiesta 1.5.0 draws one focus ring (the field's edge turns to it, the
  2px accent outline flush on it), and Calma's line-strong would have
  drawn a grey edge under the accent outline. Calma declares the accent.
- --rst-ghost-face-hover falls back to transparent on a ghost button's
  hover and to --rst-surface-2 on the one-way door's quiet controls.
  :root keeps transparent; [estilo-signin-screen] (the smart door, the
  only place that door is drawn) sets surface-2, so each site draws its
  fallback. Keyed on estilo's hook: the prefix rule forbids rst-
  selectors here.

Cost, in AGENTS.md: an app still on Fiesta 1.3.0 (Fichas, Mapa) that
bumps estilo past this without moving to v0.38.0 draws two accent rings
on a focused field, since its outline stands 2px off the edge.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 8da96ff98afeaa14ee95e1920252fb16fffe64b3 parent 14a3d52
4 files changed, +55 −16
  • AGENTS.md +24 −6
  • theme/estilo.css +27 −7
  • theme/testdata/rastrillo-day-tokens.txt +3 −2
  • theme/theme_test.go +1 −1

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.003s
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.950s
?   	amadan.net/oficina/estilo.git/cmd/oficina-notices	[no test files]
ok  	amadan.net/oficina/estilo.git/colophon	0.031s
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.073s
ok  	amadan.net/oficina/estilo.git/homeconnect	0.006s
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.010s
ok  	amadan.net/oficina/estilo.git/savestatus	0.161s
ok  	amadan.net/oficina/estilo.git/sky	0.029s
ok  	amadan.net/oficina/estilo.git/theme	0.011s
diff --git a/AGENTS.md b/AGENTS.md
index fea53fd..8bf0633 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -115,16 +115,34 @@ What Calma is, and where each part lives:
a rastrillo upgrade that adds or drops a token still fails here. Two
sources: the pinned v0.23.0's `day`, live, and the newest rastrillo an
app pins, as a snapshot in `theme/testdata/rastrillo-day-tokens.txt`
- (v0.37.0 since 2026-11-20). A snapshot, because requiring a newer
+ (v0.38.0 since 2026-11-20, when Home moved to it; v0.37.0 before).
+ A snapshot, because requiring a newer
rastrillo here would pull every app up to it. When an app moves to a
newer rastrillo, regenerate the snapshot from that release's `day`.
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 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).
+ are declared at **the fallback the snapshot release's `tokens.css`
+ uses for each**, so rastrillo's own stylesheet draws exactly what it
+ would with none declared. v0.38.0 (Fiesta 1.5.0) declares the same 69
+ names; the equality was re-checked by script against its `tokens.css`
+ (every `var(--rst-…, fallback)`, by use site), and two had moved:
+ - `--rst-focus-edge` falls back to the accent, not
+ `--rst-line-strong`: Fiesta 1.5.0's one focus ring turns the field's
+ edge to it with the 2px accent outline flush on it. Calma now
+ declares `var(--rst-accent)`. **An app still on Fiesta 1.3.0**
+ (rastrillo v0.34.0 to v0.37.0, so Fichas and Mapa today) draws its
+ outline 2px off the edge, so bumping estilo past this commit without
+ bumping rastrillo to v0.38.0 gives it two accent rings on focus.
+ - `--rst-ghost-face-hover` has two fallbacks: `transparent` for a
+ ghost button's hover, `--rst-surface-2` for the one-way sign-in
+ door's quiet controls. Calma keeps `transparent` at `:root` and sets
+ `--rst-surface-2` on the smart door (`[estilo-signin-screen]`, the
+ only place that door is drawn; estilo's hook, because the partial's
+ `rst-` names are rastrillo's), so each use site draws its fallback.
+ A ghost button the partial draws without one-way, inside that
+ screen, gets the door's pill too, as estilo's own Forget does.
+ Nothing pins the equality, so re-check it whenever the snapshot is
+ regenerated.
**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
diff --git a/theme/estilo.css b/theme/estilo.css
index 37b466f..953f1fd 100644
--- a/theme/estilo.css
+++ b/theme/estilo.css
@@ -87,12 +87,14 @@
/* ── Tokens rastrillo added after v0.23.0 ──────────────────────────
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
- 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).
+ 69 tokens beyond the set Calma was built on; v0.38.0 (Fiesta 1.5.0)
+ declares the same 69. Each is set to the fallback rastrillo v0.38.0's
+ tokens.css uses where it reads it, so rastrillo's own stylesheet draws
+ exactly what it would with none declared, and the gate
+ (TestDeclaresRastrilloTokens) stays strict. Two moved at v0.38.0:
+ --rst-focus-edge (below) and --rst-ghost-face-hover (after this
+ block). 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. */
@@ -128,7 +130,12 @@
--rst-summary-radius: 0;
/* Focus, hover and press tints. */
- --rst-focus-edge: var(--rst-line-strong);
+ /* The field's edge on focus. Fiesta 1.5.0 draws one focus ring: the
+ edge turns to this, and the 2px accent outline sits flush on it. Its
+ fallback moved from --rst-line-strong to the accent at v0.38.0, and
+ the one ring depends on it (a grey edge under an accent outline reads
+ as two). */
+ --rst-focus-edge: var(--rst-accent);
--rst-focus-halo: transparent;
--rst-tint-hover: var(--rst-accent-soft);
--rst-tint-press: var(--rst-accent-soft);
@@ -179,6 +186,19 @@
--rst-nav-current-fg: var(--rst-accent);
}
+/* --rst-ghost-face-hover has two fallbacks in rastrillo v0.38.0's
+ tokens.css: a ghost button's hover reads it with `transparent`, and the
+ one-way sign-in door's quiet controls (Other ways to sign in, Back, Use
+ a different email) with --rst-surface-2, the soft pill under them on
+ hover and focus. One value at :root cannot be both, so the smart door
+ (chrome's estilo-signin-screen, the one place that door is drawn) gets
+ its own, and each use site draws its fallback. Keyed on estilo's hook,
+ not the partial's rst- names, which are rastrillo's (AGENTS.md,
+ Vocabulary). */
+[estilo-signin-screen] {
+ --rst-ghost-face-hover: var(--rst-surface-2);
+}
+
/* The whole toggle. Setting color-scheme re-resolves every light-dark()
above, so an explicit choice beats the OS in both directions without
restating a colour. */
diff --git a/theme/testdata/rastrillo-day-tokens.txt b/theme/testdata/rastrillo-day-tokens.txt
index 03c64f0..7e24730 100644
--- a/theme/testdata/rastrillo-day-tokens.txt
+++ b/theme/testdata/rastrillo-day-tokens.txt
@@ -1,5 +1,6 @@
-# The custom-property names rastrillo v0.37.0's day theme declares
-# (ui.ThemeCSS("day"), Fiesta 1.3.0's css/themes/day.css), one per line.
+# The custom-property names rastrillo v0.38.0's day theme declares
+# (ui.ThemeCSS("day"), Fiesta 1.5.0's css/themes/day.css), one per line.
+# The same names as v0.37.0's (Fiesta 1.3.0); regenerated 2026-11-20.
# A snapshot, because estilo pins rastrillo v0.23.0 and must not require a
# newer one: estilo's apps would all be pulled up with it. Regenerate it
# from the newest rastrillo an Oficina app pins, then declare whatever it
diff --git a/theme/theme_test.go b/theme/theme_test.go
index 4ef5039..1a2ed3c 100644
--- a/theme/theme_test.go
+++ b/theme/theme_test.go
@@ -120,7 +120,7 @@ func names(css []byte) []string {
// pins rastrillo v0.23.0 while its apps run newer ones:
//
// - day at the pinned v0.23.0, read live through ui.ThemeCSS;
-// - day at the newest rastrillo an app pins (v0.37.0 today), from the
+// - day at the newest rastrillo an app pins (v0.38.0 today), from the
// snapshot testdata/rastrillo-day-tokens.txt. Estilo cannot import
// that rastrillo: requiring it here would pull every app up to it.
//