stitch::extract-design-md
What it does
This skill studies frontend source files to describe a project's visual design system in a DESIGN.md file. It is for people who want to document or unify a site's styling.
When to use it
- βWhen you want to document the design system of an existing frontend project.
- βWhen you want to audit or unify the styling across a codebase.
- βWhen the app cannot be built but its source code is available.
Skill link
https://github.com/google-labs-code/stitch-skills/blob/main/plugins/stitch-design/skills/extract-design-md/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βRead our React project's styles and Tailwind config and write a DESIGN.md that describes our colors and typography.β
5 new skills a week. 1 minute to read.
How it works
It reads stylesheets, component files and theme settings, then writes a summary of colors, type, spacing and patterns.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Extract Design System from Frontend Code
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.
Why This Exists
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.
When to Use
- User has a frontend codebase and wants to extract or document its design system
- User wants to migrate a project's visual identity into Stitch
- User asks to "audit the styling" or "understand the design language" of a repo
- User wants to create a DESIGN.md from existing source code
- The app can't be built/rendered but the source is available
- User wants to unify or reconcile inconsistent styles across a codebase
Prerequisites
- Access to the frontend project's source directory
- No build or runtime dependencies needed β this skill reads source files only
Workflow
Phase 1: Project Discovery
Start by understanding what you're working with. This determines which extraction patterns to use.
1. Detect the Framework and Stack
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.
2. Map the Source Tree
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:
tailwind.config.js/tailwind.config.tsβ Custom colors, fonts, spacingglobals.css/global.cssβ CSS custom properties (variables)- Any
theme.*ortokens.*files - Component library config (e.g.,
chakra-theme.ts,vuetify.config.ts)
3. Read Framework-Specific Guidance
Consult the appropriate reference for extraction patterns:
- React / Next.js / Tailwind β references/react-tailwind.md
- Vue / Nuxt β references/vue.md
- Svelte / SvelteKit β references/svelte.md
- Angular β references/angular.md
- Plain CSS / SASS / Less β references/plain-css.md
These references contain framework-specific patterns for locating colors, typography, spacing, and component styles. Read the one that matches before proceeding.
Phase 2: Deep Extraction
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.
1. Visual Theme & Atmosphere
Read the broadest styling first to understand the overall mood:
- Root background: What's the
bodyor root element background? Light cream (#f-range) signals airy/clean; dark (#0-#2 range) signals moody/dramatic. - Whitespace philosophy: Are spacing values generous (32px+) or tight? Check padding/margin values on root containers, section wrappers, and card components.
- Density: Count the components per page/section. Few with space = minimal; many packed tight =
FAQ
Do I need to run the app?
No, the skill reads source files only, so no build or running app is needed.
What frameworks does it work with?
The skill works with React, Vue, Svelte, Angular and plain HTML and CSS.
Can the result be used in Stitch?
Yes, the document is made to be compatible with Stitch.
Details
Original description by the author
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?
Popularity
- GitHub stars
- 8.7k
- Ranking position
- #12342
- License
- Apache-2.0
- Updated
- 8/17/2026
Comments
- β¦
More skills from this repository
stitch::react-components
8.7kHelps your agent turn Stitch designs into React and Vite components, or update existing components to match the latest design, with checks.
stitch::react-native
8.7kHelps your agent convert Stitch web designs into React Native components for phone apps, or update existing mobile screens to match a newer design.
react-vite-dashboard
8.7kHelps your agent build data-heavy React and Vite dashboards from Stitch designs, with TanStack Query and design tokens from a DESIGN.md file.
shadcn-ui
8.7kHelps your agent find, install and customize shadcn/ui components, copy-in interface pieces built with Radix or Base UI and Tailwind CSS.
Similar skills
canvas
394kLets your agent show a hosted visual widget on a connected Mac panel, then hide the panel or move it to another page.
control-ui
394kHelps your agent organize and troubleshoot the OpenClaw Control UI, including sessions, dashboards, and connected Gateways.
diagram-maker
394kHelps your agent create clear diagrams as SVG, HTML, or editable Excalidraw files for processes, system architecture, and whiteboard sketches.