new1
Style Pack
Vibrant, bold design system for startups with gradient accents and modern aesthetics
color12
radius4
font3
spacing6
shadow3
elevation3
Components
Claude Integration
Add MCP Server
Add to .mcp.json in your target project:
{
"mcpServers": {
"aiui": {
"type": "streamable-http",
"url": "http://localhost:8080/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}Quick Setup — get an API key and connect in 30 seconds. Or manage API keys to replace YOUR_API_KEY above.
Alternative: Local MCP (self-hosted)
{
"mcpServers": {
"aiui": {
"command": "npx",
"args": ["tsx", "<path-to-AIUI>/apps/mcp-server/src/index.ts"],
"env": {
"DATABASE_URL": "postgresql://aiui:aiui@127.0.0.1:5432/aiui"
}
}
}
}Sync Design Memory
Ask Claude to sync your design system. This creates persistent memory files that Claude reads automatically:
Claude will call sync_design_memory which generates:
.aiui/design-memory.md— Full design context: tokens, components, rules.aiui/tokens.json— Machine-readable token values
Add to CLAUDE.md
Add this to your project's CLAUDE.md so Claude loads the design memory in every conversation:
# Design System This project uses AIUI for design management. See `.aiui/design-memory.md` for the active design system — tokens, components, and rules. Always follow the design rules defined there before building any UI.
How the Design Memory works
.aiui/ files live in your project repo. Claude reads them at the start of every conversation.
Say "re-sync design memory" after changing your style pack or components in AIUI. Files update from the database.
Memory contains your exact token values, component list, and usage rules — not generic instructions.
Claude calls validate_ui_output after generating code to check compliance with your design system.
The flow
- 1You ask Claude to build UI — Claude reads
.aiui/design-memory.mdautomatically - 2Claude knows your 31 tokens, 1 components, and design rules from memory
- 3Claude calls
get_component_recipeto get the full code template for each component it needs - 4Claude generates on-brand code using your exact tokens and component patterns
- 5Claude calls
validate_ui_outputto verify compliance — catches hardcoded colors and wrong fonts