Persistence Architecture
Master File
Purpose: Global design system - colors, typography, spacing, components Contains:- Complete design system recommendation
- Landing page pattern
- UI style guidelines
- Color palette (hex codes)
- Typography pairing (Google Fonts)
- Key effects and animations
- Anti-patterns to avoid
- Pre-delivery checklist
Page Overrides
Purpose: Page-specific deviations from Master rules Contains:- Only rules that differ from Master
- Page-specific color variations
- Unique typography for special sections
- Page-specific components
Basic Workflow
Commands
Persist Master Design System
Generate and save todesign-system/MASTER.md:
design-system/dataflow/MASTER.md
Persist with Page Override
Generate Master + page-specific override:design-system/dataflow/MASTER.md(if doesn’t exist)design-system/dataflow/pages/checkout.md
Custom Output Directory
Save to a custom directory:Hierarchical Retrieval
Retrieval Logic
Context-Aware Prompt
When building a page, use this prompt pattern:Real-World Example
Scenario: E-commerce Platform
Step 1: Generate Master Design System
design-system/luxe-boutique/MASTER.md
Contents:
Step 2: Create Checkout Page Override
design-system/luxe-boutique/pages/checkout.md
Contents:
Step 3: Build Checkout Page with Hierarchical Retrieval
AI Prompt:- Reads
design-system/luxe-boutique/MASTER.md - Finds
design-system/luxe-boutique/pages/checkout.mdexists - Uses Master colors (Black, White, Gold) except for success/warning/danger (overridden to Green/Amber/Red)
- Uses Master typography (Playfair Display + Montserrat) but increases body text to 16px (override)
- Disables parallax (override) but keeps other Master effects
- Adds checkout-specific components (trust badges, progress indicator)
File Structure Examples
SaaS Product
Marketing Site
Multi-Brand Platform
Markdown Format
By default, persisted files use Markdown format for readability:When to Use Persistence
Use persistence when:
- Building multi-page applications
- Working on long-term projects
- Maintaining design consistency across sessions
- Collaborating with team members
- Different pages need different design rules
Version Control
Commit design system files to version control:- Track design system evolution
- Collaborate with designers/developers
- Revert to previous design decisions
- Branch for design experiments
Team Collaboration
Designer → Developer Workflow
AI Assistant → AI Assistant
Different AI assistants can use the same design system:- Claude Code generates Master design system
- Cursor uses Master to build dashboard
- Windsurf uses Master + checkout override to build checkout
design-system/ folder.
Updating Design Systems
Update Master
Regenerate Master file (overwrites existing):design-system/dataflow/MASTER.md
Update Page Override
Regenerate page override (overwrites existing):design-system/dataflow/pages/checkout.md
Manual Editing
You can manually edit Markdown files:Troubleshooting
Design System Not Found
Problem: AI can’t find design system files Solution: Check file pathsPage Override Not Working
Problem: AI uses Master rules instead of page overrides Solution: Verify prompt includes page file checkMultiple Projects Conflict
Problem: Mixing design systems from different projects Solution: Use project-specific foldersNext Steps
Design System Workflow
Learn the complete design system generation workflow
CLI Commands
Master the uipro-cli command-line tool