Этот текст ещё не переведён. Ниже английский оригинал.
The style meets the token contract
The built tokens of the chosen style define every required name of the token contract v1 in :root, and every colour name also in the dark scheme.
What counts as a violation. The style chosen on Design has no tokens.css, or its CSS has no required name of the contract in :root, or no dark value of a colour name (.dark or [data-theme="dark"]), or a colour refers to a variable that does not exist. No style chosen: the check stays silent.
Not a violation. The optional extension (--font-display, --sb-*) may be left out; the check names the left-out names in a note: line, and the defaults of the contract apply to them.
Why. Components and viewers read only the contract names, so a style is a swappable part only while it meets the contract.
Run. shtuk run design-tokens contract; for any CSS file by hand shtuk run design-tokens contract --css <file>. A violation is a line, exit code 1.
How to fix. Add the name to the style tokens (tokens.json, and tokens.dark.json for a colour), build the style again.
/norms/rules/design-tokens/DTK-R03.md.Исходный текст