Skip to content
SprecherEast
Issue 1535

enhancement: Theme-readiness flag for each shared component

Back to our plan
Open
enhancementstylingtoolingpriority: medium

Problem

Nobody can tell which components fully follow the theme tokens, so a new theme could land unevenly.

Proposed fix

  • A check, added to the reference generator, that marks each shared component theme-ready or not: no colour, radius, shadow, type or spacing outside the theme tokens, reusing the rules in eslint.theme.config.mjs rather than a second list.
  • The result goes into the showcase index, so the landing and component pages show the flag with the reason.

Existing work compared

Searched open and closed issues on 2026-11-26 (showcase, Storybook, gallery, toggle, switch, developer site, examples, theme readiness, usage, side navigation). Part of epic #1528, which replaces #1424 (owner decision 2026-11-26, recorded there). No other issue covers this step.

Acceptance criteria

  • Not done: Tests first: a component with a raw value is flagged with the file and line; a clean one is not
  • Not done: The flag and its reason are in the index for every component
  • Not done: The theme note says what the flag means

Files likely touched

scripts/reference/, docs/reference/, src/platform/theme/README.md

Must not touch

src/modules/, src/app/, eslint.theme.config.mjs

Open questions

None.

Area

tooling, styling

Priority

priority: medium


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab