TraceUITraceUI
FeaturesPricingBlog
Log inChromeAdd to Chrome
TraceUITraceUI

Copy code and design from any website. Create your personal UI design library of Colors, design systems, and components - saved, organized, and ready for your next build.

Product

FeaturesToolsCompareContact

Compare

vs DivMagicvs CSS Peepervs Magic UIvs Tweakcn

Free Tools

Color Palette ExtractorDesign System ExtractorFont IdentifierMedia DownloaderSVG GrabberAI Prompt GeneratorCSS Inspector

Legal

AboutBlogPrivacy PolicyTerms of ServiceDMCA Policy

Links

ThemefyZennboxAcsis

© 2026 Trace UI. All rights reserved.

A project by BhuwanA project by Bhuwan
Blog/Guides

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.

Bhuwan MahatoNov 17, 2026 · 3 min read

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.

TL;DR

Paste the component's structure and its real styles: the markup or the Tailwind, the colors, the type, and the spacing. Say what you want changed. Leave out the rest of the page. A screenshot can sit beside that. It should not be the only thing you paste.

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.

Put this in the promptThe question it answers
The element, not the whole pageWhat should be built
Layout in one sentenceRow, stack, or grid, and what wraps
Colors by role, with valuesWhich gray, which brand color
Font family, size, and weightWhat the type actually is
Padding, gap, and radiusHow tight it is
One change, if you want oneWhat must differ from the reference

A prompt that a coding agent can follow looks like this. Swap the values for the page you are looking at.

Output
1Build a pricing card in React and Tailwind.
2
3Layout: stacked, max width 360px, padding 24px, gap 16px between blocks.
4Radius: 12px. Border: 1px solid #e4e4e7. Background: #ffffff.
5Eyebrow: 12px, medium, #71717a, letter-spacing 0.04em.
6Price: 36px, semibold, #18181b.
7Body: 14px, #3f3f46, line-height 1.5.
8Button: full width, background #18181b, text #ffffff, radius 8px, padding 10px 16px.
9
10Keep the structure. Change the price to "$8/mo" and the button label to "Start".
11Do not add sections that are not listed.

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.
The screenshot in TraceUI is a thumbnail

When you capture an element, the cropped screenshot is stored for the library. It is not sent to the model. Copy to AI sends the component as a prompt or as Markdown. You can still attach a screenshot yourself. Put the styles in the same message.

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:

  1. Is the layout named, or only implied by a picture?
  2. Does every color have a value?
  3. Does the type have a family, a size, and a weight?
  4. Is there a single change you want, written as an instruction?
  5. 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.

On this page
  • Why a screenshot comes back wrong
  • What to include
  • What to leave out
  • Doing it by hand, then with TraceUI
  • A short check before you send it

Keep reading

  • How to extract a famous website's design system and make it yours
    Guides

    How to extract a famous website's design system and make it yours

    Pull the colors, type, spacing, radius, and shadows from any live website with TraceUI, fine-tune them in the web editor, and export CSS, JSON, or shadcn tokens.

    Nov 26, 2026·4 min read
  • Best way to export web elements into code
    Guides

    Best way to export web elements into code

    Compare DivMagic, MiroMiro, Picker.Design, Webpage Code Extractor, and manual methods. What actually gives clean, reusable React + Tailwind.

    Nov 23, 2026·6 min read
  • How to turn a website's colors into Tailwind
    Guides

    How to turn a website's colors into Tailwind

    Pull the colors off any live page, drop the one-off hex values, name what is left by role, and write them into a Tailwind v3 or v4 theme.

    Nov 18, 2026·3 min read

See something you like? Ship it in one click.

ChromeBraveEdge

Works in Chrome, Brave and Edge.

Start Creating