Skip to content

The check

design check finds anything on your screens that is not in your guide.

Applies to EngineCloud
View as Markdown
On this page
  1. What it checks
  2. Where it runs
  3. Waivers
Terminal
npx @sypnia/design check
Text
src/app/order/page.tsx:42  raw-color      #F5D76E is not a colour of the guide (closest: color.accent)
src/app/order/page.tsx:57  unknown-piece  <Badge> is not in gallery.yaml
cases/orders/place-order    missing-state  failure.Closed has no design
design check: 2 errors, 1 warning

What it checks

CodeFinds
raw-color, raw-size, raw-fonta colour, size or font written by hand instead of a token
unknown-piecea piece that does not come from src/design/ or is not in gallery.yaml
base-importa screen importing @sypnia/base directly
unknown-icon, icon-rulesan icon from outside design/icons/, or one that breaks the construction rules
missing-screena case with a where and no screen file
missing-statean outcome or failure of a case with no designed state
screen-out-of-datea screen designed with an older guide or an older version of its case
contrasttext or controls under the guide’s contrast minimums, measured on the render
focusa piece with no visible keyboard focus
touch-targetsomething pressable smaller than size.touch on the phone render
first-screenthe main content of a first_screen screen does not fit at 1366 × 700 or on a phone
voicea message that is too long, shows a code, or uses a word the guide avoids
guide-driftguide.md, tokens.json and tokens.css disagree
components-out-of-datepieces generated from an older guide

Each finding is an error or a warning. The command exits with 1 when there are errors, so a pipeline stops; --json prints the findings for tools.

Where it runs

  • Before the agent proposes a change. The Design skills run it and fix what they can.
  • On every pull request, in Sypnia Git or any CI.
  • In the console and App, next to each screen.

The checks that need a picture (contrast in context, touch-target, first-screen) use a browser: Chromium on your machine, or the renderer in Sypnia Cloud.

Waivers

Sometimes a rule must bend, for a while. A waiver needs a reason and an end date:

sypnia.toml (part)
[[design.checks.waive]]
code = "raw-color"
path = "src/app/legacy/receipt.tsx"
reason = "Old receipt screen, replaced by place-order's outcome"
until = 2027-01-31
  1. What it checks
  2. Where it runs
  3. Waivers

    Search pages, sections and terms