oficina / estilo Public

Door pills: every door card's buttons as the one-way door's (Paul 2026-11-21) open

On branch feat/door-pills

🤖 Door pills: every card's buttons are drawn as the one-way door draws them (Paul, 2026-11-21: "yes to pill buttons", on the comparison at :10006/id-pills/).

Branch tip: 716e200. Not merged, not deployed.

What changes (chrome/chrome.css, door section only)

  • The card's main action is a full-width pill: 44px, weight 600, lit from above (inset white edge), its shadow tinted by its fill: accent, or red for danger. Values are the approved shoot.mjs ones, with Fiesta's dark-mode tint (light-dark, 30%).
  • Secondary controls are quiet text buttons, centred: medium weight, muted ink that darkens over a soft pill on hover or focus. The signed-out page's Forget moves from left-aligned to centred, as in the approved picture.
  • Hidden buttons stay hidden (:not([hidden])): Home's passkey buttons start hidden.

The lint question. internal/lint forbids [rst-… selectors in estilo's CSS, so [rst-btn~="primary"] is not allowed. I did not loosen or work around the lint (e.g. [*|rst-btn]). The rules use estilo's own hooks instead:

  • [estilo-signin-form] [type="submit"]: a door sign-in form's submit is its main action. This covers the classic estilo-signin form and the confirm steps in Sheets, Slides, Memoria and Calendar, which already use estilo-signin-form, once each app bumps estilo.
  • a new estilo-signin-action hook for any other button on the card: bare is the main action, ="danger" is destructive and ="quiet" is secondary. estilo-signed-out's Sign in carries it now.
  • [estilo-signin-forget] > button stays quiet, as before.

The smart door (estilo-signin-screen) carries none of these hooks, so rastrillo's own pills are untouched. TestTheDoorsButtonsArePills checks this.

Tests: make test passes. make test-browser passes in light-mode Chrome (titlefit needs playwright on NODE_PATH locally). mainChromeCSS hash updated for the door's rules only; no bar rule changed.

Consumer follow-ups (not in this branch): Fichas' and Mapa's "Continue to keymail" link (rst-btn="primary" in their own estilo-door-open card) needs estilo-signin-action on their next bump. Otherwise it keeps rastrillo's plain primary shape.

Review: not yet reviewed; needs the highest-capability model available, recorded here.

Home's matching branch: oficina/home feat/door-pills. Screenshots: https://pauls-macbook-pro-2.tail76ffb7.ts.net:10006/id-pills/after/

🤖 Review recorded: Fable, APPROVE AFTER FIXES on 716e200. Fixed in 7153f7b. Hub CI passed. Local make test and make test-browser pass.

  1. MEDIUM, quiet controls dropped to 40px on touch. They are now 2.75rem under @media (pointer: coarse), (max-width: 40rem). That is rastrillo's --rst-target there, so it matches Fiesta's max(2.5rem, --rst-target). I couldn't use var(--rst-target, …) as suggested: estilo's pinned rastrillo v0.23.0 doesn't declare it, and TestChromeUsesDefinedTokens refuses any token the pin lacks. I restated the value rather than loosen that gate.
  2. LOW, pill shadow overrode the pressed state. The glow is now a separate rule with :not(:active), so pressing still sinks. The shape rule is unchanged.
  3. LOW, Sent's back link. "Use a different address" is now rst-btn="ghost" estilo-signin-action="quiet".
  4. For the record, to do at each app's next estilo bump: Fichas and Mapa draw their own cards inside estilo-door-open. Their confirm form and the rst-btn="primary" "Continue to keymail" link carry no door hooks. At their bump: - add estilo-signin-form to the confirm form, or estilo-signin-action to its submit; - add estilo-signin-action to "Continue to keymail". Until then those buttons keep rastrillo's plain primary shape. Sheets, Slides, Memoria and Calendar need nothing, because their confirm forms already use estilo-signin-form.

Home feat/door-pills is now pinned to 7153f7b (#145).

Review: Claude Fable, APPROVE AFTER FIXES at 716e200 (touch target, pressed state, sent card's back link); fixed in 7153f7b and checked by the session lead (44px restated under pointer:coarse/narrow, because the pin lacks --rst-target; the pressed state uses :not(:active)). Paul approved the pill look 2026-11-21 ('yes to pill buttons'). CI passed.