react-components
Converts Stitch designs into modular Vite and React components, or syncs/updates existing React components to align with the latest Stitch designs, using…
Extract a comprehensive design system (DESIGN.md) directly from frontend source code — React, Vue, Svelte, Angular, plain HTML/CSS, or any web framework. Analyzes component files, stylesheets, Tailwind configs, theme definitions, and design tokens to produce a rich,
$ npx -y skills add google-labs-code/stitch-skills --skill extract-design-md --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/extract-design-mdContext preview
The summary Claude sees to decide when to auto-load this skill.
Extract a comprehensive design system (DESIGN.md) directly from frontend source code — React, Vue, Svelte, Angular, plain HTML/CSS, or any web framework. Analyzes component files, stylesheets, Tailwind configs, theme definitions, and design tokens to produce a rich,
name: stitch::extract-design-md description: >- Extract a comprehensive design system (DESIGN.md) directly from frontend source code — React, Vue, Svelte, Angular, plain HTML/CSS, or any web framework. Analyzes component files, stylesheets, Tailwind configs, theme definitions, and design tokens to produce a rich, Stitch-compatible design system document. Use this skill whenever the user wants to reverse-engineer a design system from an existing codebase, audit the visual language of a project, extract design tokens from source files, or understand the styling patterns in a frontend repo — even if they just say "what does this app look like?" or "pull out the design from this code." allowed-tools: - "stitch*:*" - "Bash" - "Read" - "Write" - "web_fetch"
Analyze frontend source code to extract a comprehensive design system document (DESIGN.md) that captures the project's visual language — colors, typography, spacing, component patterns, and layout principles — directly from the source files, without needing to build or render the application.
The `design-md` skill works from rendered HTML. But often you have a codebase and want to understand its design system before you can even run the app — maybe dependencies are missing, the build is broken, or you just want a quick audit. This skill reads the source files themselves: stylesheets, component files, theme configs, and Tailwind setups. It's faster and works anywhere.
---
Start by understanding what you're working with. This determines which extraction patterns to use.
Scan the project root for telltale files:
| Signal File | Framework / Tool | |:---|:---| | `package.json` with `react` | React / Next.js | | `package.json` with `vue` | Vue / Nuxt | | `package.json` with `svelte` | Svelte / SvelteKit | | `package.json` with `@angular/core` | Angular | | `tailwind.config.js/ts` | Tailwind CSS | | `postcss.config.js` | PostCSS pipeline | | `styled-components` or `@emotion` in deps | CSS-in-JS | | `.css` / `.scss` / `.less` files only | Plain CSS / SASS | | `theme.js` / `theme.ts` / `tokens.js` | Design token files |
Read `package.json` first — it reveals the framework, CSS tooling, and any design-token libraries (e.g., `style-dictionary`, `@chakra-ui/react`, `@mui/material`, `ant-design`). This context tells you *where* to look for styling information.
Identify the key directories and files you'll analyze:
src/ ├── components/ ← Component-level styles ├── styles/ ← Global stylesheets ├── theme/ ← Theme definitions, tokens ├── assets/ ← Fonts, images ├── app.css ← Root styles └── index.css ← Entry CSS
Also check for:
Consult the appropriate reference for extraction patterns:
These references contain framework-specific patterns for locating colors, typography, spacing, and component styles. Read the one that matches before proceeding.
---
Work through each design dimension systematically. For each one, gather raw data from the source files, then synthesize it into descriptive language.
The goal isn't to dump every CSS property — it's to understand the *intent* behind the styling choices and describe them in human, editorial language that another designer (or Stitch) can use to recreate the same visual feel.
Read the broadest styling first to understand the overall mood:
cream (#f-range) signals airy/clean; dark (#0-#2 range) signals moody/dramatic.
Check padding/margin values on root containers, section wrappers, and card components.
many packed tight = information-dense.
Look for these signals in the source:
| Source Location | What It Tells You | |:---|:---| | Root `background-color` or Tailwind `bg-*` on layouts | Overall lightness/darkness | | Spacing scale in Tailwind config or CSS vars | Whitespace philosophy | | Number of components vs. wrapper padding | Density | | Custom property naming (`--warm-*` vs `--cool-*`) | Color temperature intent | | Comments in theme files | Design intent in the developer's own words |
Extract every unique
A collection of agent skills and plugins for Google Stitch, following the Agent Skills open standard. Compatible with coding agents such as Codex, Antigravity, Gemini CLI, Claude Code, Cursor, and OpenCode (manual install).
Repo: google-labs-code/stitch-skills
Converts Stitch designs into modular Vite and React components, or syncs/updates existing React components to align with the latest Stitch designs, using…
Convert Stitch HTML designs to React Native components, or syncs/updates existing native components to align with the latest Stitch designs, using StyleSheet.
Convert Stitch designs into production React + Vite dashboards with TanStack Query, accessible tokens from DESIGN.md, and Web3-ready patterns (ethers/viem).
Generate walkthrough videos from Stitch projects using Remotion with smooth transitions, zooming, and text overlays
Expert guidance for integrating and building applications with shadcn/ui components, including component discovery, installation, customization, and best…
Convert frontend code (Vite, React, Angular, Vue, etc.) to a Stitch Design by chaining static HTML extraction, design system extraction, and file upload.…