Getting started
AI prompts
Recreate any component with a pasted prompt.
What they are
Every example has a Prompt tab next to Preview and Code. Copy it, paste it into any AI tool (Claude, ChatGPT, Cursor, v0…) and you get the same component, in a project that doesn’t have ui-kit installed.
Two modes
- Recreate — the design system in exact values, the component spec, the full reference source and the example. Rebuilds exactly what you see.
- Adapt — the design system and spec without our source, plus a section for your own content. Same look and behaviour, your copy and variant; small layout differences are possible because AI output varies.
What a prompt contains
- Role and goal, and a rule not to redesign or add dependencies.
- The design system: visual language, motion, conventions, and every token file verbatim.
- The component spec: anatomy, props, behaviour, visuals, motion, accessibility and acceptance checks.
- Recreate only: every source file the component needs, then the example to render.
- The output format.
Prompts are generated from the same files the library is built from (prompts/ + packages/ui/src), so they can’t drift from the code. Plain-text versions: /prompts/<component>/<example>/recreate.txt and adapt.txt, for example /prompts/button/variants/recreate.txt.
How they are verified
- A fresh AI agent receives only the prompt (no access to our repo) and writes its output.
- The output is rendered in an isolated app that does not depend on ui-kit.
- A script compares it with our reference element by element — computed styles and pixels — in Chromium and WebKit, light and dark.
- A prompt ships only when that comparison passes.