Skill 16 · Wix Headless Templates
Subchapter 16.757
shared/DESIGN.mdMarkdown2 KBView on GitHub
A fallback, not an override. These rules fill the gap when the user gave no design
direction. The moment the brief specifies a palette, a mood, a reference — their intent wins.
Two exceptions that hold regardless: the contrast floor (in styles/global.css, where you
choose the tokens), and the anti-genericism intent — derive the look from brand even
when the user supplied the inputs.
Token judgment (polarity, palette, contrast, type floors) lives in the @theme header in
styles/global.css — you’ll meet it when you set the tokens. This file governs the surfaces:
max-w-4xl mx-auto
around everything). Design for the viewport; use peripheral space intentionally./menu#item-<id> for a dish). A card with a title, image and price
and nothing to click is a dead end, not a design choice.--radius-control, which follows --radius-md until the brand says otherwise: 9999px is
the pill, 0 is square. Cards and fields read --radius-lg/md/sm. Don’t patch rounded-*
on shipped markup, and give your own controls rounded-control so they move with it. Only
genuine circles (avatars, swatches, dots) stay rounded-full.--color-destructive (text-destructive), never a Tailwind palette
colour. Set it with the palette so it keeps 4.5:1 on --color-background.This constrains the how, not the what — the brief and the vertical decide what the pages are; INSTRUCTIONS decides which surfaces exist.