How They Use AI  |  Newest

<< Home  |  Work

Eliminated 30 minutes of CSS tweaking per screen

AreaWork
AI usedGoogle Stitch and Claude Code
Sourcer/ClaudeCode
Posted2026-03-25

The move

Export UI designs from Google Stitch as a ZIP file and provide them to Claude Code as a visual and technical reference for implementation.

Steps

  1. Generate your UI screen using a text prompt in Google Stitch.
  2. Use the variants feature to iterate on the design until it meets your requirements.
  3. Export the final design as a ZIP file containing the PNG and HTML/CSS.
  4. Unzip the files into your project directory.
  5. Instruct Claude Code to build the component by referencing the provided PNG and HTML/CSS files.

Prompt for your AI

Look at the design.png and index.html files in [path to design folder]. Build this screen using my existing components in [path to components folder] and match the design exactly.

What happened

Previously, Claude Code generated frontend code without visual context, requiring manual CSS adjustments to match desired layouts. By using Google Stitch to generate UI screens, the user obtains both a visual PNG and the underlying HTML/CSS. Providing these files to Claude Code allows it to build the interface to exact specifications without guessing styles.

Watch out

The HTML export provides a download URL rather than raw code, requiring an extra step to fetch the file. The tool currently requires a Google API key and only supports Gemini models.

Give it to your agent

Read https://howtheyuse.ai/p/eliminated-30-minutes-of-css-tweaking-per-screen.md and help me do this.

Sources



Last updated November 26, 2026.