Why HTML to Figma Imports Break, and How to Get Clean Layers
A web page and a Figma file describe layout in different ways. Most messy imports come from five translation problems, and each one has a fix.
Last updated:
8 min read time. Summarize with:
This article coversHow CSS Layout Maps to Figma Auto Layout
- How CSS Layout Maps to Figma Auto Layout
- Problem 1: The Fonts Look Wrong in Figma
- Problem 2: Elements Float Instead of Flowing
- Problem 3: Sticky Headers Land in Odd Places
- Problem 4: Long Pages Are Slow to Edit
- Problem 5: The Layout Was Copied at the Wrong Width
- A Five-Minute Clean-Up Checklist
- How CSS Grid Translates Into Figma
- Background Images, Gradients and Video
- Why Fonts Are the Most Common Problem, and the Easiest to Fix
- Naming and Structure: Make the Import Easy to Work With
- When to Rebuild a Section Instead of Fixing the Import
- Key Terms: CSS Layout and Figma Auto Layout
- Key Takeaways
- Frequently Asked Questions
HTML to Figma imports break where CSS has no direct equivalent in Figma: web fonts you do not have installed, absolutely positioned decorations, sticky headers, very long pages and layouts copied at an in-between width. Flexbox and gaps translate cleanly into auto layout, which is why most of a page arrives right. Install the page fonts first, copy one section at a time and pick a real breakpoint width, and a paste needs minutes of tidying instead of hours.
How CSS Layout Maps to Figma Auto Layout
| On the web | In Figma | How well it translates |
|---|---|---|
| Flexbox row or column | Auto layout, horizontal or vertical | Very well |
| gap and padding | Item spacing and padding | Very well |
| CSS grid | Nested auto layout or fixed frames | Well for simple grids |
| position: absolute | A layer placed by x and y | Correct, but it does not flow |
| position: fixed or sticky | A layer at one place on the page | Needs a decision from you |
| Web fonts | Text with the same family name | Only if the font is installed |
| background-image | An image fill | Well |
Flexbox and auto layout are close cousins: a row of buttons or a stack of text usually arrives perfect. Problems start where the two models stop overlapping.
Problem 1: The Fonts Look Wrong in Figma
Figma draws text with fonts installed on your computer or available in its own library. If the site uses a licensed font you do not have, Figma substitutes another one and line lengths change. Identify the font first, using our guide on finding the font a website uses, then install it or choose the closest licensed alternative before you paste.
Problem 2: Elements Float Instead of Flowing
Badges, decorative shapes and overlapping images are often positioned absolutely on the web, so they arrive as layers at fixed coordinates. That is accurate, but they will not move when you edit the content around them. After pasting, decide for each one whether it stays absolute or joins the auto layout frame next to it.
Problem 3: Sticky Headers Land in Odd Places
A sticky header lives at the top of the viewport while you scroll. A static design file has no viewport, so the bar has to be placed somewhere. Move it to the top of the frame and set it to stay fixed when scrolling in Figma's prototype settings. Close cookie banners and chat bubbles before you copy, because they are fixed elements too.
Problem 4: Long Pages Are Slow to Edit
A very long page with hundreds of images becomes a heavy file. It pastes, but every edit afterwards is slower. Copy the hero, the pricing table and the footer as separate pieces: smaller pastes are faster and give you natural frames to work in.
Problem 5: The Layout Was Copied at the Wrong Width
Responsive sites change layout at breakpoints. Copying at whatever width your browser happens to be gives you an in-between layout nobody designs for. In Design Toolkit you choose the size before copying: Desktop (your window as it is), Tablet (820 × 1180), Mobile (390 × 844) or any custom width. For device sizes, a copy of the page is laid out in a frame of that size, so your own window is not resized or reloaded.
A Five-Minute Clean-Up Checklist
- Rename the top-level frames: Header, Hero, Features, Pricing, Footer.
- Check Figma's missing-font list and swap substitutions in one go.
- Find layers outside auto layout and decide where they belong.
- Move fixed and sticky bars to the top or bottom of the frame.
- Replace any logo, photo or copy that is not yours.
Right-to-left pages have their own traps, from bullets to punctuation. See copying Arabic and Hebrew websites into Figma.
How CSS Grid Translates Into Figma
Flexbox has a near one-to-one partner in Figma auto layout. CSS grid does not. Figma's auto layout works in one direction at a time, while a grid places items in rows and columns at once. A simple grid, such as three cards in a row that wrap to the next line, usually becomes nested auto layout: a vertical frame of horizontal rows. Complex grids with items spanning several rows or columns arrive as fixed frames instead, because there is no clean auto layout equivalent.
That is not a bug to fix after pasting. It is an honest translation. If you need the grid to be flexible in Figma, rebuild that one section with Figma's layout grid or with nested auto layout, using the pasted version as an exact reference for sizes and gaps.
Background Images, Gradients and Video
CSS lets a background image be cropped, positioned and layered on top of a gradient. In Figma the equivalent is a frame with several fills: an image fill plus a gradient fill in the right order. Most imports handle that well. Three cases are worth checking after you paste:
- Cropping: background-size: cover crops an image differently at each width. Check that the important part of the picture is still visible at the size you copied.
- Layered gradients: several gradients stacked on one element arrive as several fills. Their order matters; if colors look wrong, check the fill order first.
- Video: a video becomes a still image of one frame. Treat it as a placeholder.
Why Fonts Are the Most Common Problem, and the Easiest to Fix
Browsers download web fonts for every visitor, so a site can use any licensed font it likes. Figma cannot do that: it shows fonts that are installed on your computer or available in its own font library. When a pasted text layer asks for a font Figma cannot find, Figma swaps in a fallback, and the fallback rarely has the same widths, so headings wrap in different places and buttons change size.
If the font is licensed and you do not own it, choose a free alternative with similar proportions and replace it consistently with Figma's "Replace fonts" dialog. Note the substitution in the file so nobody assumes it matches production.
Naming and Structure: Make the Import Easy to Work With
Imported layers are named after the page structure, which is accurate but rarely how a designer thinks. Ten minutes of renaming makes the difference between a file people use and a file people avoid. Rename the top-level frames by section, group repeated elements such as cards and turn them into components once the content is final. Keep the original import on its own page as a reference, and do the cleaned-up work on a separate page.
When to Rebuild a Section Instead of Fixing the Import
An import is the right starting point for most sections, but not all of them. Rebuild by hand when:
- the section uses a complex grid you need to keep flexible;
- it relies on animation or canvas drawing, which arrives as a still image;
- it will become a core component of your design system, where every detail should be deliberate.
Even then, paste the import next to your rebuild. Exact spacing and type sizes from the live page are the fastest way to check your work.
Key Terms: CSS Layout and Figma Auto Layout
| Term | Meaning |
|---|---|
| Auto layout | Figma frames that place children in a row or column with set spacing and padding |
| Flexbox | CSS layout in one direction, the closest match to auto layout |
| CSS grid | CSS layout in rows and columns at once |
| Absolute positioning | An element placed at fixed coordinates, outside the normal flow |
| Breakpoint | A width at which a responsive page changes its layout |
Knowing these five terms is enough to predict how almost any section will paste, and to explain to a teammate why one section arrived perfectly and another needs work.
Key Takeaways
- Flexbox maps cleanly to auto layout; grid, absolute positioning and sticky elements need decisions.
- Missing fonts cause most visual differences. Install them before pasting.
- Copy at real breakpoint widths and one section at a time.
A planned import needs minutes of clean-up; an unplanned one can take hours.
Frequently Asked Questions
Does HTML to Figma keep auto layout?
Where the page uses flexbox or grid, yes: rows and columns arrive as auto layout frames. Absolutely positioned elements arrive as fixed layers.
Why does the text look different after importing a website into Figma?
Figma can only use fonts installed on your computer or in its own library. If the site uses a font you do not have, Figma substitutes another one.
Should I copy a whole page or one section into Figma?
One section at a time is faster to paste and easier to tidy. Copy the whole page when you need an overview.
What width should I copy a website at?
A real breakpoint width, not your current window: for example 390 pixels for mobile, 820 for tablet and your usual desktop width.
Does CSS grid convert to Figma auto layout?
Simple grids usually become nested auto layout. Complex grids with spanning items arrive as fixed frames, because Figma auto layout works in one direction at a time.
How do I replace missing fonts after importing a website?
Use Figma's Replace fonts dialog to swap the substituted font for one you have, or install the original font and paste again.

