T-J8MT-design-language-report-palette
State: closed/done · Impact: low · Complexity: small
The review-report HTML templates carry their own hard-coded palettes.
Project the default seed palette into them so generated reports wear the
family face. The default theme is the one the un-attributed :root block of
tokens.css states, so the reports follow whichever theme currently holds
the default rather than pinning a named one. Phase 4 of
D-DLNG-design-language.
| Location | Role today |
|---|---|
solutions/ontological/lib/model/entities/task/reports/review/template.eta | Inline styles, own palette. |
solutions/ontological/lib/model/entities/principle/reports/review/template.eta | Same, sibling copy. |
Proposed
Section titled “Proposed”Both templates style from one shared palette block projected from the default
seeds. Values are resolved literals, not var(--d-*): a report is a
standalone HTML file and never loads the token layer. Report generation
behavior is unchanged.
Approach
Section titled “Approach”- Extract the current palettes; map each role to its
--d-*seed value. - Factor one shared palette block both templates consume. Eta has no include mechanism here — every instance renders a string with no views root — so the block reaches both templates as a field on the render context.
- Regenerate a sample report of each kind; eyeball + attach to the PR.
Files to touch
Section titled “Files to touch”| Location | Kind | Change |
|---|---|---|
solutions/ontological/lib/services/design-tokens/report.ts | add | the projection table |
solutions/ontological/lib/services/report/palette.css | add | the generated palette |
solutions/ontological/lib/services/report/palette.ts | add | reads it for the templates |
scripts/seed-projection.ts | modify | one more drift-guarded artifact |
solutions/ontological/lib/model/entities/task/reports/review/template.eta | modify | seed-derived palette |
solutions/ontological/lib/model/entities/principle/reports/review/template.eta | modify | seed-derived palette |
Acceptance criteria
Section titled “Acceptance criteria”- AC-1: Generated reports render with the default seed palette, and follow it if the default theme changes.
- AC-2: Report generation tests/ops pass unchanged.
Out of scope
Section titled “Out of scope”- Dark-mode reports; theming reports beyond the default.
Dependencies
Section titled “Dependencies”- none
Discovery context
Section titled “Discovery context”docs/planning/notes/N-R926-design-language-plan.mdPhase 4.