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

The document is white

MUSTblockscheckactive
The page of a document, a form or a screen has a white background: html, body and :root take var(--background) or white in the light theme, with no grey paper, dots, grid or gradient behind the text. Patterns and tints belong to canvases and areas.
Why: Text and forms read best on plain white, and every colour of the style was chosen to be read on it. A grey or dotted page ground changes every contrast and makes cards lose their edge: a white sheet on an almost white ground is held only by its shadow.
Page fields (15)
ruleIdSBS-R01
requirementThe page of a document, a form or a screen has a white background: html, body and :root take var(--background) or white in the light theme, with no grey paper, dots, grid or gradient behind the text. Patterns and tints belong to canvases and areas.
levelMUST
floorfalse
statusactive
spheredesign
appliesTo/design
enforcers.shtukbase/packages/shtukbase-style/checks/background.ts
enforcerKindgate
modeenforce
becauseText and forms read best on plain white, and every colour of the style was chosen to be read on it. A grey or dotted page ground changes every contrast and makes cards lose their edge: a white sheet on an almost white ground is held only by its shadow.
baseline0
reviewBy2027-05-29
packshtukbase-style
railTake the background from var(--background). A pattern is for a canvas: put class sb-canvas or sb-bg-dots on that element, not on body.

The page of a document, a form or a screen has a white background: html, body and :root take var(--background) or white in the light theme, with no grey paper, dots, grid or gradient behind the text. Patterns and tints belong to canvases and areas.

What counts as a violation. A rule for html, body, html body or :root (or a style attribute on <html> or <body>) that sets background, background-color or background-image to anything but white, var(--background), none or transparent: a grey, a tint, a gradient, an image, dots. The dark theme is not looked at: a selector with dark in it, or @media (prefers-color-scheme: dark).

Why. Text and forms read best on plain white, and every colour of the style was chosen to be read on it. A grey or dotted page ground changes every contrast and makes cards lose their edge: a white sheet on an almost white ground is held only by its shadow (identity, 29.11.2026: the document stays white, the ground is not darkened).

Where a pattern goes. Maps, lenses, boards and the hero of a site may have a dotted canvas: .sb-canvas. An area or a group of cards may have .sb-bg-dots, -grid, -lines, -paper, -tint, -fade (see surfaces).

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

Run. shtuk run shtukbase-style background. A violation is a line with the file and the line number, exit code 1. Which files it looks at is on the page Which files the design checks look at.

The package The Shtukbase style puts this page at /norms/rules/shtukbase-style/SBS-R01.md.Source text