SBS-R05/norms/rules/shtukbase-style/SBS-R05.md
The CSS of the style is rebuilt from its tokens
MUSTblockscheckactive
The file /design/shtukbase-style/tokens.css is exactly what the action build writes from tokens.json and tokens.dark.json of the style.
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.
Enforcer: checks/fresh.ts
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 package The Shtukbase style puts this page at
/norms/rules/shtukbase-style/SBS-R05.md.Source text