site: phone preview exposes community colour under --oc-accent/--oc-secondary; chrome via tokens (plan #158 Task 5) #163

Open
opened 2026-09-25 19:29:05 +00:00 by matou-build-agent · 0 comments

This was generated by AI during triage.

Slice of #158 (umbrella); design ruling DDR 0281 — cohesive Coa/IDSS branding. Mechanism & values ruled on #158 under ADR 0174 (veto anytime).

What

Community-facing preview. The phone preview must wear the community's kit, so
map the wizard's primaryColour/secondaryColour onto the --oc-accent/
--oc-secondary names, and move the preview's own chrome onto tokens.

Interfaces

  • form/useBrandTheme.ts: keep the dynamic community values (still validated by
    HEX_RE) but surface them under the --oc-* names the phone components read;
    fallbacks may reference the Mātou-default accent/secondary from Task 1.
  • components/phone/theme.ts + phone components: chrome reads --oc-* tokens;
    community-supplied accent/secondary stay dynamic (community data, not chrome).

Acceptance

  • Phone chrome uses tokens; community colour still drives accent/secondary live.
  • make test + make e2e; preview screenshot in the PR.

depends_on: #159

> *This was generated by AI during triage.* _Slice of #158 (umbrella); design ruling **DDR 0281** — cohesive Coa/IDSS branding. Mechanism & values ruled on #158 under ADR 0174 (veto anytime)._ ## What Community-facing preview. The phone preview must wear **the community's** kit, so map the wizard's `primaryColour`/`secondaryColour` onto the `--oc-accent`/ `--oc-secondary` names, and move the preview's own chrome onto tokens. ## Interfaces - `form/useBrandTheme.ts`: keep the dynamic community values (still validated by `HEX_RE`) but surface them under the `--oc-*` names the phone components read; fallbacks may reference the Mātou-default accent/secondary from Task 1. - `components/phone/theme.ts` + phone components: chrome reads `--oc-*` tokens; community-supplied accent/secondary stay dynamic (community data, not chrome). ## Acceptance - Phone chrome uses tokens; community colour still drives accent/secondary live. - `make test` + `make e2e`; preview screenshot in the PR. depends_on: #159
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.

Reference
Matou/coa#163
No description provided.