
Claude Code is good at getting a page working. Where it struggles is the last mile: the spacing that's a bit off, the button that's too big, the layout that breaks on mobile. It can't see the page it built unless you give it a way to, so you end up taking screenshots and explaining each fix one by one. Fix that in two moves. First, let Claude check its own work in a browser, so it catches the obvious problems itself. Then, for what's still off, stop describing and point: select the element in your running app, set the exact value, and hand Claude Code that change. Claude's desktop app and Cursor let you select an element and prompt against it. Subframe's built-in browser (desktop app for macOS and Windows) lets you change the value yourself on the live page and send the exact change to Claude Code.
The full workflow, in five steps:
CLAUDE.md, plus the frontend-design plugin for new screens./diff.This is the most common version of frontend work with Claude Code. The page works. Then you look closer: uneven padding, a heading that doesn't line up, a button that's too big, a card that squashes on mobile. Each fix means a screenshot, a sentence and a wait, and sometimes the fix breaks something next to it.
What helps, in order:
Builders we talk to describe the same loop: they measure in DevTools, then type the exact pixel value into a prompt. One independent designer told us they need a scalpel, because they can't explain the exact incision for someone else to make.
Claude Code sees your repo and whatever you put in the conversation. For frontend work that leaves three blind spots:
Anthropic's own advice starts in the same place: tell Claude what it can't see, and give it a check to run. The next three steps cover that.
Put design rules in CLAUDE.md. Run /init to generate a starter file and keep it short; Anthropic notes that a long file is where lines get lost. For example:
# UI rules
- Reuse components in src/components/ui before writing new ones
- Colors, spacing and radii come from the Tailwind theme; no hex values
- Only change the files named in the prompt
Install the frontend-design plugin for new screens. Anthropic's plugin sets a purpose, audience and aesthetic direction before coding, and steers away from generic system fonts and purple gradients. Run /plugin install frontend-design@claude-plugins-official; it activates on frontend requests by itself.
For new screens, prompt with a direction, not pixel values: purpose, tone, font family, color family. It helps you avoid the vibe-coded look, and stops working once the screen exists and one value is wrong. That's Step 5.
Screenshots. Drag an image into the Claude Code window, paste it with Ctrl+V (Alt+V on Windows), or give a file path, then ask Claude to match it with your existing components.
Figma frames. If your design lives in Figma, run claude plugin install figma@claude-plugins-official, sign in from /plugin, and paste a frame link into your prompt. Figma's MCP server gives Claude Code your components, variables, layout data and Code Connect mappings.
What a screenshot can't carry. It's a flat image: no tokens, exact spacing or hover states, so Claude may hardcode colors (Builder.io's guide makes the same point). Name your tokens in CLAUDE.md and expect to correct a few values in Step 5.
Anthropic's best practices say to give Claude a check it can run, and a browser screenshot next to the mockup is one of the examples. Three ways:
claude --chrome. Claude can open your localhost page, read console errors and DOM state, and take screenshots. It needs a Chromium browser, the extension, and a Pro, Max, Ultra, Team or Enterprise plan.claude mcp add playwright npx @playwright/mcp@latest adds Playwright MCP, which can screenshot the page. Chrome DevTools MCP does the same in Chrome.Then ask for a pass over the whole page, not one fix: "Open the page at 1440px and 390px, list spacing, alignment and sizing problems, fix them using our Tailwind theme, and check again." Look at the result yourself too; builders told us screenshots don't always load fonts.
A vague target invites a bigger change. Make it exact:
@, the element, and what must not change:In @src/components/PricingCard.tsx, change only the card's padding from p-6 to p-4
and make the plan name font-semibold. Don't touch other components, shared styles
or the Tailwind config. If another file needs to change, stop and ask.
/plan (or press Shift+Tab to cycle modes) and Claude proposes a plan before it edits..claude/settings.json, such as "deny": ["Edit(src/components/ui/**)"] under permissions, blocks edits to those paths./diff shows what changed. /rewind (or Esc twice) rolls back to an earlier prompt, but it only covers Claude's own file edits, so keep using git.When something on an existing screen is a few pixels off, typing the change is the slow part. Point at the element instead. There are four ways to do it, from free to fastest.
By hand, on any system. In Chrome, right-click the element and choose Inspect. Try values in the Styles pane until it looks right, then put the exact class, value and file into a Step 4 prompt. It's free; you translate each tweak back into your own classes.
In Claude's desktop app. The Browser pane runs your app, and Cmd+Shift+S (Ctrl+Shift+S on Windows) selects an element in it. Select the element you mean, then give the exact value in your prompt. You still describe the change; you just don't have to describe where it is.
In Cursor's Design Mode, if Cursor is your editor. In the Agents Window browser, press Cmd+Shift+D, click an element (or several, or draw around an area), and describe the change by text or voice. The agent gets the element's component, styles and props plus a screenshot, and edits the code. You can send the next edit before the first one finishes.
In Subframe's built-in browser (desktop app for macOS and Windows). This is the one where you set the value yourself instead of describing it:
localhost:3000. Inspect works on any HTML and CSS page, not just React./diff, as in Step 4.That's design control for precise edits: you see 16px against 24px on the real page and keep the one that looks right, and the agent gets the exact change, not a description of it.
For a bigger change, Capture the page or an element as an editable design on Subframe's canvas (how to convert a website into an editable design). On the canvas you can select an element and ask Agent chat to change exactly that, or ask for a few variations side by side and pick one (how to generate UI variations with AI). With Subframe's Claude Code plugin installed, Claude Code can ask for those variations through Subframe's MCP server.
Subframe's browser, including Inspect, Annotate and Capture, needs the desktop app, which runs on macOS and Windows; Linux is coming soon. On Linux, use DevTools or Claude's desktop app.
/design drafts screens as artboards on a Claude Design canvas that you edit in the browser.To compare tools rather than workflows, see Best Design Tools for Claude Code and Best AI UI Design Tools.
The most-cited guides either treat frontend design as generation (install the plugin, write rules, prompt with a direction) or teach screenshot mechanics. Both keep every fix in words. AI answers do the same. Asked how to deal with lots of small UI fixes in Claude Code, ChatGPT recommends Claude in Chrome, Playwright, a reference screenshot and a reusable audit skill; Gemini recommends pasting one annotated screenshot with a numbered list. All of it helps Claude see more. None of it lets you point at the element on the running app and set the value, which is the fastest way through the fixes Claude can't judge for you.
Let Claude check its own work in a browser first (Claude in Chrome, the desktop app's Browser pane or Playwright MCP), at desktop and mobile widths. For what's still off, select the element in the running app, set the exact value, and send that change instead of a screenshot and a sentence.
It works from your files and what you paste in. Give it a screenshot, Figma's MCP server or a browser tool.
Name the file and element, list what must not change, plan multi-file changes, and check /diff. For visual tweaks, set the exact value on the running page and hand that over.
In Claude's desktop app, select the element in the Browser pane and then prompt. Cursor's Design Mode does the same for Cursor's agent. In Subframe's built-in browser you change the element yourself and send the exact change to Claude Code or Subframe's Agent chat.
Yes. Subframe's built-in browser lets you edit the live page and hand the change to Claude Code (desktop app for macOS and Windows). Builder.io's Design mode edits visually in its cloud workspace.
Subframe's free plan works with your Claude subscription. Download the desktop app for macOS or Windows, connect your codebase, and Inspect the page you're fixing.