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

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

Shadows are even on all sides

MUST拦截检查生效中
An edge, a glow or a shadow is the same on all sides: the offset is 0 (at most 1 px), the line is a ring of 1 px, the halo a blur. A shadow pushed down or sideways, or pulled in with a negative spread so that only one side shows, is not used. Take var(--sb-edge), var(--sb-shadow-lift), var(--sb-shadow-sheet) or var(--sb-glow).
原因: On a white page a white card has no edge but its shadow. A shadow only below the card reads as a floor under a stage prop; the owner chose an even edge on 29.11.2026 so that the card holds on all four sides, like a printed sheet.
页面字段(15)
ruleIdSBS-R04
requirementAn edge, a glow or a shadow is the same on all sides: the offset is 0 (at most 1 px), the line is a ring of 1 px, the halo a blur. A shadow pushed down or sideways, or pulled in with a negative spread so that only one side shows, is not used. Take var(--sb-edge), var(--sb-shadow-lift), var(--sb-shadow-sheet) or var(--sb-glow).
levelMUST
floorfalse
statusactive
spheredesign
appliesTo/design
enforcers.shtukbase/packages/shtukbase-style/checks/shadow-even.ts
enforcerKindgate
modeenforce
becauseOn a white page a white card has no edge but its shadow. A shadow only below the card reads as a floor under a stage prop; the owner chose an even edge on 29.11.2026 so that the card holds on all four sides, like a printed sheet.
baseline0
reviewBy2027-05-29
packshtukbase-style
railReplace the offset with 0 and widen the blur, or take a token: var(--sb-edge) for a card, var(--sb-shadow-sheet) for an area.

An edge, a glow or a shadow is the same on all sides: the offset is 0 (at most 1 px), the line is a ring of 1 px, the halo a blur. A shadow pushed down or sideways, or pulled in with a negative spread so that only one side shows, is not used. Take var(--sb-edge), var(--sb-shadow-lift), var(--sb-shadow-sheet) or var(--sb-glow).

What counts as a violation. A box-shadow or filter: drop-shadow() with a layer written in numbers whose x or y offset is larger than 1 px (in px, rem or em), for example 0 4px 12px rgb(0 0 0 / .1) or 0 8px 12px -6px .... A layer that is var(--...) is not looked at: the tokens of the style are built even (a test of the package guards that). inset layers count too.

Why. On a white page a white card has no edge but its shadow. A shadow only below the card reads as a floor under a stage prop. The owner chose an even edge on 29.11.2026: a 0.75 px line at 15 %, a soft rim, an 8 px halo, no offset (identity: a glow and any shadow are even on all sides, never only below).

How to fix. Offset 0, a wider blur, or a token. A lift on hover is a stronger even shadow plus transform: translateY(-1px) (class .sb-lift), not a deeper shadow.

Exceptions. A line (or the line above it) marked shtukbase-style: allow.

Run. shtuk run shtukbase-style shadow-even. A violation is a line with the file and the line number, exit code 1.

包 The Shtukbase style 会把此页面放在 /norms/rules/shtukbase-style/SBS-R04.md。源文本