Documentation & Technical Deep Dive

The Design Control Layer
for AI Coding Assistants

AIUI bridges the gap between design systems and AI code generation. Design Memory ensures every AI-generated component matches your brand — across every IDE, every session, every developer.

46%

of new code is AI-generated

$12.8B

AI coding tools market (2026)

73%

of teams use AI tools daily

41%

increase in code churn

The Problem

AI is writing your UI. But it has no idea what your brand looks like.

AI coding assistants generate entire components in seconds. But without design system awareness, every prompt produces a different visual result — inconsistent colors, mismatched typography, arbitrary spacing. The more your team uses AI, the faster your UI drifts from your brand.

2.66×

more formatting issues in AI-generated code vs human-written

CodeRabbit 2026

63%

of developers spent more time debugging AI code than writing it themselves

Developer Survey 2026

increase in code duplication across AI-assisted codebases

GitClear Analysis

Inconsistent output every time

AI tools pick different colors, fonts, and spacing with every prompt. A button generated in one session looks completely different from the next. There's no visual continuity.

No design system enforcement

Designers spend months building token systems and component libraries. AI coding tools have zero access to these systems during code generation. The work is invisible to AI.

Rework destroys the speed advantage

Teams spend hours adjusting AI output to match brand guidelines. The entire productivity gain from AI-assisted coding is consumed by manual design cleanup.

Brand drift accelerates at scale

As more developers adopt AI, the inconsistency compounds. Each developer's AI generates slightly different UI. Maintaining visual coherence across a team becomes impossible.

The same prompt. Two different results.

Without AIUI
<button className="bg-blue-500 text-white px-4 py-2 rounded">
  Submit
</button>

// Next prompt, same project:
<button className="bg-indigo-600 text-sm px-3 py-1.5 rounded-md">
  Submit
</button>

// Third prompt:
<button className="bg-sky-500 font-medium px-6 py-3 rounded-xl">
  Submit
</button>
With AIUI
// Every prompt, every session, every developer:
<button className="bg-[color.primary] text-white
  px-[spacing.md] py-[spacing.sm]
  rounded-[radius.md] font-[font.body]
  hover:bg-[color.primary-hover]">
  Submit
</button>

// Tokens resolve to your design system:
// color.primary → #3B82F6
// spacing.md → 16px, spacing.sm → 8px
// radius.md → 8px, font.body → Inter

Market Opportunity

A $12.8 billion market with no design guardrails.

AI coding tools are the fastest-growing segment in developer tooling. Every major platform is investing billions. But none of them solve the design consistency problem. AIUI is the missing infrastructure layer.

Market Sizing

TAM

$12.8B

Total Addressable Market

AI coding tools market (2026). Every team using AI assistants needs design consistency.

SAM

$2.1B

Serviceable Addressable Market

Teams with design systems actively using AI coding assistants — the direct AIUI audience.

SOM

$15–50M

Serviceable Obtainable Market

Year 1–3 target: 0.5–1% of 500K+ organizations using Copilot, Cursor, or Claude Code.

20M+

GitHub Copilot users

1.3M paid subscribers, 90% of Fortune 100

$29.3B

Cursor valuation

From $0 to $2B+ ARR in under 2 years

42.3%

CAGR through 2033

AI in software development growing to $15.7B

95%

of developers use AI weekly

Up from 41% in early 2025

Why now?

MCP adoption exploded — 10,000+ servers in 6 months. The protocol layer is ready.

Specify (closest token competitor) shut down Nov 2024. The market gap is open.

Figma launched their MCP server — validating the design + AI integration thesis.

EU AI Act enforcement in 2026 requires governance and audit trails for AI output.

Core Innovation

Design Memory: persistent context for AI

Design Memory is AIUI's core innovation. It's a layered, persistent context system that gives AI coding assistants complete awareness of your design system — not just in one session, but across every session, every developer, every IDE.

Four layers. One source of truth.

Layer 4

Persistence Layer

Cross-session memory

  • Hash-based staleness detection — knows when tokens have changed
  • Auto-sync from database via MCP — always up to date
  • Version-tracked .aiui/design-memory.md persists in your repo
  • AI agents warned automatically when design memory is stale
Layer 3

Enforcement Layer

Real-time compliance validation

  • 8 token categories validated: color, font, spacing, radius, font-size, z-index, opacity, border-width
  • 6 accessibility checks: img alt, button labels, form labels, heading order, ARIA, WCAG AA
  • Compliance score (0–100) with detailed violation reports
  • Auto-fix violations with fix_compliance_issues tool
Layer 2

Structure Layer

Component recipes & patterns

  • 57+ component recipes with full code templates
  • Props schemas defining every configurable parameter
  • AI usage rules — exactly when and how to use each component
  • Framework-specific output (React, Next.js, Tailwind, CSS)
Layer 1

Foundation Layer

Design tokens & primitives

  • Colors, typography, spacing, shadows, border radii, elevation
  • Import from Figma, Tailwind configs, or CSS variables
  • Export as Tailwind, CSS custom properties, or JSON
  • Instant propagation — change once, applies everywhere
.aiui/design-memory.mdauto-synced
# Design Memory — my-saas-app
<!-- Auto-synced from AIUI on 2026-04-09 -->
<!-- Hash: a7f3c2d — tokens changed? re-sync automatically -->

**Style Pack:** SaaS Clean
**Framework:** nextjs-tailwind
**Components:** 12 selected  |  **Tokens:** 31 active

## Design Tokens

### Color
| Token              | Value     |
|---|---|
| color.primary      | #3B82F6   |  ← AI uses THIS, not random blues
| color.primary-hover | #2563EB  |
| color.background   | #FFFFFF   |
| color.text-primary | #111827   |

### Spacing
| Token       | Value |
|---|---|
| spacing.sm  | 8px   |  ← Consistent padding everywhere
| spacing.md  | 16px  |
| spacing.lg  | 24px  |

## Design Rules
1. Use ONLY these tokens — never hardcode values
2. Call validate_ui_output after generating UI
3. Match the framework target — nextjs-tailwind

Hash-Versioned

Every sync computes a token hash. AI agents detect drift automatically — no stale designs, ever.

Live-Synced

Change a token in the dashboard, call sync, and every AI session picks up the change immediately.

AI-Native

Not a static file — a protocol-aware context layer that AI agents read, validate against, and enforce.

Architecture

Protocol-level integration via MCP

AIUI uses the Model Context Protocol — the industry standard adopted by Anthropic, OpenAI, Google, and Microsoft. One integration serves every MCP-compatible IDE. No per-tool plugins. No maintenance per editor.

Design System

  • Tokens
  • Recipes
  • Rules

AIUI Platform

  • Dashboard
  • MCP Server
  • Validator

MCP Protocol

  • 12 tools
  • HTTP transport
  • Streaming

AI IDE

  • Claude Code
  • Cursor
  • Windsurf
  • VS Code

Consistent UI

  • On-brand
  • Validated
  • Accessible

12 MCP Tools

Every tool is available to any MCP-compatible AI assistant. The AI calls these automatically during code generation.

get_project_context

Load full design profile

sync_design_memory

Generate .aiui/ files

get_theme_tokens

Export tokens (Tailwind/CSS/JSON)

list_components

Browse 57+ recipes

get_component_recipe

Get template + props + rules

validate_ui_output

Check design compliance

fix_compliance_issues

Auto-fix violations

create_style_pack

Create new design system

apply_style_pack

Assign pack to project

update_tokens

Modify token values

resolve_tag

Map tags to resources

get_asset_manifest

Get assets with CDN URLs

How It Works

From design system to consistent AI output in 4 steps

AIUI sits between your design system and your AI coding tools. Setup takes under 60 seconds. Once connected, every AI-generated component follows your design tokens automatically.

1

Define your design tokens

Set your colors, typography scale, spacing units, shadows, and border radii in the AIUI dashboard. Import from Figma, Tailwind configs, or start with a pre-built style pack like 'SaaS Clean' or 'Dashboard Pro'.

// Import from Tailwind config, Figma, or define manually // 14 style packs available — or build your own
2

Create component recipes

Define approved component patterns with specific token usage. Each recipe includes a full code template, props schema, and AI usage rules — so the AI knows not just what to build, but exactly how.

// Recipe: Primary Button
// Tokens: color.primary, spacing.md, radius.md
// Props: variant, size, disabled
// Rule: "Always use hover:bg-[color.primary-hover]"
3

Connect via MCP

Add one configuration block to your AI tool. AIUI serves your design system over the Model Context Protocol. The AI reads your tokens and recipes before generating any code.

claude mcp add aiui -- npx @anthropic-ai/aiui-mcp@latest
4

Generate and validate

When your AI assistant builds a component, it pulls your design memory automatically. After generation, the validate tool checks compliance across 8 token categories and 6 accessibility standards.

// validate_ui_output returns:
// { score: 97, violations: 1,
//   detail: "color.warning used instead of color.error" }

Key Features

Everything you need for AI-consistent design

Design Token Management

Centralize all design primitives — colors, typography, spacing, shadows, radii, elevation. Changes propagate instantly to every connected AI tool.

360+ tokens across 14 packs

Component Recipes

Full component patterns with code templates, props schemas, and AI-specific usage rules. AI assistants follow recipes exactly.

57+ recipes with code templates

Style Packs

Pre-built design systems ready to activate. SaaS Clean, Dashboard Pro, Fintech Light, shadcn/ui Essentials, MagicUI Effects, and more.

14 packs, fully customizable

Design Validation

Real-time compliance checking across 8 token categories and 6 accessibility standards. Catch violations before they ship.

0–100 compliance scoring

Multi-IDE Support

One design system powers consistent output across Claude Code, Cursor, Windsurf, and VS Code — through a single MCP integration.

4 IDEs, 1 config

Visual Studio

Real-time design editor and previewer. See how your tokens look together before connecting them to AI tools. Live component previews.

Real-time preview engine

Import & Export

  • Import tokens from Figma Variables
  • Import from Tailwind CSS configs
  • Import from CSS custom properties
  • Export as Tailwind, CSS, or JSON

Team & Governance

  • Organization-scoped projects
  • API key management per project
  • Usage tracking and tier limits
  • Design profile compilation

Competitive Landscape

The gap no one else fills

Design system tools manage tokens for human workflows. AI coding tools generate code without design awareness. AIUI is the only product that connects both — enforcing design compliance at the point of AI code generation.

CapabilityAIUITokens StudioSupernovaFigma MCPzeroheight
Design token managementPartial
MCP integration
AI compliance validation
Auto-fix violations
Persistent design memory
Component recipes with AI rulesPartial
Multi-IDE from single config
Real-time token sync to AIPartial
Accessibility validation
Style pack marketplacePartial

Funding context

Design system tooling companies routinely raise $10–25M at Series A. AIUI operates in the same space with a more focused positioning and dramatically lower capital requirements.

Supernova

$24.8M

$9.2M Series A (2025), Y Combinator

Knapsack

$18.5M

Builders VC, Gradient Ventures

zeroheight

$10.4M

$10M Series A (2021)

Specify

€4M

Shut down Nov 2024

Supported Tools

Works with every major AI coding environment

AIUI connects through the Model Context Protocol. Any tool that supports MCP can use AIUI as a design context source. One configuration. Every IDE.

Claude Code

Terminal

Anthropic's CLI for Claude

Connect with a single terminal command. Full MCP support with streaming. Design memory loads automatically in every session.

claude mcp add aiui -- npx @anthropic-ai/aiui-mcp@latest

Cursor

.cursor/mcp.json

AI-first code editor

Add AIUI to your .cursor/mcp.json for project-level design enforcement. Tokens load automatically in every Composer session.

{
  "mcpServers": {
    "aiui": {
      "command": "npx",
      "args": ["@anthropic-ai/aiui-mcp@latest"]
    }
  }
}

Windsurf

MCP Settings

Codeium's AI IDE

Configure via the MCP settings panel. Design tokens load automatically in every Cascade session. Full compliance validation available.

Settings → MCP → Add Server → aiui

VS Code + Copilot

settings.json

GitHub Copilot in VS Code

Add AIUI to your VS Code settings.json under mcp.servers. Works with Copilot Chat for design-aware code generation.

"mcp": {
  "servers": {
    "aiui": {
      "command": "npx",
      "args": ["@anthropic-ai/aiui-mcp@latest"]
    }
  }
}

Getting Started

Start shipping consistent UI in 60 seconds

Free during beta. No credit card required.

Create an account, pick a style pack (or import your own tokens), and paste one config block into your AI tool. Every component your AI generates will match your design system from the first prompt.

Quick start

$ claude mcp add aiui

✓ Connected to AIUI

✓ Design memory loaded (31 tokens)

✓ 57 component recipes available

$ claude "Build a pricing page for my SaaS"

→ Using color.primary #3B82F6, font.heading Inter...

→ Compliance score: 100/100 ✓