Este texto aún no está traducido. Debajo está el original en inglés.
A style reports its health against the token contract
The convention A design style has its health in this norm. The check health judges the style chosen on Design and prints one line per band:
health style/<id>: full
health style/<id>: missing: <names>
health style/<id>: fallbacks: <names>
health style/<id>: extra: <names>
Run. shtuk run design-tokens health (the chosen style); --style <id> another style, --all every /design/<id>/tokens.css, --css <file> any CSS file by hand. The exit code is always 0: the check informs and never fails, so shtuk check shows the lines under a PASS.
What the bands mean. full: every required name is set in :root, every colour has a dark value. missing: a required name, a dark value (--x (dark)) or a reference that leads nowhere (--x (broken in light)); the style works only partly. fallbacks: optional names the style leaves out; the defaults of the contract apply. extra: names the style sets that the contract does not know (a hint that the contract may grow; the Tailwind mirror names --color-* are not counted).
The hard check. DTK-R03 is the same judgement as a gate for a project that wants one. This norm is the report that never blocks.
/norms/rules/design-tokens/DTK-R04.md.Texto fuente