theming: contract — ban raw hex, forever #139
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.
Depends on
Reference
Matou/idss#139
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
Standards debt — the contract step of the theming expand–contract. Filed from Ben's rulings 2026-07-26 after the review sweep of
6596977..9e946b7: integration-last was deliberate seam-first sequencing — now build the integration layer; and pay all standards debt now.What to build
With every batch migrated, the door closes: a lint rule bans hex colour literals in component and style code across app, dashboard and ui-kit (tokens only), any stragglers are converted, and the rule runs in CI so the debt cannot re-accrue.
Acceptance criteria
Blocked by
Task manifest
Done in
433f3ed(onorigin/main). The theming expand–contract is closed.Lint rule (acceptance 1): new local ESLint rule
oc-theming/no-hex-color(eslint-rules/no-hex-color.mjs), wired intoeslint.config.mjsfor**/*.vue. It rejects any raw hex colour literal in a component<style>block (issue-ref#nnnin CSS comments excluded by construction). CI runs it viapnpm run lint, already inscripts/seam-smoke.sh.Zero remain (acceptance 2): the two stragglers outside the four migration batches — the shared ui-kit
CodesLedgerScreen.vue(20 hex) andNavChrome.vue(5 hex + onergba()fallback) — converted onto the--oc-*tokens with the batches recipe. The whole-repo styling sweep is zero.Boundary: the ban is on styling. Brand-kit colour data legitimately stays hex — the compiler that emits
tokens.css/--oc-*values (dashboard/src/lib/brandkit.ts,app/src/lib/founding.ts, Gointernal/brandkit) and the wireframe-dictated seed preset palette (p1-s3-brand-kit.htmlswatches) + the accent-input example. All colour data in script/template, never in a<style>block, so the styling ban never touches them.Seam:
packages/ui-kit/tests/unit/themingContract.test.ts(7 tests) drives the real rule module over bad/good SFCs and sweeps every.vue<style>block across app, dashboard and ui-kit.Verified (acceptance 3): lint green, all builds green, all suites green (ui-kit 73, dashboard 601, app 309). STATUS.md updated (header + milestone log).