Figma to website guide

Why Your Figma Design Looks Different on the Website

Fonts, text reflow, rounding, image scaling, effects CSS lacks and a missing mobile frame cause nearly every mismatch. Check them in that order.

Nikita JerschowPublished Updated

Publishing from Figma with Figment

The Figment plugin turns page frames in a Figma Design file into a hosted website.

Free planfigment.so address, Figment badge$0
Paid plansYour own domain, no badgeSee plans

Hosted publishing, not a code download.

A live site differs from the Figma file for a short list of specific reasons: fonts, text reflow, rounding, image scaling, effects CSS lacks, and a missing mobile frame. It is usually four or five small gaps stacking up, each with its own fix. This is the order to check them, based on what goes wrong in the Figment plugin's Figma-to-web renderer.

Why do my fonts look wrong on the website?

Typography causes roughly half of all mismatch reports, and it fails in two ways that look different. If the typeface is right but the text reads a little flat, the weights were lost. Figma stores a family and a style string like SemiBold, not a number. Put font-weight: SemiBold in CSS and the browser discards it and renders at 400. If the typeface itself is wrong, the font never loaded, because Figma does not hand out font files and your visitor does not have your font installed.

Both are covered in Figma fonts not working on your website. Fix fonts before anything else, because wrong weights change text width, and changed text width moves everything around it.

Why does my text wrap differently than in Figma?

A browser lays text out again at render time, so it does not land on the same pixel as Figma. In Figma a text layer is a box with the glyphs already laid out. In a browser the font engine re-lays-out the same string, and hinting and subpixel rounding differ between Figma's renderer and a browser's, even with the correct font at the correct weight.

The symptom is a headline that fits on one line in Figma and wraps to two on the site, which pushes everything below it. The Figment renderer pads text elements by a few pixels of extra width to absorb this. That is a workaround, not a fix. The durable fix is to stop designing text boxes exactly as wide as the text: give every text layer some slack, and check your longest string rather than your prettiest one.

Why is there a one-pixel seam between elements?

Fractional coordinates round differently in a browser. Figma will give a layer a width of 247.3333px. Browsers accept fractional pixels but round them differently when painting, and a stack of rounded values drifts, so two elements meant to line up show a one-pixel seam.

Round your coordinates to whole numbers in the design. Figma has a "Round to pixel" action in the right-click menu on a selection. It takes seconds and removes a whole class of these.

Why do my images look soft or cropped?

Published image layers are rasterized out of Figma as PNGs, and the Figment plugin exports them at 1x scale. A 400px-wide layer exports a 400px-wide PNG, which looks soft on a retina display where the browser draws at 2x.

Cropping is a separate issue. A raster image in a fixed-size box has to resolve the aspect-ratio mismatch somehow. object-fit: cover fills the box and crops the overflow, while contain fits the whole image and leaves gaps. Cover is the sane default and the one the plugin uses, but a subject near the photo's edge can be sliced off at a size you did not check.

Raster export also adds weight: a design full of large photographs becomes a page full of large PNGs. Compress source images before you import them into Figma, because nothing downstream can recover lost detail or shrink a file you never optimized.

Which Figma effects have no CSS equivalent?

Drop-shadow spread, background blur, blend modes and per-side borders translate poorly, and converters quietly approximate them. Figma gives a shadow offset, blur and spread. Many converters, the Figment plugin included, emit offset and blur only, so a design that leans on spread gets a lighter shadow than intended. Background blur and layer blend modes are similarly lossy. CSS border is one value, so a frame with a 2px top border and a 1px bottom border cannot be expressed in one shorthand.

If a specific element looks off and it is not fonts, check whether it carries an effect in that group.

Why does the site break on my phone?

The design probably has no layout built for phone width. Figma positions everything at absolute coordinates on a fixed canvas, while a browser window can be any width. Scaling a 1440px desktop design down to a 390px phone gives 9px body text.

No automatic answer exists: it is a design decision about what stacks, what hides and what shrinks. Figment does not merge a desktop frame and a phone frame into one responsive page: each top-level frame you select becomes its own page. Design the layout to hold at phone width, and test the published page at phone and desktop widths. See Figma responsive web design.

How do I check the live site against the design?

Resize your browser window slowly from wide to narrow and watch where things break. Then open the site on a real phone, not only Chrome's device emulator, because emulators use your desktop's installed fonts and will show a typeface your visitors do not have.

If you designed the page in Figma and want to publish it as a hosted site, the Figma plugin publishes straight from the file. The Figma-to-website publishing guide covers the full process from frame to live URL.