<< Home | Work
Eliminated 30 minutes of CSS tweaking per screen
| Area | Work |
| AI used | Google Stitch and Claude Code |
| Source | r/ClaudeCode |
| Posted | 2026-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
- Generate your UI screen using a text prompt in Google Stitch.
- Use the variants feature to iterate on the design until it meets your requirements.
- Export the final design as a ZIP file containing the PNG and HTML/CSS.
- Unzip the files into your project directory.
- 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.