What I want is to take these rendered components and somehow generate Figma files that designers can use. The goal is to let users grab these designs and bring them into their Figma workspace without having to recreate everything manually.
Has anyone found a way to do this kind of automatic conversion? I’m open to using any libraries or APIs that might help with this workflow.
hey! yeah, that plugin is really handy for this. you can convert your components to HTML and then push them to Figma. might need some tweaking after but definitely saves time! good luck with it!
I just did this recently - html-to-figma package works pretty well. You’ll need to render your React components to static HTML first, then use their API to push everything into Figma. The styling and layout conversion is the tricky part though. I had to make my CSS way more explicit about dimensions and positioning since Figma handles layout totally differently than browsers. Complex interactions won’t carry over obviously, but for static design handoffs it gets the job done. You’ll still need to clean up the Figma components manually afterward, but it beats starting from scratch.
I’ve dealt with this exact problem syncing our component library with design systems. HTML conversion works but it’s a nightmare to maintain.
I built an automated pipeline that captures component screenshots at different states and pushes them straight to Figma via their REST API. Game changer was automating the whole workflow.
Here’s my setup: workflow watches for component changes, auto-renders them in different viewport sizes, extracts styling properties, and creates Figma frames with proper constraints and auto layout. Handles multiple component variants and states in one shot.
It also parses your CSS and converts flexbox properties into Figma’s auto layout settings. Way cleaner than HTML conversion and you get properly structured Figma components instead of imported images.
I run this through Latenode since it handles the API orchestration between React rendering, image generation, and Figma’s API smoothly. You can trigger it automatically whenever you push component updates.