Skip to content
← All AI workflows

Google Stitch: draft React components from approved screens

Convert approved Stitch screens into a React/Vite component draft. Use current-project tokens, the shared style values, and actual routes. Keep screen records for review. The validator checks limited code structure, not visual fidelity, working business logic or production readiness.

From the source

Public repository page from Google Labs / Stitch
Google Labs / Stitch · Captured 2026-10-14Read the original

How it works

  • The skill uses screen metadata, HTML and full-size screenshots. Existing local designs require a refresh decision.
  • Tokens must come from the current project. Tokens copied from another project are not acceptable.
  • Drafts separate components, hooks and mock data. Real routes and product behavior require implementation and testing.
  • The inspected AST validator checks a Props interface and hexadecimal colors in literal className values. It does not enforce every architecture, route or dark-mode rule.
  • Validation and browser checks require permission. No Stitch export, generated application or validator execution was demonstrated in this research.

Workflow guide

  1. Retrieve every approved screen through configured Stitch MCP access. Ask before refreshing existing local designs.

  2. Download HTML and full-size screenshots with the skill's fetch-stitch.sh helper after download authorization. Record screen IDs, dimensions, project information and last-sync time.

  3. Inspect screenshots. Extract the current screen HTML's Tailwind configuration into a proposed style-guide.json. Do not reuse another project's palette.

  4. Draft reusable components in isolation. Obtain authorization before implementation. Include typed Props interfaces, separate hooks and mock content, and actual routes instead of placeholder anchors.

  5. Get permission for optional validation and browser checks. Record responsive defects, token mismatches and broken routes for the fixed screen set.

  6. Test interactions, authentication, real data, accessibility and error states separately. Require human review before any production merge.

Sources and downloads

Discuss this workflow →

Book a call

A free 30 minute call. Tell us where you are with AI, what your IT allows, and what management needs to see. We'll tell you honestly what we would do first.