How to Prepare a Figma File for Developer Handoff
Learn how to prepare a Figma file for developer handoff: layer naming, Auto Layout, components, styles and breakpoints, plus a checklist to copy.
6 min read

On this page
To prepare a Figma file for developer handoff, clean up the structure first: name your layers, use Auto Layout, turn repeated elements into components, define colors and type as styles or variables, and design every page at the breakpoints you expect to ship. A developer should be able to open the file and understand the intent without asking you ten questions. Below is the checklist I wish every client file followed before I start building.
Why does the way you prepare a Figma file matter for handoff?
A Figma file is a picture of a website, not a specification. Everything a browser needs to know, such as how a card stretches, what happens to a menu on mobile or which grey is "the" grey, has to be inferred unless you state it.
In projects like this, the time I spend guessing is the time that shows up as delays and revisions. A tidy file means I can build reusable components straight away instead of reverse-engineering your decisions.
1. Name layers and organise pages
Default names like "Frame 4382" and "Rectangle 12" tell a developer nothing. You do not need to rename every layer, but you should name the ones that matter.
- Name each section frame after its purpose: "Hero", "Pricing", "Footer".
- Use separate Figma pages for "Desktop", "Mobile", "Components" and "Archive". Move abandoned ideas to the archive so nobody builds the wrong version.
- Mark the final version clearly, for example with a "Ready for dev" status or section label.
2. Use Auto Layout so spacing is explicit
Auto Layout is the single biggest favour you can do for a developer. It maps almost directly to CSS flexbox: direction, gap, padding and alignment are all visible as numbers.
Frames positioned by hand look identical on the canvas but hide their rules. If a button has 16px of padding on the left and 18px on the right because someone nudged it, the developer cannot tell whether that is intentional.
Use Auto Layout for buttons, cards, nav bars, form fields and lists. Set "hug" or "fill" on each child deliberately, because that is what decides how the element grows when content changes.
3. Turn repeated elements into components
If a card appears six times, it should be one component with six instances. In code it becomes one React component used six times, which is exactly how a Next.js site should be structured.
- Create components for buttons, inputs, cards, tags, nav items and section headers.
- Use variants for states: default, hover, focus, disabled, error.
- Use component properties for text and icon swaps rather than detaching instances.
Detached copies with small differences force the developer to decide which version is the real one.
4. Define colors, typography and spacing once
Hard-coded hex values scattered around the file become inconsistent values in the code. Define them once as styles or variables and apply them everywhere.
- Colors: name them by role ("primary", "text-muted", "surface") rather than by appearance.
- Typography: define a text style for each heading level, body, caption and button label, including font, size, weight and line height.
- Spacing: pick a scale, such as 4, 8, 16, 24, 32, 48, and stick to it.
If the project uses Tailwind CSS, these tokens become the theme configuration, so the design and the code stay in sync. A consistent scale also means fewer one-off values in the stylesheet.
5. How should you design responsive breakpoints in Figma?
Provide at least a desktop and a mobile layout for every page. A tablet layout is worth adding if your layout changes meaningfully between the two. If you only design desktop, the developer has to invent the mobile experience, and it rarely matches what you would have chosen.
Things to show explicitly:
- How the navigation collapses, for example a hamburger menu and what it opens.
- How multi-column grids stack on small screens.
- Which images crop, scale or are hidden.
- Maximum content width on very large screens.
A useful habit is to resize your Auto Layout frames to check they still behave. Real browsers resize continuously, not just at two fixed widths.
6. Export assets and document images properly
Make assets easy to find and use in the right format.
- Mark icons and logos for export as SVG so they stay sharp at any size.
- Provide photographs at a sensible resolution. Large originals are fine, since they can be compressed and served in modern formats during the build.
- Keep fonts to a minimum and tell the developer where they come from and which licence covers web use.
- Note any images that should have alt text and what it should say.
7. Show states, not just the happy path
Websites have more states than a static design shows. Add them before handoff so they are designed rather than improvised:
- Hover, focus and active states for links, buttons and inputs.
- Form validation errors and success messages.
- Empty states, loading states and a 404 page.
- Long text: what happens to a card when a title wraps to three lines?
If you plan to add a CMS, tell the developer which content will be editable. A headline that is always three words in the design may be twelve words in real life.
8. Write notes where the design cannot speak
Some behavior cannot be drawn. Leave short comments or annotations directly in Figma for things like:
- Animations, sticky headers and scroll effects.
- Where links go and which buttons open forms or modals.
- Which sections come from a CMS and which are fixed.
- Anything intentionally unusual, so it is not "fixed" by mistake.
Short and specific beats long and vague. "Header sticks on scroll, shrinks to 64px" is useful. "Make it feel premium" is not.
Handoff checklist you can copy
- Final screens on a clearly labelled page, old versions archived.
- Desktop and mobile layouts for every page.
- Auto Layout on all repeated or flexible elements.
- Components with variants for every interactive state.
- Colors, text styles and spacing defined once.
- Icons and logos ready to export as SVG.
- Notes for animations, links and CMS content.
- Fonts and their licences listed.
If you want a developer to turn a file like this into a working site, this is the kind of input my Figma to Next.js service is built around. I am happy to review a file before work starts and point out gaps.
FAQ
Do I need to use Dev Mode to hand off a Figma file?
No, but it helps. Dev Mode shows measurements, styles and exportable assets in a developer-friendly view. It still depends on a well-structured file, so the cleanup steps above matter whether or not you use it.
Should I design mobile first or desktop first in Figma?
Either works, as long as both exist before handoff. Choose whichever matches how your visitors mostly arrive. If most traffic is on phones, starting with mobile keeps the design honest about priorities.
How pixel-perfect will the website be compared to my Figma design?
A good developer will match spacing, type and colors very closely at the sizes you designed. Between those sizes the browser resizes fluidly, so small differences are normal and expected. Clear Auto Layout rules reduce those differences.
What if my Figma file is already messy?
You do not have to rebuild it. Cleaning the main components, defining styles and adding the missing mobile layouts is usually enough, and a developer can tell you which gaps matter most before the build starts.
Key takeaways
- A tidy Figma file saves more time in the build than any tool or plugin.
- Auto Layout, components and shared styles map directly to flexbox, React components and design tokens.
- Always design mobile and desktop layouts, plus the hover, error and empty states.
- Use short, specific notes for anything that cannot be drawn.
Tags
- Figma
- Design
- Next.js
- Best Practices

About Keshur Gojiya
Web developer and HTML email specialist with 6+ years of experience, building websites and emails for businesses, startups and agencies.
Get to know me

