What the tool optimises for
A design-to-code tool, whether it is Figma's own export, a plugin, or a product that generates an interface from a prompt, is optimised to reproduce the rendering it was shown. Give it a 1440px frame and it returns something that matches at 1440px. Compared as screenshots, that looks like success.
A mockup, though, is a picture of one state at one width. A buildable interface is a set of rules that hold at every width and in every state. The tool is matching a picture; the browser is asking for rules.
Copying is a translation, not a lookup
Six things get lost in that translation, and none of them is visible in a screenshot.
1. Geometry is inferred, not read
Figma's auto-layout is not CSS flexbox. It has its own sizing model (hug, fill, fixed), its own spacing, and constraints that only approximate how a browser resolves a layout. To convert, the tool has to decide: absolute position here, flex there, a fixed width for this block.
Those decisions look correct at the width in the file. At 1280px the gaps drift. At 1024px a four-column product grid is still four columns, because nothing in the file said it should become three. The card that was 280px is now 220px and the text inside no longer holds its line breaks.
2. Type is a picture of type
The file stores a font size, a line height and a letter spacing. The browser applies those values through a font that may not have loaded yet, with metrics that differ from the design tool's, on a device that may render differently.
Change the width and the headline re-wraps. A two-line hero at 1440px becomes three lines at 1100px, which pushes the call to action below the fold. Nobody wrote a rule for that, because the design never showed it.
3. Images are fills, not assets
In Figma an image is a crop inside a frame. In a browser it is a file, an aspect ratio, a size, a source set and an object-fit rule. Generated code frequently turns the crop into a background image with no dimensions, which means the page shifts while it loads and the crop is wrong on a phone.
4. Components collapse into markup
A card repeated twelve times in the file becomes twelve blocks of markup with inline styles. No variants, no tokens, no single place to change the spacing. When the client asks for a different border radius, that is twelve edits, and the thirteenth card added later will not match.
5. Two frames are not a responsive system
Most files contain a desktop frame and a mobile frame. The range between them is where real users live: tablets, small laptops, split screens, zoomed browsers. The tool interpolates that range by inventing breakpoints, and the result usually works at the two widths in the file and breaks at the ones in between.
6. States and semantics are absent by construction
A mockup shows the default state. Hover, focus, active, disabled, empty, loading, error and validation do not exist in the file, so they do not exist in the output. Neither does semantics: the generated markup is divs, with no landmarks, no labels, no focus order and no alt text.
None of this appears in a screenshot. All of it is visible to a keyboard user, to a screen reader, and to the person maintaining the page next year.
Aephyros, and what matching a mockup actually costs
This is not a theoretical list. Aephyros, a ready-to-wear label, arrived with mockups finished to the pixel for every page and a clear idea of the shopping experience. There was no room for approximation: the design was the specification.
We built the store on Citronline, our own e-commerce system, and adapted the storefront and back office to those designs. That meant the layout rules, not just the two frames: every breakpoint, the states the file does not show, a bilingual interface in English and Traditional Chinese, and a checkout covering international and local payment (cards, PayPal, ECPay, LINE Pay) with PDF invoices.
None of that came from the mockup, and none of it comes from a design-to-code tool. The mockup answered one question, what it should look like. Everything else had to be decided, written down and built.
The 80/20 line is generous
It is often said that AI gets you 80% of the way. For a static page that is roughly true, if you count the visible layout as the 80%. The problem is what the remaining 20% contains: the responsive rules, the states, the data binding, the accessibility, the performance budget, the code someone else can read.
A page that matches at 1440px and breaks at 1024px is not 80% finished. It is not shipped. The percentage is not a measure of progress, it is a measure of how much of the failure is still hidden.
Where AI genuinely helps
All of this is an argument about order, not a refusal of the tools. AI is good at the first draft: scaffolding a component, converting a format, generating the boring half of a form, trying three versions of a section in an afternoon. It is also good at the mechanical part of the audit, comparing what was built against the mockup at each width.
The rule we use: let it start the work, then check the result against the file at every breakpoint and in every state before anyone calls it done.
What production adds
Defining the states the file does not show. Writing the responsive rules instead of interpolating them. Making the markup semantic and operable from a keyboard. Binding real content, in two languages, at the lengths real content has. Keeping the page fast on a phone on a train. Leaving code the next developer can extend.
If you have a Figma file, or a generated draft that looks right in a screenshot, we can tell you what it will take to make it hold.