Skip to main content

Design File Agent doesn't recreate exactly what's in HTML file

  • June 28, 2026
  • 1 reply
  • 10 views

Phat Pham

I feed the agent in the design file an HTML cause I like certain parts and hated certain part of the HTML. I was planning to copy and paste the best parts into my app.

The agent did not recreate the design on the HTML file. It has errors and it looked completely different.

My workflow that i like to have: Have AI create a design that I like → output is HTML → hated certain parts → put the HTML into design file agent to recreate certain things → copy & paste the best parts out and put it into existing design frames


A lot of my designs are already on Figma. If this smoothens out, I would definitely use it a lot.


Also, the figma design agent cannot create figma components, which is the most tedious part of doing Figma.

1 reply

adamsmasher
Figmate
  • Figmate
  • June 28, 2026

Hi, ​@Phat Pham! Thanks for your post and for trying out the agent in Figma Design. I can imagine it’s frustrating for you when you can visually see what you want but can’t quite get there when having the agent recreate it.

 

Generative AI by its nature can sometimes output imperfect results that may be inaccurate, incomplete, or work differently than you want, and these will vary depending on the prompt, file context, and model used. Having said that, we have some help articles which can help you learn how to work with it. I’d start with the Get started with the Figma agent in design files article first, then I’d check out the using AI in your design workflows article. In addition to that, there are a lot of ways you can approach what you want to do. For example, you could have the tool you are using to generate HTML give you a design.md file that essentially acts like a design library, containing all your colors, spacing, padding, etc - essentially a design library. You could then have the agent build a library in Figma Design off of that and use that with anything it generates. That’s just one way to approach it, though, and you might find something else works better for your design flow.

 

Oh, one other point: the agent can create Figma components. Just to make sure, I did a quick test and asked it in my own test file to create a basic card component using whatever libraries were available in my file. There really wasn’t much so it used the plugin API instead:

A screenshot showing my prompt, the agent response, and the component that was created.

Â