theming: oc-primitives — the Oc kit and the brand-kit colour picker, connected live #135
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#135
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?
Parent
Feature spec: #22 (shell); brand-kit seam (internal/brandkit tokens →
--oc-*). Filed from Ben's rulings 2026-07-26 after the review sweep of6596977..9e946b7: integration-last was deliberate seam-first sequencing — now build the integration layer; and pay all standards debt now. Ben's ruling: connect theming; colour choice becomes a limited palette / set-colour control.What to build
The promised Oc primitives exist (button, input, field, pill, panel — the set the ui-kit data contract promised with the shell slice) styled exclusively by the existing
--oc-*tokens the brandkit seam already compiles. The DS2 brand-kit settings screen offers the limited palette / set-colour choice, compiles it through the brandkit seam, and the primitives re-theme live. This is the expand step — component migration follows in its own tickets.Acceptance criteria
--oc-*tokens — zero hex literals.Blocked by
None — can start immediately.
Task manifest
Shipped in
0bb46d0(on origin/main).The Oc primitive kit (
packages/ui-kit/src/components/):OcButton,OcInput,OcField,OcPill,OcPanel— each styled exclusively by the brandkit seam's--oc-*colour tokens, zero hex literals (a source-level test greps every primitive's<style>and finds none; where the kit owns no foreground colour it usesinherit/currentColor, never a literal). NewbrandTokens.tsfixes the colour-var contract (OC_COLOR_VARS, mirroringinternal/brandkit/token.go'sKindColorset) and oneapplyBrandTokens(tokens)helper that echoes a compiled set onto:rootso every mounted primitive re-themes live, no reload. Exported via@ourcloud/ui-kit/Oc*.vuesubpaths.DS2 (
BrandKitScreen.vue): the colours field is a limited palette of preset swatches plus a set-colour control (a native colour input behind the wireframe'scustom…); every pick compiles through the brandkit seam (compilePreviewnow returns the--oc-*tokens) and re-themes the live primitives — the editor re-derives no token. A low-contrast choice surfaces the seam's own contrast warning, never a block (ADR 0015).Acceptance:
--oc-*tokens — zero hex (tested inpackages/ui-kit/tests/unit/ocPrimitives.test.ts).dashboard/tests/unit/brandKitTheming.test.ts, mountingOcButtonand asserting:root --oc-accentre-themes).Out of scope (untouched): migrating existing screens (their own tickets), new token kinds.
Evidence: ui-kit 66 tests, dashboard 442, app 214 green; all three
vue-tscbuilds + eslint clean.