Design-to-code needs a review loop, not a magic button

"Export this design to code" has always sounded cleaner than it is.

It sounds like a file conversion problem. Take the mockup on the left, produce the React component on the right, maybe sprinkle in Tailwind classes, and move on. The pitch is tidy because the demo is tidy. A static screen becomes a static page. The button is blue. The spacing looks close enough. Everyone nods.

Then a real team tries to ship it.

The generated UI has to live inside a codebase. It has to use the right component primitives, behave correctly across states, fit the design system, handle empty data, preserve accessibility, survive responsive layouts, pass review, and still make sense when the product changes next week. None of that is captured by the fantasy of a one-shot export.

The useful version of design-to-code is not a magic button. It is a review loop.

Design intent goes in. Code comes out. The result gets inspected visually and behaviorally. The parts that work are kept. The parts that are only plausible are rewritten. Sometimes the code needs to return to the canvas so a designer can see what the implementation actually became. Sometimes the code belongs in a branch where a frontend engineer can test it like any other change.

That loop is less glamorous than the demo. It is also much closer to how software ships.

The screenshot is not the product

The first trap is treating fidelity as if it means correctness.

A model can generate something that resembles the screenshot while missing the reasons the screenshot exists. It might copy the visual hierarchy but ignore the component model. It might match the desktop layout but collapse awkwardly on mobile. It might produce a button that looks right but has no loading state, no disabled state, and no clear focus behavior. It might flatten a carefully designed component into a pile of divs that nobody wants to maintain.

This is why research work like Figma2Code is interesting. The problem is not merely "can a model produce UI code from a design?" The harder question is whether generated code can preserve enough of the design, structure, and multimodal context to be useful in the wild. Real-world design files are not clean textbook examples. They contain naming habits, variants, layout constraints, nested components, image assets, annotations, and sometimes a lot of historical mess.

If the output is judged only by how close it looks in one happy-path screenshot, teams will over-trust it.

Frontend work is full of quiet requirements. Some are visible only when a user resizes the window. Some appear only when data is missing. Some matter because a screen reader needs structure that a screenshot cannot show. Some come from product judgment: this flow should feel forgiving, this warning should be harder to miss, this dashboard should not pretend precision where the data is noisy.

The screenshot is a useful reference. It is not the product.

The new tools are starting to admit this

The more interesting thing about the current Figma and AI coding news is that the workflow is becoming bidirectional.

Figma is not only pushing toward "generate code from design." Its recent announcements also point toward a wider canvas where motion, shaders, AI assistance, code, and design artifacts sit closer together. The Code to Canvas partnership with Anthropic is another version of the same idea: implementation should be inspectable and editable in a design environment, not thrown over the wall as a final artifact.

GitHub adding Claude and Codex-style coding agents to the development workflow points from the other side. Once a generated interface enters a repo, it becomes normal engineering material. It needs a branch, tests where possible, review, ownership, and a decision about whether it belongs in the product.

These sound like separate product announcements, but they rhyme.

The canvas wants to understand code. The repo wants to accept agent-generated changes. The human reviewer wants enough context to decide whether the output is merely impressive or actually shippable. Design-to-code starts to look less like export and more like circulation.

That is the shift I care about.

The best tools will not remove the review step. They will make review cheaper, more precise, and harder to skip by accident.

A useful loop has boring parts

If I were evaluating a design-to-code workflow for a team, I would not start with the flashiest generation demo. I would start with the handoff.

Can the generated code preserve the intent of the design system? Does it use existing components, tokens, and layout primitives, or does it reinvent them in a slightly different style? Can a reviewer see which parts were inferred and which parts came from the source design? Is there a way to compare the result against the original screen without relying on memory?

The boring parts matter because they decide whether the tool fits into real work.

A practical loop might look like this:

First, keep design metadata alive as long as possible. Names, variants, constraints, component relationships, and annotations are not decorative. They tell the generator what the design is trying to be.

Second, generate into a reviewable surface. That might be a sandbox, a branch, or a preview environment. The important thing is that the output can be inspected as working UI, not only as code text.

Third, compare the result visually and behaviorally. Look at responsive states. Try empty data. Use keyboard navigation. Check the component tree. See whether the generated code feels like it belongs in the project.

Fourth, treat demo assets as part of the loop, not an afterthought. Once a generated UI has been inspected, teams often need screenshots, thumbnails, or social previews to explain the work. For fixed social formats, a browser-local tool like Resize Image for Instagram can turn an inspected UI screenshot into 1080 x 1080, 1080 x 1350, 1080 x 1920, or 1080 x 566 assets without uploading the image for processing. That is not the main workflow, but it is the kind of small practical step that keeps review and communication from drifting apart.

Finally, keep humans responsible for product decisions. A model can propose structure. It can save time. It can get surprisingly close. But "close" is not the same as "this belongs in our product."

The resource problem is real too

There is another quieter issue: teams are choosing these workflows while the category is still changing underneath them.

Design-to-code overlaps with Generative UI, agent-rendered interfaces, component catalogs, MCP-style UI surfaces, app builders, and coding agents. The names are messy because the underlying shape is still moving. One tool starts from a design file. Another starts from a prompt. Another starts from an existing repo. Another gives an agent a trusted set of components and lets it assemble an interface at runtime.

Those are not the same workflow.

Before a team standardizes on one path, it helps to compare actual examples: papers, SDKs, open-source projects, product cases, and implementation notes. A curated index of Generative UI resources is useful here because the field is broad enough that a normal search session quickly turns into a pile of tabs.

This matters because the review loop depends on the generation model.

If the system generates static code, review is mostly about maintainability, fidelity, and integration. If it generates UI dynamically at runtime, review has to include permissions, component safety, state boundaries, and what the agent is allowed to render. If it edits an existing codebase, review has to include diff quality and project conventions. If it sends code back into a canvas, review has to include whether designers can actually understand the result.

The label "AI UI generation" hides too many differences. Teams need to name the loop they are buying into.

The real bottleneck is trust calibration

Bad design-to-code output is easy to reject. The dangerous output is almost right.

Almost-right UI creates a strange kind of pressure. It looks too good to throw away, but not good enough to trust. Someone has to decide whether fixing it is faster than rebuilding it. Someone has to notice the missing states. Someone has to catch the accessibility regression. Someone has to ask whether the generated layout is expressing the design system or merely imitating one screen.

That is trust calibration.

The goal is not to distrust every generated component. That becomes its own waste. The goal is to know what kind of work the system is good at, where it tends to fake understanding, and which checks must happen every time.

For many teams, the first useful rule will be simple: generated UI does not skip review. It changes what review looks like.

Instead of asking only "is this code correct?", reviewers ask:

  • Does this preserve the design intent?
  • Does this fit our component model?
  • Does it behave correctly outside the happy path?
  • Does it expose enough structure for future changes?
  • Did the agent make a product decision that a human should have made?

Those questions are slower than accepting a pretty output. They are also where the value is.

The winners will make review cheap

I do not think the future belongs to teams that blindly trust first-generation UI. That version of the story is attractive because it promises speed without responsibility. It is also the version most likely to create cleanup work later.

The better outcome is more mundane.

Teams will get faster because the loop gets tighter. A designer can see how an implementation behaves sooner. A frontend engineer can start from a better scaffold. A coding agent can handle some of the repetitive translation work. A reviewer can compare intent, code, and behavior in one place instead of reconstructing the whole story from memory.

That is still a big deal. It just is not the same big deal as "click once and ship."

Design-to-code becomes useful when generation is treated as the beginning of a conversation with the product, not the end of one. The output has to come back through the same gates as any other UI: design judgment, engineering judgment, accessibility, behavior, maintainability, and the boring question of whether this is actually worth shipping.

The magic button was never the right dream.

The real dream is a loop cheap enough that teams can afford to use it every time.

Source notes

Comments

Popular posts from this blog

The Agent Shift Is Showing Up in Workflows, Not Prompts

The Invisible Wall of Vibe Coding: The Rise of Control Debt

Code Review Is Becoming a Routing Problem