ShtukbaseStandard
SBS-R05/norms/rules/shtukbase-style/SBS-R05.md

Этот текст ещё не переведён. Ниже английский оригинал.

The CSS of the style is rebuilt from its tokens

MUSTне пускаетпроверкадействует
The file /design/shtukbase-style/tokens.css is exactly what the action build writes from tokens.json and tokens.dark.json of the style.
Зачем: Code takes values from the CSS, design edits the tokens. If the CSS is not rebuilt, a change of a token does not reach the screen, and a manual edit of the CSS is lost at the next build.
Enforcer: checks/fresh.ts
Поля страницы (15)
ruleIdSBS-R05
requirementThe file /design/shtukbase-style/tokens.css is exactly what the action build writes from tokens.json and tokens.dark.json of the style.
levelMUST
floorfalse
statusactive
spheredesign
appliesTo/design
enforcers.shtukbase/packages/shtukbase-style/checks/fresh.ts
enforcerKindgate
modeenforce
becauseCode takes values from the CSS, design edits the tokens. If the CSS is not rebuilt, a change of a token does not reach the screen, and a manual edit of the CSS is lost at the next build.
baseline0
reviewBy2027-05-29
packshtukbase-style
railRebuild: shtuk run shtukbase-style build. Change values in the tokens, not in the CSS.

The file /design/shtukbase-style/tokens.css is exactly what the action build writes from tokens.json and tokens.dark.json of the style.

What counts as a violation. tokens.css does not exist or differs from the build. If the tokens have errors, this check stays silent: the checks of design-tokens name them.

Why. Code takes values from the CSS, design edits the tokens. If the CSS is not rebuilt, a change of a token does not reach the screen, and a manual edit of the CSS is lost at the next build.

Run. shtuk run shtukbase-style fresh. A violation is a line, exit code 1.

How to fix. shtuk run shtukbase-style build. Change values in tokens.json and tokens.dark.json, not in tokens.css.

Пакет The Shtukbase style кладёт эту страницу в /norms/rules/shtukbase-style/SBS-R05.md.Исходный текст