Help us improve
Share bugs, ideas, or general feedback.
From design-intent
Converts Google Stitch Tailwind HTML+PNG exports into composable React components integrated with project design patterns and tokens.
npx claudepluginhub joaquimscosta/arkhe-claude-plugins --plugin design-intentHow this skill is triggered — by the user, by Claude, or both
Slash command
/design-intent:stitch-to-reactThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Convert Google Stitch exports (Tailwind HTML + PNG) into React components with full design system integration.
Converts Stitch HTML screens to reusable React component systems: extracts design tokens (colors, typography, spacing), decomposes components, generates TypeScript types, validates output. For Stitch-to-React conversions.
<!-- AUTO-GENERATED by export-plugins.py — DO NOT EDIT -->
Converts Stitch designs into modular Vite + React + TypeScript components with Tailwind theming, dark mode via CSS variables, and clean architecture. For plain React apps (Vite/CRA), not Next.js App Router.
Share bugs, ideas, or general feedback.
Convert Google Stitch exports (Tailwind HTML + PNG) into React components with full design system integration.
Core Philosophy: Decompose Stitch screens into composable React components while respecting established patterns.
Before any conversion, verify Stitch exports are available:
# Check for HTML/PNG pairs in the expected location
Glob: design-intent/google-stitch/{feature}/exports/*.html
Glob: design-intent/google-stitch/{feature}/exports/*.png
If exports found: Proceed to Step 1.
If exports NOT found:
/stitch-generate first to create exports/design-intent/patterns/ for established patterns or project directories for screenshotsReport findings:
Export Check: [PASSED/MISSING]
- HTML files: [count] found
- PNG files: [count] found
- Location: design-intent/google-stitch/{feature}/exports/
Before any conversion:
/design-intent/memory/constitution.md for project principles/design-intent/patterns/ for established patternsStitch exports are located at:
design-intent/google-stitch/{feature}/exports/
├── 01-layout-{name}.html # Tailwind CSS + HTML
├── 01-layout-{name}.png # Visual reference
├── 02-component-{name}.html
├── 02-component-{name}.png
└── ...
From each HTML file, extract:
tailwind.config (colors, fonts, spacing)<style> blocks (animations, keyframes)For each Stitch element:
Output structure:
src/components/{feature}/
├── {ComponentName}.tsx # Main component
├── {SubComponent}.tsx # Decomposed smaller components
├── tokens.ts # Design tokens from Stitch config
├── types.ts # TypeScript interfaces
└── index.ts # Re-exports
Per constitution principles:
/design-intent/patterns/When Stitch output conflicts with patterns:
## Design Conflict Detected
**Element**: Button border-radius
**Stitch Output**: 4px
**Existing Pattern**: 8px (button-styling.md)
### Options
1. Follow Stitch output - Use 4px
2. Use existing pattern - Use 8px
3. Update pattern - Make 4px the new standard
Which approach?
/**
* CUSTOM COMPONENT: ComponentName
* Source: Stitch screen name
* Base: @fluentui/react-components/ComponentType (if applicable)
* Reason: Why custom implementation was needed
* Created: YYYY-MM-DD
*
* Original Reference: design-intent/google-stitch/{feature}/exports/{screen}.png
*/
Triggered by:
design-intent/google-stitch/ exports