Design Systems via MCP
How to retrieve and apply LiveFolio design systems through MCP tools for visually consistent AI-generated folios.
Retrieving Design Systems
Call get_active_design_system with a project_id to get the complete 9-section design specification.
Response Structure
{
"usesTailwind": true,
"fonts": ["Outfit", "Inter"],
"themeAnalysis": "# 🎨 LiveFolio Unified Design System: My Project\n\n...",
"projectMode": "document",
"theme": "Premium SaaS Deck",
"palette": "Cobalt Ocean",
"typography": "Outfit & Roboto Mono"
}
The 9-Section Design Document
The themeAnalysis field contains a comprehensive markdown document:
- Visual Theme Style & Brand Identity — active theme preset and identity description
- Harmonious Palette & Custom Colors — palette with hex values, any custom overrides
- Typography Scaling & Font Selection — font pair with usage guidelines
- Elevation, Shadow & Border Radii — depth and rounding specifications
- Responsive Grid & Container Specs — width constraints and grid patterns
- Interaction Micro-animations — hover, focus, and transition rules
- Intent Mode Layout Best Practices — mode-specific layout guidelines
- Approved Script & External Libraries — CDN URLs for approved libraries
- Anti-AI-Slop Do's and Don'ts — quality checklist and custom guidelines
Using Design Systems in Agent Workflows
Before Creating a Folio
- If there are existing folios in the workspace, call
get_active_design_systemon one to understand the brand - Use the theme, palette, and typography in your HTML generation
- Follow the anti-slop guidelines to avoid common AI generation issues
Before Updating a Folio
- Call
get_active_design_systemon the target project - Apply the specified theme colors, fonts, and spacing
- Respect the mode layout guidelines (document vs deck vs spreadsheet vs dashboard)
- Only use approved libraries from the design system
Example Agent Prompt Pattern
"Before editing, call
get_active_design_systemon project X. Use the exact palette hex colors, the specified font pair, and follow the anti-slop checklist. Only use libraries from the approved list. Match the elevation and border radius specifications."
Design System Inheritance
- Each project has its own independent design preferences
- There is no global or workspace-level design system — each folio is self-contained
- When creating a new folio, you can either inherit preferences from an existing folio or specify new ones
Custom Guidelines
The customGuidelines field in design_preferences enforces project-specific rules. These appear in section 9 of the design document:
#### 📌 Project Specific Custom Enforcements:
> "Use HSL custom properties for all colors. No inline styles. All buttons must have hover transitions."
AI agents should treat custom guidelines as mandatory requirements.