Mockup to code
Recreate a design and self-check it visually.
Official basis Provide rich content (images) plus a visual check to verify the result. docs ↗
The prompt
[paste screenshot] Build this component in <framework>. Then take a screenshot of your result, compare it against the mockup, and list the visual differences you still need to fix. Why it works
Pasting the mockup gives Claude the ground truth; asking it to screenshot and diff its own output gives it a check it can iterate against — the visual equivalent of running tests.
Fill in
- Paste or drag in the design screenshot.
<framework>— React, Vue, plain HTML/CSS, etc.
Follow-ups
- “Fix the spacing and font-weight differences you listed, then re-compare.”