Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Expert UI design skill for Stitch MCP: enhances prompts, generates high-fidelity screens, and maintains design system consistency.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
workflows/generate-design-md.md
1---2description: Analyze a Stitch project and synthesize its design system into a .stitch/DESIGN.md file.3---45# Workflow: Generate .stitch/DESIGN.md67Create a "source of truth" for your project's design language to ensure consistency across all future screens.89## ๐ฅ Retrieval1011To analyze a Stitch project, you must retrieve metadata and assets using the Stitch MCP tools:12131. **Project lookup**: Use `list_projects` to find the target `projectId`.142. **Screen lookup**: Use `list_screens` for that `projectId` to find representative screens (e.g., "Home", "Main Dashboard").153. **Metadata fetch**: Call `get_screen` for the target screen to get `screenshot.downloadUrl` and `htmlCode.downloadUrl`.164. **Asset download**: Use `read_url_content` to fetch the HTML code.1718## ๐ง Analysis & Synthesis1920### 1. Identify Identity21- Capture Project Title and Project ID.2223### 2. Define Atmosphere24- Analyze the HTML and screenshot to capture the "vibe" (e.g., "Airy," "Professional," "Vibrant").2526### 3. Map Color Palette27- Extract exact hex codes and assign functional roles (e.g., "Primary Action: #2563eb").2829### 4. Translate Geometry30- Convert Tailwind/CSS values into descriptive language (e.g., `rounded-full` โ "Pill-shaped").3132### 5. Document Depth33- Describe shadow styles and layering (e.g., "Soft, diffused elevation").3435## ๐ Output Structure3637Create a `.stitch/DESIGN.md` file in the project directory with this structure:3839```markdown40# Design System: [Project Title]41**Project ID:** [Insert Project ID Here]4243## 1. Visual Theme & Atmosphere44(Description of mood and aesthetic philosophy)4546## 2. Color Palette & Roles47(Descriptive Name + Hex Code + Role)4849## 3. Typography Rules50(Font families, weights, and usage)5152## 4. Component Stylings53* **Buttons:** Shape, color, behavior54* **Containers:** Roundness, elevation5556## 5. Layout Principles57(Whitespace strategy and grid alignment)58```5960## ๐ก Best Practices61- **Be Precise**: Always include hex codes in parentheses.62- **Be Descriptive**: Use natural language like "Deep Ocean Blue" instead of just "Blue".63- **Be Functional**: Explain *why* an element is used.64