Why AI can't copy a design from a screenshot
Words plagio team
One developer gave an AI agent a screenshot of a 1996 website, the assets and a set of measuring tools, and it still couldn't match it. A picture leaves out most of what you need.
Pasting a screenshot into Cursor, Codex or Claude Code is the first thing everyone tries, and it does something: you get roughly the right layout. Then you look closer and the type is off, the spacing is off, and the page feels like an impression of the original.
The Space Jam test
The best write-up of this comes from Jonah Glover, who asked Claude Code to recreate the 1996 Space Jam site from a screenshot and its asset folder, with a logging proxy to watch what happened. It's about as easy as this gets: a static page where the images are already provided.
It didn't get there, even after he built it grid overlays, colour comparisons, a side-by-side viewer and a zoomed reference. It kept describing its work as precise when its own checks said otherwise, and he ended the post without a fix. He tested one model, and we haven't seen an equally careful test of the others, so don't read this as a problem with one product.
His explanations are worth reading, and he's careful to call them theories. Images are split into fixed patches before the model sees them, so fine spatial detail may simply be lost. And the model may treat its own earlier output as correct, so each round confirms the mistake.
What a screenshot leaves out
| What you need | In a screenshot? |
|---|---|
| Rough layout | Yes |
| Exact font and weight | No, it has to guess from the shapes |
| Size, line height, tracking | No, only an estimate |
| Exact colours | Approximately, after compression and blending |
| Hover and focus states | No |
| Animation and timing | No |
| Behaviour on a phone | No |
| Structure of the markup | No, it's invented |
Most of what makes a design feel considered sits in the rows marked no. That's why the copy looks familiar and still feels wrong.
Do pixel-diff loops help?
Some developers have the agent build, compare against the target with a tool like pixelmatch, and fix what differs. It gets closer, especially on a single simple component. Others say that it burns time and tokens for less and less, and the Space Jam run suggests a model can get stuck even with good checks. It also can't tell you about anything that isn't on screen in that one picture.
When a screenshot is the right input
- You're sketching a rough layout and will design the details anyway.
- All you have is a picture: a Dribbble shot, a mockup, a page that no longer exists.
- You want the idea, not the numbers.
If the page is live, read the page
A live page has already got the answers. The browser knows the exact font, the computed size of every element, the colours as rendered and the transitions. Give your agent those and nothing needs estimating. You can do it by hand in devtools, with a free extractor, or from inside your agent with a tool like plagio, which is ours.
It won't be perfect either. Canvas and WebGL have no DOM to read, and some sites refuse automated browsers. But for an ordinary website, measuring beats looking.
Questions people ask
Can AI recreate a website from a screenshot?
It can get the rough layout, but exact matches are unreliable. A screenshot doesn't contain the real font, sizes, hover states, motion or markup, so the model has to estimate them, and one well-documented test failed even with measuring tools.
How do I get AI to copy a design accurately?
If the page is live, give the agent the values the browser actually computed rather than a picture: font, sizes, colours, spacing, hover states and timings. Keep the result as a reference and use your own words and brand.
Is pixel-perfect possible with Cursor, Codex or Claude Code?
On a small, simple component with a comparison tool in the loop, it can get close. Across whole pages, developers report diminishing returns, and pixel matching doesn't cover hover, motion or other screen sizes.
Sources, checked 5 November 2026
- I failed to recreate the 1996 Space Jam website with Claude, Jonah Glover
- Can AI tools implement designs perfectly?, DEV
Names and products belong to their owners. Prices and features change: if something here is out of date, write to support@plagio.dev and we'll fix it.
Give your agent a real reference.
Start the free week