ShtukbaseStandard
SUI-R03/norms/rules/shtukbase-ui-html/SUI-R03.md

这段内容尚未翻译,下面是英文原文。

ui.css is rebuilt from the component CSS

MUST拦截检查生效中
/design/shtukbase-ui-html/ui.css is exactly what the build action writes from the current component CSS.
原因: Pages, lenses and the React library load ui.css, not the component files. If it is not rebuilt, an edit to a component does not reach them, and an edit to ui.css by hand is lost at the next build.
Enforcer: checks/fresh.ts
页面字段(15)
ruleIdSUI-R03
requirement/design/shtukbase-ui-html/ui.css is exactly what the build action writes from the current component CSS.
levelMUST
floorfalse
statusactive
spheredesign
appliesTo/design/shtukbase-ui-html
enforcers.shtukbase/packages/shtukbase-ui-html/checks/fresh.ts
enforcerKindgate
modeenforce
becausePages, lenses and the React library load ui.css, not the component files. If it is not rebuilt, an edit to a component does not reach them, and an edit to ui.css by hand is lost at the next build.
baseline0
reviewBy2027-05-29
packshtukbase-ui-html
railRebuild: shtuk run shtukbase-ui-html build. Edit the component .css, not ui.css.

/design/shtukbase-ui-html/ui.css is exactly what the build action writes from the current component CSS.

What counts as a violation. ui.css is missing or differs from the build. If a component breaks SUI-R01, this check stays silent; SUI-R01 names it.

Why. Pages, lenses and the React library load ui.css, not the component files. If it is not rebuilt, an edit to a component does not reach them, and an edit to ui.css by hand is lost at the next build.

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

How to fix. Rebuild: shtuk run shtukbase-ui-html build. Edit the component .css, not ui.css.

包 The shtukbase-ui-html component library 会把此页面放在 /norms/rules/shtukbase-ui-html/SUI-R03.md。源文本