Coa builder + community page: adopt the IDSS kit tokens and fonts (ruling needed) #158

Open
opened 2026-09-25 18:05:43 +00:00 by ben · 2 comments
Owner

Context: Ben, 2026-09-25 — "the coa, founding app and control panel should all be implemented with global css styles for consistency … create tickets for application wide sweeps across all platforms". Audit of the current state is summarised in the umbrella ticket. The shared kit is packages/ui-kit/src/baseLayer.css (--oc-* tokens, --oc-font-serif = Merriweather, --oc-font-sans = Roboto Mono, .oc-linkbutton, .oc-card, .oc-callout--*, .oc-system-alert--*) plus OcButton and the other Oc* components.

Why human

One-way-ish design ruling: whether Coa (a Mātou-branded builder) shares the community kit's global style system or stays its own brand.

Current state

  • site/ is React 19 + Tailwind 3 with its own palette in tailwind.config.ts (teal #0A5C6B, ink #0F1F2E, sand, gold #F2B134) and Fraunces via @fontsource (main.tsx:7); no --oc-*, no @idss/ui-kit; ~62 hex across 14 files.
  • the phone preview reads primaryColour/secondaryColour (form/useBrandTheme.ts, fallbacks #0a5c6b/#f2b134).
  • templates/src/community-page.ts has its own <style> (system-ui, 11 hex); email.ts Arial + 13 hex.

Proposed default ruling

Coa's community-facing output (the community page template and the phone preview) uses the same token NAMES as the IDSS kit (--oc-accent, --oc-secondary, --oc-text-on-accent, --oc-background) and the kit fonts (Merriweather + Roboto Mono) — so a community reads the same on its page, its app and its IDSS surfaces. The builder chrome (site/) maps its Tailwind theme onto CSS variables (theme.colors.teal = 'var(--coa-teal)', …) in one tokens file, but may stay Mātou-branded.

Acceptance (once ruled)

One documented token source per surface; Tailwind colours reference CSS vars, no raw hex in components; the community page template and preview use the --oc-* names and the kit fonts; screenshots in the PR. Related: IDSS umbrella ticket (see links).

🤖 Filed with Claude Code


Split into buildable slices (deferred umbrella)

Design ruled (DDR 0281); mechanism & values ruled on this ticket under ADR 0174.

  • #159 — foundation: vendor --oc-* tokens + fonts (blocks the rest)
  • #160 — builder chrome (site/)
  • #161 — community page template
  • #162 — email template
  • #163 — phone preview

Revisit criterion (deferred): close this umbrella when all five slices land.

Context: Ben, 2026-09-25 — *"the coa, founding app and control panel should all be implemented with global css styles for consistency … create tickets for application wide sweeps across all platforms"*. Audit of the current state is summarised in the umbrella ticket. The shared kit is `packages/ui-kit/src/baseLayer.css` (`--oc-*` tokens, `--oc-font-serif` = Merriweather, `--oc-font-sans` = Roboto Mono, `.oc-linkbutton`, `.oc-card`, `.oc-callout--*`, `.oc-system-alert--*`) plus `OcButton` and the other `Oc*` components. ## Why human One-way-ish design ruling: whether Coa (a Mātou-branded builder) shares the community kit's global style system or stays its own brand. ## Current state - `site/` is React 19 + Tailwind 3 with its own palette in `tailwind.config.ts` (`teal #0A5C6B`, `ink #0F1F2E`, `sand`, `gold #F2B134`) and Fraunces via `@fontsource` (`main.tsx:7`); no `--oc-*`, no `@idss/ui-kit`; ~62 hex across 14 files. - the phone preview reads `primaryColour`/`secondaryColour` (`form/useBrandTheme.ts`, fallbacks `#0a5c6b`/`#f2b134`). - `templates/src/community-page.ts` has its own `<style>` (system-ui, 11 hex); `email.ts` Arial + 13 hex. ## Proposed default ruling Coa's **community-facing** output (the community page template and the phone preview) uses the same token NAMES as the IDSS kit (`--oc-accent`, `--oc-secondary`, `--oc-text-on-accent`, `--oc-background`) and the kit fonts (Merriweather + Roboto Mono) — so a community reads the same on its page, its app and its IDSS surfaces. The **builder chrome** (`site/`) maps its Tailwind theme onto CSS variables (`theme.colors.teal = 'var(--coa-teal)'`, …) in one tokens file, but may stay Mātou-branded. ## Acceptance (once ruled) One documented token source per surface; Tailwind colours reference CSS vars, no raw hex in components; the community page template and preview use the `--oc-*` names and the kit fonts; screenshots in the PR. Related: IDSS umbrella ticket (see links). 🤖 Filed with [Claude Code](https://claude.com/claude-code) --- ## Split into buildable slices (deferred umbrella) Design ruled (DDR 0281); mechanism & values ruled on this ticket under ADR 0174. - [ ] #159 — foundation: vendor `--oc-*` tokens + fonts (blocks the rest) - [ ] #160 — builder chrome (`site/`) - [ ] #161 — community page template - [ ] #162 — email template - [ ] #163 — phone preview **Revisit criterion (deferred):** close this umbrella when all five slices land.
Author
Owner

Ruled — Ben, 2026-09-25: branding is COHESIVE across Coa and IDSS

"the branding should be cohesive across coa and idss"

This goes further than the proposed default (which let Coa's builder chrome stay its own Mātou brand): Coa and IDSS read as one brand system. Recorded as IDSS DDR 0281.

What that means for this ticket:

  • One token vocabulary. The IDSS kit's names — --oc-accent, --oc-secondary, --oc-text-on-accent, --oc-background, the --oc-status-* set, --oc-font-serif / --oc-font-sans — are the names every Coa and IDSS surface styles from. No parallel palette (teal #0A5C6B / gold, $kit-primary / --matou-*) survives except as a documented alias onto them during migration.
  • One type system. Merriweather for the voice/headings, Roboto Mono for UI — the kit's fonts — on every surface.
  • A community's own kit wins where it applies. Anything shown for a community (its page, its app, its sign-in, its panel) wears that community's compiled kit through those same tokens; Mātou's own chrome (the Coa builder) wears the Mātou defaults of the same kit (baseLayer.css's values), not a second Mātou palette.
  • The same component voice. Buttons, cards, alert boxes and callouts follow the kit's classes (.oc-linkbutton, .oc-card, .oc-system-alert--*, .oc-callout--*) or their exact equivalents in the platform's framework, so a button or an alert looks the same in Coa, the community app and the IDSS panel.

Acceptance (replacing the "once ruled" section): one documented token source mapped to the --oc-* names; no raw brand hex in components (tokens only); the kit fonts bundled and used; side-by-side screenshots against the matching IDSS surface in the PR.

For Coa specifically: the builder site's Tailwind theme maps onto CSS variables carrying the kit's Mātou defaults (theme.colors.accent = 'var(--oc-accent)', …) and Fraunces gives way to the kit fonts; templates/src/community-page.ts and email.ts and the phone preview (useBrandTheme.ts) use the --oc-* names from the community's kit.

Moved off ready-for-human → needs-triage for triage to split into buildable slices.

🤖 Recorded with Claude Code

## Ruled — Ben, 2026-09-25: branding is COHESIVE across Coa and IDSS > *"the branding should be cohesive across coa and idss"* This goes **further than the proposed default** (which let Coa's builder chrome stay its own Mātou brand): Coa and IDSS read as **one brand system**. Recorded as **IDSS DDR 0281**. **What that means for this ticket:** - **One token vocabulary.** The IDSS kit's names — `--oc-accent`, `--oc-secondary`, `--oc-text-on-accent`, `--oc-background`, the `--oc-status-*` set, `--oc-font-serif` / `--oc-font-sans` — are the names every Coa and IDSS surface styles from. No parallel palette (`teal #0A5C6B` / `gold`, `$kit-primary` / `--matou-*`) survives except as a documented alias onto them during migration. - **One type system.** Merriweather for the voice/headings, Roboto Mono for UI — the kit's fonts — on every surface. - **A community's own kit wins where it applies.** Anything shown for a community (its page, its app, its sign-in, its panel) wears that community's compiled kit through those same tokens; Mātou's own chrome (the Coa builder) wears the **Mātou defaults of the same kit** (`baseLayer.css`'s values), not a second Mātou palette. - **The same component voice.** Buttons, cards, alert boxes and callouts follow the kit's classes (`.oc-linkbutton`, `.oc-card`, `.oc-system-alert--*`, `.oc-callout--*`) or their exact equivalents in the platform's framework, so a button or an alert looks the same in Coa, the community app and the IDSS panel. **Acceptance (replacing the "once ruled" section):** one documented token source mapped to the `--oc-*` names; no raw brand hex in components (tokens only); the kit fonts bundled and used; side-by-side screenshots against the matching IDSS surface in the PR. **For Coa specifically:** the builder site's Tailwind theme maps onto CSS variables carrying the kit's Mātou defaults (`theme.colors.accent = 'var(--oc-accent)'`, …) and Fraunces gives way to the kit fonts; `templates/src/community-page.ts` and `email.ts` and the phone preview (`useBrandTheme.ts`) use the `--oc-*` names from the community's kit. Moved off `ready-for-human` → `needs-triage` for triage to split into buildable slices. 🤖 Recorded with [Claude Code](https://claude.com/claude-code)

This was generated by AI during triage.

Ruled by agent under ADR 0174 — veto anytime

The one-way-door in this ticket — does Coa share the community kit's style
system?
— was already ruled by Ben (DDR 0281: cohesive branding across Coa
and IDSS) and the ticket was handed to triage "to split into buildable slices."
Two two-way-door calls remained before the slices could be specified; I rule
them here.

Ruling 1 — consumption mechanism: vendor the kit tokens, don't depend on the package

@idss/ui-kit is private: true in the IDSS repo (packages/ui-kit/package.json)
— it is not published, so Coa cannot add it as an npm dependency. Coa instead
vendors the kit's --oc-* token declarations and its two @font-face
blocks into a Coa-owned tokens source, sourced-with-provenance from IDSS
packages/ui-kit/src/{brandTokens.ts, baseLayer.css} at ref 0a5b4619.
This matches Coa's existing vendor-at-a-pin pattern (.sandcastle/FACTORY_REF).

Two-way door: revertible by a commit; a later slice can swap to a published
package if IDSS ever ships one. Proven by: a unit test asserting Coa's vendored
--oc-* set and values match the documented source, plus make e2e screenshots.

Ruling 2 — the Mātou-default values (so no agent invents brand colour)

The builder chrome wears the kit's Mātou defaults, quoted verbatim from the
kit's matou preset (IDSS brandTokens.ts + baseLayer.css, ref 0a5b4619).
Note these are not Coa's current teal #0A5C6B / gold #F2B134 — those survive
only as migration aliases per the ruling:

--oc-accent: #619793;            /* Mātou teal-med */
--oc-accent-hover: #52807d;
--oc-text-on-accent: #111111;
--oc-background: #f5f5f0;
--oc-secondary: #b59fa0;
--oc-text-on-secondary: #111111;
--oc-panel: #ffffff;
--oc-ink: #1a1a1a;
--oc-ink-soft: #666666;
--oc-status-healthy: #82b366;
--oc-status-warning: #d79b00;
--oc-status-critical: #b3261e;   /* full --oc-status-* set: copy verbatim from source */
--oc-font-serif: 'Merriweather', Georgia, 'Times New Roman', serif;
--oc-font-sans: 'Roboto Mono', ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace;
--oc-font-mono: 'Roboto Mono', ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace;

Two-way door: pure token values, revertible by a commit; proven by the same
match test + screenshots.

Scope clarification (prevents a mis-slice)

"No raw brand hex in components" targets chrome hex only. It does not cover
(a) test fixtures that exercise HEX_RE, or (b) the community's own colours
flowing through useBrandTheme.ts and components/phone/theme.ts — those are
community data fed into the --oc-accent/--oc-secondary names, not chrome
literals, and must stay dynamic.

The split — five buildable slices

needs-triage → this becomes a deferred umbrella tracking the slices below.
Foundation first (blocks the rest); the four surface slices are independent of
each other:

  1. Foundation — vendor the --oc-* tokens + Merriweather/Roboto Mono into Coa
  2. Builder chrome (site/) — Tailwind → var(--oc-*), drop Fraunces
  3. Community page template (templates/src/community-page.ts)
  4. Email template (templates/src/email.ts)
  5. Phone preview (useBrandTheme.ts + components/phone/theme.ts)

Child tickets filed below and linked as native dependencies. Ben can veto the
mechanism, the values, or any slice boundary at any time.

> *This was generated by AI during triage.* ## Ruled by agent under ADR 0174 — veto anytime The one-way-door in this ticket — *does Coa share the community kit's style system?* — was **already ruled by Ben** (DDR 0281: cohesive branding across Coa and IDSS) and the ticket was handed to triage "to split into buildable slices." Two two-way-door calls remained before the slices could be specified; I rule them here. ### Ruling 1 — consumption mechanism: **vendor the kit tokens, don't depend on the package** `@idss/ui-kit` is `private: true` in the IDSS repo (`packages/ui-kit/package.json`) — it is not published, so Coa cannot add it as an npm dependency. Coa instead **vendors** the kit's `--oc-*` token declarations and its two `@font-face` blocks into a Coa-owned tokens source, sourced-with-provenance from IDSS `packages/ui-kit/src/{brandTokens.ts, baseLayer.css}` at ref **`0a5b4619`**. This matches Coa's existing vendor-at-a-pin pattern (`.sandcastle/FACTORY_REF`). *Two-way door:* revertible by a commit; a later slice can swap to a published package if IDSS ever ships one. *Proven by:* a unit test asserting Coa's vendored `--oc-*` set and values match the documented source, plus `make e2e` screenshots. ### Ruling 2 — the Mātou-default values (so no agent invents brand colour) The builder chrome wears **the kit's Mātou defaults**, quoted verbatim from the kit's `matou` preset (IDSS `brandTokens.ts` + `baseLayer.css`, ref `0a5b4619`). Note these are **not** Coa's current `teal #0A5C6B / gold #F2B134` — those survive only as migration aliases per the ruling: ```css --oc-accent: #619793; /* Mātou teal-med */ --oc-accent-hover: #52807d; --oc-text-on-accent: #111111; --oc-background: #f5f5f0; --oc-secondary: #b59fa0; --oc-text-on-secondary: #111111; --oc-panel: #ffffff; --oc-ink: #1a1a1a; --oc-ink-soft: #666666; --oc-status-healthy: #82b366; --oc-status-warning: #d79b00; --oc-status-critical: #b3261e; /* full --oc-status-* set: copy verbatim from source */ --oc-font-serif: 'Merriweather', Georgia, 'Times New Roman', serif; --oc-font-sans: 'Roboto Mono', ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace; --oc-font-mono: 'Roboto Mono', ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace; ``` *Two-way door:* pure token values, revertible by a commit; *proven by* the same match test + screenshots. ### Scope clarification (prevents a mis-slice) "No raw brand hex in components" targets **chrome** hex only. It does **not** cover (a) test fixtures that exercise `HEX_RE`, or (b) the **community's own colours** flowing through `useBrandTheme.ts` and `components/phone/theme.ts` — those are community *data* fed into the `--oc-accent`/`--oc-secondary` names, not chrome literals, and must stay dynamic. ### The split — five buildable slices `needs-triage` → this becomes a **`deferred` umbrella** tracking the slices below. Foundation first (blocks the rest); the four surface slices are independent of each other: 1. Foundation — vendor the `--oc-*` tokens + Merriweather/Roboto Mono into Coa 2. Builder chrome (`site/`) — Tailwind → `var(--oc-*)`, drop Fraunces 3. Community page template (`templates/src/community-page.ts`) 4. Email template (`templates/src/email.ts`) 5. Phone preview (`useBrandTheme.ts` + `components/phone/theme.ts`) Child tickets filed below and linked as native dependencies. Ben can veto the mechanism, the values, or any slice boundary at any time.
Sign in to join this conversation.
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/coa#158
No description provided.