Skip to content

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.

LocationRole today
solutions/ontological/lib/model/entities/task/reports/review/template.etaInline styles, own palette.
solutions/ontological/lib/model/entities/principle/reports/review/template.etaSame, sibling copy.

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.

  1. Extract the current palettes; map each role to its --d-* seed value.
  2. 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.
  3. Regenerate a sample report of each kind; eyeball + attach to the PR.
LocationKindChange
solutions/ontological/lib/services/design-tokens/report.tsaddthe projection table
solutions/ontological/lib/services/report/palette.cssaddthe generated palette
solutions/ontological/lib/services/report/palette.tsaddreads it for the templates
scripts/seed-projection.tsmodifyone more drift-guarded artifact
solutions/ontological/lib/model/entities/task/reports/review/template.etamodifyseed-derived palette
solutions/ontological/lib/model/entities/principle/reports/review/template.etamodifyseed-derived palette
  • 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.
  • Dark-mode reports; theming reports beyond the default.
  • none
  • docs/planning/notes/N-R926-design-language-plan.md Phase 4.

← Back to Tasks