What to paste into Cursor instead of a screenshot
A screenshot leaves the model guessing at spacing, type, and color. Here is what to put in the prompt so the component stays close to the page.
A screenshot is a picture. Cursor, Claude, and ChatGPT can describe it, and they will invent the padding, the type size, and the exact color while they do. The page already has those numbers. Put the numbers in the prompt.
Why a screenshot comes back wrong
The model sees shapes and a rough layout. It does not see padding: 24px, the rendered font, or whether the gray is #71717a or a transparency. It picks something plausible. The result looks related to the screenshot and fails the moment you put it next to the original.
Inspected HTML has the same hole when the styles live in another file. Hashed class names like css-1x2y3z are labels. Without the stylesheet, the model has the boxes and none of the paint. A walk-through of that failure is in why inspected code recreates a UI badly.
What to include
Each of these answers a question the screenshot leaves open.
A prompt that a coding agent can follow looks like this. Swap the values for the page you are looking at.
That block is specific enough to check. If the button comes back blue, the prompt was not followed. A screenshot of a blue button cannot be checked the same way, because the model never received the color.
What to leave out
- The whole page. Extra nav, footer, and cookie banners become extra components.
- Raw HTML whose classes point at a stylesheet you did not paste.
- A request to "make it pixel perfect" with no values. Name the values instead.
- Someone else's logo, product name, or copy you do not have the right to ship. Capture the layout as a reference, then replace the words.
Doing it by hand, then with TraceUI
By hand, the steps are the ones in the font and color guides. Read the rendered font, count the colors, and note the padding and radius from the Computed pane. Write them into the template above. Paste that into Cursor.
TraceUI does that read for the element you click, then Copy to AI gives you the prompt. React and Tailwind export, and the prompt, are on Pro and during the 7-day trial. HTML and CSS export is on the free plan, and you can paste that CSS into the same template.
Free toolAI-ready prompt generatorTurn any page or components into a clean, structured prompt layout ready to paste into Claude, Antigravity, Codex, v0 or Cursor.A short check before you send it
Read the prompt once and mark anything a stranger could not build from:
- Is the layout named, or only implied by a picture?
- Does every color have a value?
- Does the type have a family, a size, and a weight?
- Is there a single change you want, written as an instruction?
- Did you tell it what not to add?
If those five are yes, send it. If a line is still "make it look like the screenshot," replace that line with the number from the Computed pane.
