AI site design contract
Look up the contract while you edit. The procedure is Tighten an AI-built site. Why the contract exists is Constrained AI web design.
Put these names in CSS (or the theme file the agent must read) and refuse raw palette utilities in new markup.
Semantic tokens
| Token | Job |
|---|---|
|
Default page or panel background |
|
Adjacent band when two regions separate by contrast |
|
Hairline. Low contrast. Dialogs, selected rows, tables |
|
Body and headings |
|
Metadata, dates, tags, secondary labels |
|
One spacing scale. New layout uses a step on this scale |
|
One radius, or two (control vs panel). A new feature does not invent a third |
|
Optional. If present, one elevation for overlays. Sections prefer surface contrast |
|
UI and reading text. Geometric sans is a common marketing choice |
|
Metadata, dates, tags, code |
Example pairing, not a house mandate: a geometric sans such as Geist or Plus Jakarta Sans with JetBrains Mono for metadata. Self-host the files you ship.
Patterns to replace
| Generated default | Replacement |
|---|---|
Raw palette utilities ( |
The semantic token for that role |
Bordered, shadowed card inside another bordered card |
|
Purple or blue gradient page background as the brand |
The surface tokens. Color shows up in type hierarchy and one accent |
Lucide (or similar) icon inside a glowing rounded square, used as a section illustration |
A CSS replica of the product UI when the section is about the product. An icon stays on a real control |
A new badge color for every status |
Weight, size, and |
A third corner radius on a new feature |
The existing |
Prompt shapes
Hand the model one of these. A paragraph that only describes a mood leaves the defaults in the table above in charge.
| What you attach | What you ask |
|---|---|
|
Implement this screen with these tokens only. Audit the JSX and replace raw palette classes. |
One section screenshot |
Rebuild this component with the spacing scale, border opacity, and type hierarchy in the image. Keep this data model. |
An existing template or component library |
Adapt these components to this data. Keep their spacing scale. |
Libraries people use as that constraint include shadcn/ui, Radix, Aceternity UI, Magic UI, Tailwind UI, and Cruip. Naming one is a constraint. It is not a Dev-Centr recommendation for the design canvas. Canvas choice stays on Web design tools.
Where this is used
-
Notable web UI designs — curated live and archived sites to use as concrete visual references
-
Vibe coding bootstrap — studio setup, before visual work
-
Design in Business Bootstrap — canvas and handoff