Founding/operator app: one token source — retire matou-tokens.scss (#1891) #1897

Closed
matou-build-agent wants to merge 0 commits from agent/issue-1891 into main

closes #1891

What & why

The founding / operator app kept its own copy of the product theme —
app/src/components/founding/matou-tokens.scss (92 lines: a $teal-* ramp,
$font-serif/$font-mono, the Mātou neutrals) — layered over the very kit
bootstrap.ts already imports. A second token source that can drift from
packages/ui-kit/src/baseLayer.css. This retires it: the founding flow now
draws its theme from one source, the kit's --oc-*.

The change

  • Theme → kit --oc-* in FoundingPage.vue + SiteHeader.vue:
    Teal-Dark → --oc-brand-matou-dark, Teal-Medium → --oc-accent, cream ground
    → --oc-background, ink → --oc-ink, white-on-dark → --oc-brand-on-dark,
    faces → --oc-font-serif/--oc-font-mono. matou-tokens.scss deleted;
    the harness founding.scss reads --oc-* too.
  • The stack drawing's own illustration shading — its grey ramp, washes, and
    the two mid-teal shades the kit compiles no token for — moves to a
    clearly-scoped app/src/components/founding/founding-drawing.scss. It is
    illustration, not theme, and stays out of the hex-free .vue styling the
    themingApp (#136) scan pins. On the community kit (.pg--kit) the accent /
    secondary already take the two teals' place.
  • Every raw font-family bypass across the app becomes var(--oc-font-mono):
    FoundingConnectDevice.vue, FoundingInstallMachine.vue,
    device-add/JoinWithCodeScreen.vue, device-add/LinuxInstallModeScreen.vue,
    shell/AppUpdateScreen.vue.
  • Callout / button audit: the rescue .oc-btn and the device-add / founding
    .oc-callout scoped blocks were reviewed and left as-is — they are bespoke
    tokenized buttons ("the one button the kit does not model") and kit-callout
    layout augmentations, each documented, not drift copies of a kit class's
    visual identity. TitleBar.vue already reads var(--oc-brand-matou-dark)
    (DDR 0178) — the ticket's "hardcodes #253D39" note was stale; nothing to do.

Acceptance

  • matou-tokens.scss deleted; grep -rn '\$teal-\|\$font-' app/src → none.
  • Every font-family under app/src is var(--oc-font-*) / inherit.
  • No local callout/button/card copies of kit classes remain (see audit).
  • Reads identically on the Mātou defaults — see proof below.
  • App unit tests green (see below).

Reads-identically — machine-verified

No browser can run in the sandcastle sandbox (see Screenshots). Instead, the
before (matou-tokens.scss) and after (--oc-* + founding-drawing.scss)
<style> blocks were compiled with sass, the --oc-* tokens resolved to their
Mātou-default values (DEFAULT_BRAND_TOKENS + base-layer presentation tokens), and
diffed:

FoundingPage.vue — declarations diff (comments stripped, tokens resolved): IDENTICAL (834 lines)
SiteHeader.vue   — declarations diff (comments stripped, tokens resolved): IDENTICAL (69 lines)

The only property that differs is font-family, where the primary face is
unchanged
(Merriweather / Roboto Mono) and only the fallback list expands
to the kit's — imperceptible while those faces load. So the founding page renders
pixel-for-pixel on the Mātou defaults.

Tests

  • themingApp.test.ts (issue #136 hex-free/token-themed scan) — 159 green.
  • rendererBuild.test.ts (real Vite production build — compiles the new SCSS
    partial) — 3 green.
  • Full app unit suite — 2119 passed; the only failures are the two
    spawnSync go ENOENT Go-build files (boot.test.ts, updatesFeed.test.ts) —
    no Go toolchain in this sandbox, pre-existing and unrelated to this change.
  • vue-tsc -p tsconfig.json clean; eslint clean on every touched .vue.

Screenshots: none — the sandcastle sandbox has no browser system libraries (chromium needs libnspr4/libnss3 + 14 more; ldd shows them missing) and no root/apt-network to install them, so the :5199 founding harness cannot be rasterized here; rendering-identity is instead machine-proven by the byte-identical compiled-CSS diff above (precedent: #1856).

closes #1891 ## What & why The founding / operator app kept its **own** copy of the product theme — `app/src/components/founding/matou-tokens.scss` (92 lines: a `$teal-*` ramp, `$font-serif`/`$font-mono`, the Mātou neutrals) — layered over the very kit `bootstrap.ts` already imports. A second token source that can drift from `packages/ui-kit/src/baseLayer.css`. This retires it: the founding flow now draws its theme from **one** source, the kit's `--oc-*`. ## The change - **Theme → kit `--oc-*`** in `FoundingPage.vue` + `SiteHeader.vue`: Teal-Dark → `--oc-brand-matou-dark`, Teal-Medium → `--oc-accent`, cream ground → `--oc-background`, ink → `--oc-ink`, white-on-dark → `--oc-brand-on-dark`, faces → `--oc-font-serif`/`--oc-font-mono`. `matou-tokens.scss` **deleted**; the harness `founding.scss` reads `--oc-*` too. - **The stack drawing's own illustration shading** — its grey ramp, washes, and the two mid-teal shades the kit compiles no token for — moves to a clearly-scoped `app/src/components/founding/founding-drawing.scss`. It is *illustration, not theme*, and stays out of the hex-free `.vue` styling the `themingApp` (#136) scan pins. On the community kit (`.pg--kit`) the accent / secondary already take the two teals' place. - **Every raw `font-family` bypass** across the app becomes `var(--oc-font-mono)`: `FoundingConnectDevice.vue`, `FoundingInstallMachine.vue`, `device-add/JoinWithCodeScreen.vue`, `device-add/LinuxInstallModeScreen.vue`, `shell/AppUpdateScreen.vue`. - **Callout / button audit:** the rescue `.oc-btn` and the device-add / founding `.oc-callout` scoped blocks were reviewed and left as-is — they are bespoke tokenized buttons ("the one button the kit does not model") and kit-callout *layout* augmentations, each documented, not drift copies of a kit class's visual identity. `TitleBar.vue` already reads `var(--oc-brand-matou-dark)` (DDR 0178) — the ticket's "hardcodes #253D39" note was stale; nothing to do. ## Acceptance - `matou-tokens.scss` deleted; `grep -rn '\$teal-\|\$font-' app/src` → none. - Every `font-family` under `app/src` is `var(--oc-font-*)` / `inherit`. - No local callout/button/card **copies** of kit classes remain (see audit). - Reads identically on the Mātou defaults — see proof below. - App unit tests green (see below). ## Reads-identically — machine-verified No browser can run in the sandcastle sandbox (see Screenshots). Instead, the before (`matou-tokens.scss`) and after (`--oc-*` + `founding-drawing.scss`) `<style>` blocks were compiled with `sass`, the `--oc-*` tokens resolved to their Mātou-default values (DEFAULT_BRAND_TOKENS + base-layer presentation tokens), and diffed: ``` FoundingPage.vue — declarations diff (comments stripped, tokens resolved): IDENTICAL (834 lines) SiteHeader.vue — declarations diff (comments stripped, tokens resolved): IDENTICAL (69 lines) ``` The only property that differs is `font-family`, where the **primary face is unchanged** (`Merriweather` / `Roboto Mono`) and only the fallback list expands to the kit's — imperceptible while those faces load. So the founding page renders pixel-for-pixel on the Mātou defaults. ## Tests - `themingApp.test.ts` (issue #136 hex-free/token-themed scan) — **159 green**. - `rendererBuild.test.ts` (real Vite production build — compiles the new SCSS partial) — **3 green**. - Full app unit suite — **2119 passed**; the only failures are the two `spawnSync go ENOENT` Go-build files (`boot.test.ts`, `updatesFeed.test.ts`) — no Go toolchain in this sandbox, pre-existing and unrelated to this change. - `vue-tsc -p tsconfig.json` clean; `eslint` clean on every touched `.vue`. **Screenshots:** none — the sandcastle sandbox has no browser system libraries (chromium needs libnspr4/libnss3 + 14 more; `ldd` shows them missing) and no root/apt-network to install them, so the :5199 founding harness cannot be rasterized here; rendering-identity is instead machine-proven by the byte-identical compiled-CSS diff above (precedent: #1856).
sandcastle: #1891 — the founding / operator app draws its theme from ONE source (the kit's --oc-*), matou-tokens.scss retired
All checks were successful
ci / seam (pull_request) Successful in 19m53s
ci / publish (pull_request) Has been skipped
ci / publish-broker (pull_request) Has been skipped
ci / deploy-broker (pull_request) Has been skipped
e6584a6983
The founding flow kept its own theme copy (app/src/components/founding/
matou-tokens.scss: a $teal-* ramp + $font-serif/$font-mono) layered over the kit
bootstrap.ts already imports — a second token source that could drift from
packages/ui-kit/src/baseLayer.css.

- Theme now reads the kit's --oc-* in FoundingPage.vue + SiteHeader.vue:
  Teal-Dark -> --oc-brand-matou-dark, Teal-Medium -> --oc-accent, cream ground
  -> --oc-background, ink -> --oc-ink, white-on-dark -> --oc-brand-on-dark,
  faces -> --oc-font-serif/--oc-font-mono. matou-tokens.scss deleted; the
  harness founding.scss reads --oc-* too.
- The stack drawing's OWN illustration shading (its grey ramp, washes, and the
  two mid-teal shades the kit compiles no token for) moves to a clearly-scoped
  app/src/components/founding/founding-drawing.scss — not theme, kept out of the
  hex-free .vue styling the #136 scan pins.
- Every raw font-family bypass across the app becomes var(--oc-font-mono):
  FoundingConnectDevice.vue, FoundingInstallMachine.vue,
  device-add/JoinWithCodeScreen.vue, device-add/LinuxInstallModeScreen.vue,
  shell/AppUpdateScreen.vue.
- The rescue .oc-btn and device-add/founding .oc-callout scoped blocks were
  audited and left as-is: bespoke tokenized buttons / kit-callout layout
  augmentations (each documented), not drift copies of a kit class.

Reads-identically proven structurally (no browser in this sandbox — precedent
#1856): compiling the before/after <style> and resolving --oc-* to the Mātou
defaults, the emitted CSS declarations are byte-identical (FoundingPage 834
lines, SiteHeader 69 lines); only font-family differs, primary face unchanged.

Tests: themingApp 159 green, rendererBuild (real Vite build, compiles the new
partial) 3 green, full app suite 2119 green (only the two spawnSync go ENOENT
Go-build files fail — no Go toolchain in this sandbox), vue-tsc + eslint clean.
Grep-proven: no $teal-/$font- SCSS vars under app/src; every font-family is
var(--oc-font-*)/inherit.

Lands by PR (landing-pr).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
ben referenced this pull request from a commit 2026-11-16 17:31:44 +00:00
Owner

Merged — merge commit a7839216. Merged to main by hand at Ben's request (main now at 1776d784), stacked with #2170, #2171, #2172, #2173 and #1897. Forgejo did not auto-detect the pushed merge and manually-merged is disabled on this repo, so this PR is closed by hand — the code IS on main. Verified on the merged stack: dashboard 2339/2339, app 2394/2394, both vue-tsc clean, touched Go + broker packages green.

**Merged** — merge commit a7839216. Merged to `main` by hand at Ben's request (main now at 1776d784), stacked with #2170, #2171, #2172, #2173 and #1897. Forgejo did not auto-detect the pushed merge and `manually-merged` is disabled on this repo, so this PR is closed by hand — the code IS on main. Verified on the merged stack: dashboard 2339/2339, app 2394/2394, both `vue-tsc` clean, touched Go + broker packages green.
ben closed this pull request 2026-11-16 17:33:29 +00:00
All checks were successful
ci / seam (pull_request) Successful in 19m53s
ci / publish (pull_request) Has been skipped
ci / publish-broker (pull_request) Has been skipped
ci / deploy-broker (pull_request) Has been skipped

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
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!1897
No description provided.