The Design Constraint Engine for AI-Generated Frontend Code
Design your color, type, spacing, radius and shadow systems — then export them as strict, AI-ready rules that Claude, Cursor and Copilot actually follow.
- Claude
- Cursor
- Copilot
- v0
- Bolt
/* tokens.css */ :root { --color-primary: #912D6E; --space-4: 1rem; --radius-md: 8px; --text-lg: 1.125rem; }
// tailwind.config theme: { colors: { primary: '#912D6E' }, spacing: { 4: '1rem' }, borderRadius: { md: '8px' }, }
# Design constraints - Use --color-primary (#912D6E); never raw hex. - Spacing must be multiples of 4px. - Radius: md = 8px. Use the type scale only.
AI writes great logic. It drifts on UI.
Coding assistants hallucinate utility classes, invent spacing, and hardcode colors — quietly eroding your design system one generation at a time.
Spacing drift
Arbitrary padding and margins pile up, and layouts slowly fall out of rhythm.
Type inconsistency
Missing hierarchy, random sizes, and off line-heights make text feel unsettled.
Random colors
Hardcoded hex values instead of semantic tokens break theming and dark mode.
How it works
Four steps to turn your design decisions into constraints your AI obeys.
Define
Set your color, type, spacing, radius and shadow systems in the builders.
Preview
See your tokens applied to real components before you commit.
Export
Generate CSS, Tailwind, JSON — or AI-ready rules and agent instructions.
Feed your AI
Drop the constraints into Claude, Cursor or Copilot for consistent UI.
Six builders. One design language.
Every builder outputs the same structured tokens, so your whole system stays in sync.
Palette Builder
Build semantic, themeable color systems with light and dark modes.
ColorTypography Builder
Craft responsive, mathematically consistent type scales.
TypographyFont Pairing Builder
Find font combinations that work together in harmony.
TypographySpacing Builder
Generate a structured spacing scale that keeps layouts in rhythm.
LayoutRadius Builder
Set a personality-first corner-radius system, from sharp to pill.
LayoutShadow Builder
Design elevation-driven shadow systems with believable depth.
EffectsAnimation builder, SVG tools, and templated design languages are on the roadmap.
Export it the way your tools expect.
One design system, every format. Ship production CSS, drop tokens into Tailwind, or hand your AI a precise rulebook it can't ignore.
- Production-ready CSS variables
- Tailwind & JSON token output
- AI prompts & agent rule files
:root { --color-primary: #912D6E; --color-secondary: #4F5091; --space-4: 1rem; --radius-md: 8px; }
module.exports = { theme: { extend: { colors: { primary: '#912D6E' }, spacing: { 4: '1rem' }, }}, }
{ "color": { "primary": "#912D6E" }, "space": { "4": "1rem" }, "radius": { "md": "8px" } }
# Use this design system Always style with these tokens. Use --color-primary for primary actions, keep spacing on a 4px grid, and never introduce raw hex values or arbitrary sizes.
# .cursorrules / agent rules
- Import tokens.css; reference variables only.
- Reject hardcoded colors, spacing, radii.
- Headings must use the defined type scale.
- Respect light/dark token pairs.
Stop fighting your AI's UI.
Give it constraints it can't break. Build your design system in minutes.
Start Building