Development

How to Prompt AI to Build a Consistent Framer Site

Five steps, a setup guide and a short starter prompt for getting a consistent Framer site from an AI agent, plus the full version 2 prompt to use as a reference.

Dhiraj Ingle, author of this article.

Dhiraj Ingle

UI/UX Designer · Framer Expert

A prompt bar with the Framer logo and a send button above a perfectly aligned grid of six cards.

How to Prompt AI to Build a Consistent Framer Site

1 min read
In this post:
No headings found
In this post:
No headings found

Quick answer: To prompt AI to build a consistent Framer site, give your AI agent a written structure before it builds anything. Set your style guide, your frame structure and your layer names first. Then check every screen size.

How do I prompt AI to build a consistent Framer site?

Do these five steps in order. The sections below explain each one.

  1. Add your style guide to Framer first. Use the exact colour and text style names and values from Figma, or list your own. Add any custom font by hand.

  2. Ask the agent to build frames before any content. A frame is a box that holds other layers. Every page uses Main, Section and Content frames.

  3. Name every frame and reuse components. Make one component with many variants, like a button in two sizes, instead of many similar components.

  4. Check every breakpoint, the screen sizes where your layout changes. Then drag the page width through the sizes in between.

  5. Review the result, then publish it yourself. Never let the agent publish. Finish the small visual details by hand.

What do I need before I start?

  • A Framer project.

  • An AI agent, such as Claude Code, Cursor or Codex. Each tool has its own pricing page.

  • Optional: a Figma file. No Figma file? See the note under the starter prompt.

How do I connect a Framer agent to my project?

Framer lets outside AI tools such as Claude Code, Cursor and Codex connect directly to a project. These steps come from Framer’s own documentation.

  1. Copy Framer’s install prompt and paste it into your AI tool. It runs a command, npx @framer/agent setup, that installs the bridge your agent uses to talk to Framer. If it asks for a folder, pick any folder, such as your Desktop.

  2. In your AI agent, run the /framer skill and grant access to your project from your browser.

  3. Write your first prompt. The agent works directly in your Framer project, and the project doesn’t need to be open.

The agent works on your canvas, not on your published site, and changes only go live when you publish. It makes every change on a branch, a separate copy of your project. You can review the branch, undo changes and merge it when you’re happy, and you can revoke access at any time. I never let the agent publish. I review the result and publish myself.

What is a good Claude Code Framer prompt to start with?

Start with this short prompt. It mixes the parts I use today (style guide, frames, naming) with the main rules from version 2, a longer prompt further down. Like version 2, it hasn’t run on a client project yet, so test it on a practice project first.

Paste it into Claude Code or another AI agent and replace each [square bracket] with your own value. The numbers are examples. Change them to fit your design.

  • Connect to my Figma file [link] and my Framer project [link].

  • Read the whole project first. Do not guess. Ask me when unsure. Work on a branch or draft. Never publish.

  • Add every colour and text style from Figma with the exact names and values.

  • Check that each font exists in Framer. If one is missing, stop and tell me.

  • Breakpoints: Desktop 1200 px and up, Tablet 810 to 1199 px, Phone up to 809 px.

  • Build each page as Main, then one Section frame per section, then one Content frame inside each Section.

  • On each Content frame, set max width 1200 px and padding 80 px on Desktop, 40 px on Tablet and 20 px on Phone. Centre it.

  • Name every layer. No names like “Frame 12”.

  • Reuse existing components. Add a variant before you create a new component.

  • Never delete. Move removed layers to a page called “bin”.

  • Stretching layers use Fill (1fr), not 100% width. Padding goes only on Content frames.

  • Test each page at 1440, 1200, 1024, 810, 600 and 390 px and at widths in between. Then report what you built, skipped and assumed.

Notes on the starter prompt

  • No Figma file? Delete the first line, change “from Figma” to “from the list below”, and paste your own colours and text styles under the prompt. You can also let Framer’s AI generate pages and layouts from a prompt, so Figma isn’t the only way to start.

  • Already have a Framer site? Use the same prompt. It tells the agent to read the whole project and reuse your components first.

  • Fill (1fr) makes a layer stretch to fill its parent, the frame around it. A relative width is a percent of the parent.

  • Padding is the space inside a frame’s edges.

  • The bin is a page named “bin” that the agent creates. Layers it would have deleted go there instead, so nothing is lost for good.

Why do AI-built Framer layouts break at tablet and phone?

On a recent client project I linked my Framer project to Claude Code. Every screen was there, but the breakpoints were rough, the responsiveness was poor and the consistency was bad.

An AI agent can place a lot of layers quickly, but it can’t know how you like to structure a site unless you tell it. So each section ends up built slightly differently.

The fix wasn’t a smarter tool. It was a written structure. I cover the wider idea in Quality Standard for AI-Built Websites: 8-Point Checklist, and this post is the practical Framer version.

How do I set up the style guide first?

My first prompt tells the agent to connect to the Figma file and the Framer project. Before it builds a single page, it adds the style guide: every colour with its exact value and name, every text style with the same names, and the fonts. If a project uses a custom font, I add the font file to Framer myself first.

Once that’s connected, the agent can bring the whole style guide into Framer. Only then do I design the landing page in Figma and start the build.

What are Main, Section and Content frames?

Main is the whole page. Each Section frame is one band of it, such as the hero. Inside every Section sits one Content frame that holds everything in that section. I tell the agent to build this structure properly before any content.

Example: your landing page is Main. The hero is one Section. Inside it, the Content frame holds named frames such as Heading content, Bottom content, Hero image and Hero tags.

Set the rules on the Content frame: maximum width, minimum and maximum height where needed, and padding. Clear names make later changes much easier.

A layer tree and a page showing Main, the whole page, with a Section for the hero and a dashed orange Content frame holding Heading content, Bottom content, Hero image and Hero tags. Below, the rules set on the Content frame: max width, min height, max height and padding.

Once one section has this skeleton, I copy it section by section. When the basic structure is done, I turn the navigation and footer into a template, because most projects use the same ones. A template is one shared version that every page reuses.

Why use components with many variants?

I want components that scale: one component with many variants, so I never build a separate one for something similar. I learned this from building design systems, and I’ve used variables and tokens in Figma from the start, so atomic design was already part of how I work.

There’s one exception. My own portfolio has an About overlay, a panel that pops up over the page, and because of it I couldn’t make a reusable navigation template there. In the version 2 prompt below, I ask for the overlay to live inside the navigation component instead, so the navigation can still be reused.

How do I check responsive Framer breakpoints?

In my Framer project, the default breakpoints are Desktop at 1200 px and up, Tablet at 810 to 1199 px and Phone up to 809 px.

Framer Academy’s lesson on minimum and maximum sizing gives the rule I now put in the prompt. Set the limits on the layer that owns the behaviour, like a minimum width on a card that must not get too narrow (my own example). Then let the parent stack share the remaining space. A stack is a row or column of layers with a gap between them.

As the lesson says, resize through the whole range, not only the named breakpoints. Drag the page width slowly and stop at 1440, 1200, 1024, 810, 600 and 390 px. Watch for clipped copy, very long lines and empty space.

I design the breakpoints in Framer itself. I know the Material and Apple Human Interface guidelines and the standard for a good mobile experience, and designing and building together in Framer moves the project faster.

A good result looks like this: three columns on desktop, two columns plus one wide card on tablet, and one column on phone.

The same page in three frames: three columns on desktop at 1200 px and up, two columns plus one wide card on tablet from 810 to 1199 px, and one column on phone up to 809 px. A width ruler marks the widths to check: 390, 600, 810, 1024, 1200 and 1440 px.

How do I check the result and fix mistakes?

  • Check: open each page at the widths above. You should see no clipped text and no sideways scrolling, and every layer should have a clear name.

  • Undo: the agent works on a branch, so undo what you don’t want before you merge.

  • Fix: name the rule it broke and ask it to fix that one problem. Still wrong? Ask it to stop and describe the problem, not to try random changes.

  • Recover: if the agent followed the never-delete rule, removed layers sit on the bin page, so you can get them back.

What should I still do by hand?

The agent builds the structure and the consistency. I do the smaller details and the final visual balancing myself, at the end. After the first pages exist, I make later changes and add new pages directly in Framer when the design isn’t complicated. The design direction is set by then, and I only need the existing components.

Why use Framer for this workflow?

Framer is easy for clients to manage, and it can handle a marketing site or a store. It does a lot natively, so I rarely need outside connectors. Some WordPress plugins cost $200 to $400 each, so the cost difference is real. For my own work, speed matters more: what used to take me weeks now takes days, and hours on simpler projects.

What is the full Framer AI prompt (version 2)?

Version 2 hasn’t been tested on a client project yet, and I’ll update this post with the results. The first three parts (style guide, frame structure, naming) are what I use today. Version 2 adds a rules block, a breakpoint stage, a checking stage and build notes. Start with the short prompt above and use this one as a reference. Replace everything in square brackets with your own values.

Project inputs

  • Project: [name]. Figma file: [link]. Framer project: [link].

  • Breakpoints: Desktop [width], Tablet [width], Phone [width].

  • Content max width: [px]. Content frame padding on Desktop, Tablet, Phone: [px], [px], [px].

  • Colour and text style naming patterns: [patterns].

  • Fonts: [list]. Custom fonts are already in Framer.

  • Components to reuse: [list].

Rules that always apply

  1. Read the project first (pages, components, styles, breakpoints). Do not guess. Ask when unsure.

  2. Work on a branch or draft. Never publish.

  3. Reuse before you create. Make a new component only if no existing one can take a variant.

  4. Never delete. Move removed layers to a page called “bin”. Rename unused styles or components into a “Bin/” folder.

  5. Copy text and images from Figma. Do not invent content. Mark anything missing.

  6. Stretching layers use Fill (1fr), not a relative 100% width.

  7. Padding only on Content frames, never on Main or Section frames.

  8. At the end, report what you built, skipped and assumed.

Stage 1: Style guide

  • Add every colour and text style with the exact name and value from Figma. Keep the sizes for each breakpoint as in Figma.

  • Check that each font exists in Framer. If one is missing, stop and tell me. Do not swap fonts.

  • List what you created. Wait for my OK.

Stage 2: Page skeleton

  • Build each page as Main, then one Section frame per section, then one Content frame inside each.

  • Content frame: max width [px], min height [px] where needed, padding [px], centred. Max height only if I ask.

  • Inside Content, use named frames: Heading content, Bottom content, Hero image, Hero tags. Use my names for the rest.

  • Use stacks. Use gaps (the space between items) for spacing, not margins or spacer frames. Avoid absolute positioning (pinning a layer to an exact spot) except for decoration.

  • Name every layer. No names like “Frame 12”.

  • Build one section, then copy its skeleton to the next.

Stage 3: Desktop build

  • Build each section from its Figma frame. Screenshot it and compare with Figma.

  • List every difference you could not match.

Stage 4: Breakpoints

  • Adapt the desktop version. Do not redesign. Change only stack direction, columns, padding, text styles, spacing and which items show.

  • Put min and max sizes on the layer that owns the behaviour. Let the parent stack share the space.

  • Test the three breakpoints and the widths in between: [list widths]. Look for clipped text, horizontal scroll (the page moving sideways), very long lines and big empty gaps. On phone, flag tap targets (buttons and links) under 44 by 44 px.

  • Fix a problem once. If it is still wrong, stop and describe it. No random changes.

Stage 5: Components and templates

  • Navigation and footer are shared components with a variant for each breakpoint. If a page needs an overlay, build it inside the navigation component so the navigation can still be reused.

  • Before you build a button, card or list item, look for an existing component. Add a variant if needed.

  • Name components and variants like the existing ones.

Stage 6: Motion

  • Add motion only where I say so or a reference shows it. Keep it subtle: appear on scroll, hover and press states.

  • Never use motion to hide a layout problem.

Stage 7: Final check

  • Take a screenshot of every page at each breakpoint.

  • Layout: no horizontal scroll, no clipped text. Padding only on Content frames. Stretching layers use Fill.

  • Build: every layer is named. Every colour and text style comes from a style, not a loose value.

  • Content: every image has alt text (a short description of the image). One H1 (the main heading) per page. Links work. External links open in a new tab.

  • Report the result as a table with the item, the breakpoint, pass or fail, and a note.

Stage 8: Later changes and new pages

  • Build small changes and new pages directly in Framer with existing sections and components. Ask for a new Figma design only for a new visual idea.

  • If you need a new pattern, propose it first and wait for my answer.

Stage 9: Build notes

  • Write a short page of build notes: styles, components and variants, naming rules and every known difference from the design.

How do I stop pasting this prompt into every project?

Turn it into a Claude Code skill: a folder with a SKILL.md file inside that holds your instructions. Claude Code uses it when it’s relevant, or you can call it by name. Anthropic’s documentation on skills says to create a skill when you keep pasting the same instructions or checklist into chat.

Keep the stages in the skill, and keep the project values (widths, names, links) in a short file for each project. That way the instructions stay the same and only the inputs change.

Frequently asked questions

Can you prompt AI to build a consistent Framer site?

Yes, if it works from a written structure. On one client project the breakpoints and consistency were poor until I gave the agent a structured prompt with my frame structure, size limits and naming rules.

Do I need a Figma design first?

Not always. I design the first pages in Figma, then build small changes and simple new pages directly in Framer. With no Figma file, list your colours and text styles in the prompt, or let Framer’s AI generate pages from a prompt.

Can the agent publish my Framer site?

No. Framer says external agents work on your canvas and not on your published site, and changes go live only when you publish.

How do I stop the agent from creating duplicate components?

Tell it to reuse existing components and add a variant before creating anything new. List the existing components in the prompt too.

Which AI tools work with Framer?

Framer says its external agent connection works with any AI that can run a terminal command or call an MCP tool. That includes Claude Code, Cursor and Codex. MCP is a standard way for an AI to use other apps.

Want help with your Framer build?

Want a Framer site built this way for your brand? Book a free intro call and I’ll show you how I’d structure it.

Run an agency or studio? With Agency Builds, I build Framer sites under your agency’s name.

Want to study a finished build? MonoCraft ($79) and Coolest Link in Bio ($29) are my Framer templates. Open them in Framer and see how a hand-built site is organised.

Keep reading: Can an AI Agent Edit Your Framer Site? 6 Safe Rules and Figma to Framer Workflow: 8 Steps From Call to Launch.

Key Takeaways

To prompt AI to build a consistent Framer site, give it a written structure first: your style guide, Main, Section and Content frames, clear names, reusable components and a check at every breakpoint.

  • Add the style guide to Framer first, with exact colour and text style names.

  • Build every page as Main, Section and Content frames, with padding only on the Content frames.

  • Use one component with many variants instead of separate components for similar things.

  • Set minimum and maximum sizes on the layer that owns the behaviour and test the full width range.

  • Turn the prompt into a Claude Code skill, and finish the small visual details by hand.

Date:

·

Development

Written by

Dhiraj Ingle, author of this article.

Dhiraj Ingle

UI/UX Designer · Framer Expert