I found a way to clone any website design using Claude + Chrome DevTools MCP — here's the exact prompt0
Posted by Confident_Repair_904@reddit | learnprogramming | View on Reddit | 7 comments
I found a way to clone any website design using Claude + Chrome DevTools MCP — here's the exact prompt
Hey, this is my first post here. I've been experimenting with AI workflows lately and wanted to share something that actually saved me a ton of time.
I've been looking for a solid way to reproduce website designs I like — not copy them pixel by pixel, but take the visual foundation and rebuild it my way. Tried a bunch of stuff, but recently stumbled onto a workflow that actually works.
What you need: - Claude Code or Cursor (Codex works too) - Chrome DevTools MCP — connects to your browser and gives Claude direct access to the page structure - A screenshot of your reference site
How it works:
Pick any site you like visually. Take a screenshot. Connect Chrome DevTools MCP — it lets Claude look directly into the DOM, styles, spacing, and fonts. Then you talk to Claude block by block: start with the header, then the hero section, then cards, etc. It reads the structure, uses the screenshot as a visual reference, and builds each block one at a time.
The result isn't a blind copy — it's clean, properly written code that follows the same visual logic.
Prompt to get started:
I'm going to give you a reference website to use as visual inspiration. Here is the screenshot: [attach screenshot]. I've also connected Chrome DevTools MCP — use it to inspect the page structure, fonts, spacing, and colors directly.
Let's build this page block by block. Start with the header. Analyze the reference, inspect the DOM if needed, and write clean HTML/CSS (or React — specify your stack) that visually matches the reference. Don't copy the content — just the layout, spacing, typography, and color logic.
After each block, wait for my confirmation before moving to the next one.
The whole thing takes around 20–40 minutes for an average landing page. The key is not to rush it — let Claude finish each block properly before moving on, otherwise you'll end up fixing things later.
probability_of_meme@reddit
Wow, curious what was going on here to get removed. Rule 7 (illegal) or Rule 8 (interferes with reddit)?
Confident_Repair_904@reddit (OP)
I'm really curious too. How did he interfere with Reddit?
ntoir1@reddit
Why was it removed?
Afraid-Plankton-6306@reddit
Been using something similar but never thought to connect the DevTools directly - that's actually genius. The block by block approach makes so much sense too, I always get overwhelmed trying to tackle whole layout at once
Does this work well for more complex layouts or mainly just landing pages? I'm thinking about some ecommerce sites that have crazy grid systems
Confident_Repair_904@reddit (OP)
Yeah, to be honest, I haven’t fully tested it on really complex projects like big e-commerce platforms yet.
But I did run a test on a pretty complex landing page with heavy animations — and it actually managed to capture all the animations that were used there, which honestly surprised me.
Under the hood, what’s happening is pretty interesting: it actually opens the site, takes screenshots of specific parts of the screen, sends them back to the model, and analyzes them. So it’s not just reading the code via DevTools — it’s also “seeing” the layout visually from screenshots and figuring out what’s where.
Because of that, I think it should be able to handle more complex grid systems too. It’s basically combining structural analysis (via DevTools) with visual understanding (via screenshots), almost like a human would.
There are some glitches sometimes, of course. But what worked for me was just re-taking a screenshot of the problematic area and telling it to pay more attention to those parts it didn’t reproduce correctly — and usually that fixes it.
setq-default@reddit
Do you think this is a novel approach? Do you think this isn't what everybody else is already doing?
Claude's way
Striking_Rate_7390@reddit
will try soon, i just wanted to know like its just a single prompt or we have to do changes, because ithink claude will need premium membership