Coa builder + community page: adopt the IDSS kit tokens and fonts (ruling needed) #158
Labels
No labels
agent-blocked
agent-working
bug
deferred
enhancement
model-haiku
model-opus
model-sonnet
needs-info
needs-triage
no-triage
priority
product-decision
ready-for-agent
ready-for-human
ready-for-session
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/coa#158
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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--*) plusOcButtonand the otherOc*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 intailwind.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.primaryColour/secondaryColour(form/useBrandTheme.ts, fallbacks#0a5c6b/#f2b134).templates/src/community-page.tshas its own<style>(system-ui, 11 hex);email.tsArial + 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.
--oc-*tokens + fonts (blocks the rest)site/)Revisit criterion (deferred): close this umbrella when all five slices land.
Ruled — Ben, 2026-09-25: branding is 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:
--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.baseLayer.css's values), not a second Mātou palette..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.tsandemail.tsand the phone preview (useBrandTheme.ts) use the--oc-*names from the community's kit.Moved off
ready-for-human→needs-triagefor triage to split into buildable slices.🤖 Recorded with Claude Code
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-kitisprivate: truein 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-faceblocks into a Coa-owned tokens source, sourced-with-provenance from IDSS
packages/ui-kit/src/{brandTokens.ts, baseLayer.css}at ref0a5b4619.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, plusmake e2escreenshots.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
matoupreset (IDSSbrandTokens.ts+baseLayer.css, ref0a5b4619).Note these are not Coa's current
teal #0A5C6B / gold #F2B134— those surviveonly as migration aliases per the ruling:
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 coloursflowing through
useBrandTheme.tsandcomponents/phone/theme.ts— those arecommunity data fed into the
--oc-accent/--oc-secondarynames, not chromeliterals, and must stay dynamic.
The split — five buildable slices
needs-triage→ this becomes adeferredumbrella tracking the slices below.Foundation first (blocks the rest); the four surface slices are independent of
each other:
--oc-*tokens + Merriweather/Roboto Mono into Coasite/) — Tailwind →var(--oc-*), drop Frauncestemplates/src/community-page.ts)templates/src/email.ts)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.