← All use cases

Build responsive front-end designs

Convert screenshots and visual references into responsive interfaces, verified by visual checks.

ZeroTwo converts screenshots and design briefs into code consistent with your repo's design system, then uses Playwright to compare the build with your references across several screen sizes and keeps adjusting until it matches.

Intermediate
1h

Related links

Skills & Plugins

  • Playwright
    Drives a real browser on your computer to check the result ($playwright). Needs the desktop app and Node.js with npx.

Starter prompt

I'm attaching desktop and mobile screenshots of the new pricing page, plus the hover and empty states. Build it in this repo using our existing components and design tokens rather than inventing new styles. Open it in a browser at phone, tablet and desktop widths, compare each against my screenshots, and keep adjusting until the differences are gone. List anything you couldn't match.

Introduction

Attach screenshots or a written brief and ZeroTwo builds responsive UI that follows your project's patterns. It then opens the page in a browser and compares it with your references.

Start from references

Give clear references, ideally several states: desktop, mobile, hover, empty and loading. Images can be attached, pasted or dragged into the composer.

Be specific

Models fall back on generic styling when the brief is thin. The more reference material and explicit direction you give, the more distinctive the result.

Prepare the design system

Existing repos usually work without setup. For a new or unusual stack, name the primitives, tokens and canonical components, and ask ZeroTwo to translate each screenshot into them.

Leverage Playwright

Turn on the Playwright plugin so the agent can open the page in a real browser, resize the window and take screenshots at each breakpoint. Run this in Work or Code on the desktop app.

Iterate

Complex layouts take several rounds. Ask for a side-by-side comparison with the screenshots, and tell it to prefer your design tokens when the two disagree.

Suggested follow-up prompt

[current image] [reference image] This doesn't match; fix: [differences]

Related use cases