From design to code with Claude Code or Cursor.

A coding agent works faster and more accurately from a precise design. Here is how to hand it your Sketch It screens, in what order, and how to check its work.

Which export to use

ExportWhen to use itPlans
Claude Code or Cursor promptTo have the agent build the app, screen by screenPro and Studio
React and TailwindIf your app is in React: components ready to wire upPro and Studio
HTML and CSSFor a website, or as an exact visual reference for the agentAll
PNG imagesTo compare the agent’s output with the design, screen by screenAll

The steps

  1. Export

    Export the prompt, the screen code (React or HTML) and the PNG images. Put them in a design/ folder at the root of your project.

  2. Open the project in your agent

    Claude Code in the project’s terminal, or Cursor in the editor. Both can read the design/ folder.

  3. Start with the system

    Have it set up the direction’s colors, fonts, sizes and spacing as variables first, without adding any. They are the same on every screen.

  4. Then the shared components

    Buttons, cards, inputs, tab bar: once, before any screen.

  5. One screen at a time

    In the order of the user flow. After each screen, compare the result with that screen’s PNG.

  6. Wire up the rest

    Screen content is realistic but made up: replace it with your data, then add navigation and logic.

An example request for the agent

Prompt
The app design is in design/ (screen code and PNG captures).
1. Set up the design’s colors, fonts, sizes and spacing as variables. Do not add any new value.
2. Create the shared components: button, card, input, tab bar.
3. Build the Home screen, and only that one. Compare your result with design/home.png.
Do not change colors, fonts or spacing.

The prompt exported by Sketch It already describes the screens and their rules; this example only shows the order that works best.

Pitfalls to avoid

  • Asking for everything at once: ten screens in one request means ten chances to drift from the design. One screen per request.
  • Letting the agent “improve” the design: tell it not to add colors, fonts or effects.
  • Forgetting the placeholder content: prices, names and dates on the screens are examples to replace before launch.
  • Skipping the comparison: a PNG next to the output shows a drifted margin or size in a second.

What about a native app?

Sketch It exports are web-based (HTML and React). For a native app, give the agent the captures and the prompt, and ask it to adapt the screens to your framework (React Native or SwiftUI, for example). Check every screen against its capture: the adaptation is done by the agent, not by Sketch It.

FAQ

Something else? Write to us

Do I need the Pro plan?

The agent prompt and the React export come with Pro and Studio. On Starter, you can give your agent the HTML export and the PNG images.

Claude Code or Cursor: which one?

Both work: the prompt is text and the screens are files. Claude Code runs in the terminal, Cursor in an editor.

Is the exported code production-ready?

The interface code is clean: semantic HTML, CSS variables, flex and grid layouts. It has no real data or logic yet: that part is yours to wire up.

Do exports use credits?

No, no export ever uses credits.

Three directions for your idea.

From $19.99 a month billed yearly, or $29 monthly with no commitment.