app screens: scoped styles still render artboard-scale type (S1 list reported) — sweep to product scale #258

Closed
opened 2026-08-02 00:01:04 +00:00 by ben · 1 comment
Owner

What happened

On the Create a community screen (S1, What will happen), the 5-step list renders at ~10px — Ben flagged it as too small in the Phase A rehearsal. The kit's screen vocabulary was rescaled to product type scale (body 1rem/14px — ADR 0122 amendment), but screens' scoped style blocks still carry their own sizes copied from the wireframes' artboard miniatures, and those were not rescaled.

What I expected

Every screen renders at product type scale: body copy ~1rem, micro-labels ≥0.75rem — the wireframes' ratios, never their raw artboard values (ADR 0122 amendment records the rule).

Steps to reproduce

  1. Launch the operator app and open Create a community.
  2. The numbered 5-step list renders noticeably smaller than the title/lede — artboard scale.
  3. Sweep: the same class of leftover exists across founding, device-add, rescue, and shell screens' scoped styles (both rem values below ~0.8 and em values that compound below ~12px effective).

Additional context

The S1 list is the reported symptom; the fix is the sweep, not the one rule. Scoped screen styles should hold only layout, and type sizes should come from the kit vocabulary classes wherever one fits; where a screen genuinely needs a local size, it uses a product-scale value per the ADR 0122 amendment mapping.

Reported during the #183 Phase A rehearsal.

## What happened On the Create a community screen (S1, What will happen), the 5-step list renders at ~10px — Ben flagged it as too small in the Phase A rehearsal. The kit's screen vocabulary was rescaled to product type scale (body 1rem/14px — ADR 0122 amendment), but screens' **scoped** style blocks still carry their own sizes copied from the wireframes' artboard miniatures, and those were not rescaled. ## What I expected Every screen renders at product type scale: body copy ~1rem, micro-labels ≥0.75rem — the wireframes' ratios, never their raw artboard values (ADR 0122 amendment records the rule). ## Steps to reproduce 1. Launch the operator app and open Create a community. 2. The numbered 5-step list renders noticeably smaller than the title/lede — artboard scale. 3. Sweep: the same class of leftover exists across founding, device-add, rescue, and shell screens' scoped styles (both rem values below ~0.8 and em values that compound below ~12px effective). ## Additional context The S1 list is the reported symptom; the fix is the sweep, not the one rule. Scoped screen styles should hold only layout, and type sizes should come from the kit vocabulary classes wherever one fits; where a screen genuinely needs a local size, it uses a product-scale value per the ADR 0122 amendment mapping. Reported during the #183 Phase A rehearsal.
Author
Owner

Fixed in 8fecef5 (on origin/main).

The app rendered at artboard scale because matou-wireframe.css is a miniature — its component classes carry sub-1rem sizes — and the #183 Phase A vocabulary port carried those raw values into the kit AND the screens copied them into scoped <style> blocks. The wireframes are the ratios, not the raw values.

Sweep (ADR 0122 amendment — product type scale, body ~1rem, micro-labels ≥0.75rem):

  • The kit vocabulary is the product-scale source, rescaled once so every consuming surface inherits scale: baseLayer.css + every Oc primitive (OcButton/OcField/OcInput/OcPill/OcPanel/NavChrome/CodesLedgerScreen). Titles 1.35rem, body 1rem, buttons 0.9rem, secondary 0.85rem, micro-labels 0.8rem.
  • The operator-app screens' scoped styles swept off their artboard sizes onto the amendment mapping: founding, device-add, rescue, shell (~21 files). The reported S1 5-step list is now 1rem. The dashboard consumes the same kit and follows; its own scoped styles are a separate slice.
  • Mapping recorded as an amendment section in ADR 0122; STATUS.md updated.

Guard: app/tests/unit/productTypeScale.test.ts (the #233 boot-guard shape) pins the invariant — no app-screen or kit font-size below 0.75rem (rem) / 0.85em (em). Red before, green after.

Verified: guard 2/2, ui-kit 100/100, app 567 pass (boot.test.ts fails only because go is not on the sandbox PATH — an environment issue, passes under nix develop .#go-ci).

Fixed in 8fecef5 (on origin/main). The app rendered at artboard scale because `matou-wireframe.css` is a **miniature** — its component classes carry sub-1rem sizes — and the #183 Phase A vocabulary port carried those raw values into the kit AND the screens copied them into scoped `<style>` blocks. The wireframes are the ratios, not the raw values. **Sweep (ADR 0122 amendment — product type scale, body ~1rem, micro-labels ≥0.75rem):** - The kit vocabulary is the product-scale source, rescaled once so every consuming surface inherits scale: `baseLayer.css` + every Oc primitive (`OcButton`/`OcField`/`OcInput`/`OcPill`/`OcPanel`/`NavChrome`/`CodesLedgerScreen`). Titles 1.35rem, body 1rem, buttons 0.9rem, secondary 0.85rem, micro-labels 0.8rem. - The operator-app screens' scoped styles swept off their artboard sizes onto the amendment mapping: **founding, device-add, rescue, shell** (~21 files). The reported S1 5-step list is now `1rem`. The dashboard consumes the same kit and follows; its own scoped styles are a separate slice. - Mapping recorded as an amendment section in ADR 0122; `STATUS.md` updated. **Guard:** `app/tests/unit/productTypeScale.test.ts` (the #233 boot-guard shape) pins the invariant — no app-screen or kit `font-size` below `0.75rem` (rem) / `0.85em` (em). Red before, green after. **Verified:** guard 2/2, ui-kit 100/100, app 567 pass (`boot.test.ts` fails only because `go` is not on the sandbox PATH — an environment issue, passes under `nix develop .#go-ci`).
ben closed this issue 2026-08-02 00:50:16 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#258
No description provided.