Dev.to WebDev 🛠 Dev 👁 0 📖 6 min read

Website to LLM Prompt: How to Turn Any Page Into a Brief an AI Can Rebuild

Originally published on Crafttor. TL;DR: An LLM can only rebuild what you describe. A screenshot shows pixels, so the model guesses at fonts, colours, spacing and every interaction it cannot see. A good website to LLM p

Originally published on Crafttor.

TL;DR: An LLM can only rebuild what you describe. A screenshot shows pixels, so the model guesses at fonts, colours, spacing and every interaction it cannot see. A good website to LLM prompt carries facts instead: the layout tree, exact colour values, font stacks, icons as SVG, hover and animation details, and any recorded flow. You can write that brief by hand, or press Copy for LLM in the WebCapture Chrome extension and get it from the live page.

Why screenshots alone make AIs guess

Paste a screenshot into Claude or ChatGPT and ask for HTML. You will get something that looks related. Look closer and the gaps appear.

A screenshot cannot tell the model:

  • Which font is used. It sees letter shapes, not a font stack. It picks something close.
  • Exact colours. Compression and anti-aliasing shift hex values. Gradients lose their stop positions.
  • Real spacing. Padding and gaps are estimated from pixels, so rhythm drifts.
  • What is hidden. Menus, tabs, modals and tooltips that were closed simply do not exist for the model.
  • What moves. Hover states, transitions and keyframe animations are invisible in a still image.
  • What the icons are. The model redraws or substitutes icons, often from a different set.

None of that is the model being careless. It is filling gaps with plausible defaults. The fix is to remove the gaps.

What a good rebuild brief contains

Think of the brief as a spec sheet a front end developer could build from without opening the site. It has six parts.

1. Layout

Describe structure, not just appearance. Name the regions: header, hero, feature grid, footer. Give widths, heights, padding and gaps for each box. Say whether a row is flex or grid, and how it wraps. State the viewport width you captured at, since a 1440px layout and a 390px layout are different briefs.

2. Colours

Give hex or rgb values, not names. "Dark blue" is a guess; #1a2b4c is a fact. For gradients, list the type, angle and every stop with its position. For shadows, give offset, blur, spread and colour. For borders, give width, style, colour and corner radius.

3. Fonts

List the font family stack exactly as the page declares it, plus size, weight, line height and letter spacing per text style. Say which fonts come from Google Fonts, so the model can load the same ones.

4. Icons

Paste icons as inline SVG markup. This is the single biggest accuracy win in most briefs. An icon described in words comes back as a different icon.

5. Interactions

List each interactive element and what it does. For a hover, state the property that changes, the start and end values, the duration and the easing. For keyframe animations, give the keyframes. For sticky headers or scroll-reveal sections, say so explicitly.

6. Recorded flow

If the page has states you reach by clicking, describe the sequence. Step 1: click "Pricing". Step 2: the yearly toggle switches and prices change. Each step should say what appeared, disappeared or changed.

A brief template you can reuse

Here is a compact structure that works in Claude and ChatGPT alike.

Rebuild this page as a single HTML file with inline CSS and JS.
This is a reproduction, not a redesign. Do not change copy,
colours, fonts or layout. Do not add features.

Viewport: 1440px wide.
Fonts: <stack, sizes, weights, line heights>
Colours: <tokens with hex values, gradient stops, shadows>
Layout: <region by region, with box sizes and gaps>
Icons: <inline SVG for each>
Interactions: <element, trigger, property, values, duration, easing>
Flow: <numbered steps with what changes>

The opening lines matter. Models with design skills tend to "improve" things. Telling them up front that this is a reproduction keeps them honest.

The slow way: writing the brief by hand

You can build this brief yourself with Chrome DevTools. Inspect each element, read the computed styles, copy values, export SVGs from the Elements panel, and trigger hover states with the :hov toggle. It works.

It also takes a long time on any real page. You will miss things, especially nested gradients and short transitions. And you need to repeat it for every state of every component.

The fast way: Copy for LLM

The WebCapture to Figma Chrome extension has a Copy for LLM button. You open the page in Chrome, capture it, and copy the brief. It carries:

  • the layout
  • colours, with real gradient stops, border and shadow values
  • fonts
  • icons as inline SVG
  • every interaction
  • any recorded flow

You then paste it into a Figma code layer's AI, into Claude, or into ChatGPT. The AI rebuilds the page from facts instead of guessing.

Because the extension captures the page as you see it in your own browser, it works on pages behind a login too. If you want a flow in the brief, record it first; the steps are in recording a website user flow.

Capture or rebuild only designs you own or have permission to use.

Get WebCapture to Figma for the plugin side, and add the Chrome extension for Copy for LLM.

Screenshot vs captured brief

What the AI needs Screenshot Captured brief
Font family Guessed from shapes Declared font stack
Colour values Approximate, compressed Exact values and gradient stops
Spacing Estimated Measured from the layout
Icons Redrawn Inline SVG
Hover and animation Not visible Listed per element
Hidden states Missing Included if you record a flow

Screenshots still have a place. A quick screenshot is fine when you want inspiration or a loose starting point. When you need a faithful rebuild, give the model facts.

Tips for pasting a long brief

  • Start a fresh chat. Old context can pull the model toward earlier answers.
  • Ask for one page at a time. Check it before you ask for more states.
  • Correct with specifics. "The hero gradient stops are wrong, use the values in the brief" works better than "make it closer".
  • Keep it a reproduction. If the model adds a feature or rewrites copy, say "Don't add anything the brief doesn't describe."

For a full walkthrough of the Claude side, see rebuilding a website with Claude.

Privacy

The plugin never sends anything to an AI. Copy for LLM puts the brief on your clipboard, and you decide where to paste it. Captures pasted from the extension stay on your machine.

FAQ

What is a website to LLM prompt?

It is a written description of a web page, detailed enough for a large language model to rebuild it. A good one includes layout, exact colours, fonts, icons, interactions and any multi-step flow.

Does Copy for LLM work with ChatGPT and Claude?

Yes. You can paste it into a Figma code layer's AI, Claude or ChatGPT. It is plain text on your clipboard.

Can I just send a screenshot with my prompt?

You can, and it helps as a visual reference. On its own, though, a screenshot forces the model to guess fonts, colour values, icons and every interaction it cannot see.

Does WebCapture send my page to an AI?

No. The plugin never sends anything to an AI. You paste the brief yourself.

Do I need the Figma plugin to use Copy for LLM?

Copy for LLM lives in the Chrome extension. The WebCapture to Figma plugin is the free Figma side, for importing editable frames and preparing code layers.

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.