Why not generate React code from Figma? (a.k.a. why did PageDraw YC18 fail?)
It would make my life much easier if they had succeeded. In that world, when my cofounder and I finish polishing our designs in figma, we click a button and (most of) the React UI code is written for us. All we would have to do is wire up the generated components to data sources, and voila. Take the rest of the day off.
If it had worked well, it could automate a good amount of the boring UI work I need to do on a consistent basis. Why am I still manually writing styled components when the information is all there in figma already?
What do you think, HN?
Curious if anyone knows of great solutions for this problem or thinks that something like this should (or shouldn't / couldn't) exist.
What do folks think of Anima? https://www.animaapp.com/blog/design-to-code/how-to-export-figma-to-react/
Or Overlay? https://www.overlay-tech.com/
Figma's own blog post on this: https://www.figma.com/blog/introducing-figma-to-react/
A reddit discussion: https://www.reddit.com/r/FigmaDesign/comments/ht9krs/best_way_to_convert_designs_from_figma_to_react/
Is anyone else working on this?
16 comments
[ 4.5 ms ] story [ 46.7 ms ] threadhttps://www.plasmic.app/
(Our users include ex-PageDraw/Anima users.)
[0] https://knowyourmeme.com/memes/how-to-draw-an-owl
Wiring up a frontend to a backend isn't a trivial task, but is pretty typical software engineering. If part of the work (the ui) could be done for you, wouldn't that be a clear value-add?
In general I do think that tools in this niche will mature over time, but in my very subjective opinion, they won't be the holy grail of cutting down development time. Most of the time, the hard part of software development is the long haul, not the initial kickoff.
OTOH, for the capability itself, you might want to look at https://reactstudio.com/ .
The flow of designs to be turned into code is relentless, it's almost like a factory.
The reason this doesn't get solved is that you'll always need a developer to smooth the edges, making it responsive, check things work properly everywhere.
There is just too much cruft in the web for full proper automation and there are plenty of frontend developers who barely know how to code but knows how to write React component at a relatively low price.
For individual product companies the effort to create something like this would be too big. Adopting an emergent third party solution instead of throwing frontenders at the problem would be a risky proposition.
Agencies would be the perfect candidate for buying something like this but the cost of developers can easily be passed down to the customer - and if they're big enough to have a lot of clients, they make money because of their brand, not because they're particularly cheap.
I don't think we'll see a solution to this before General Artificial Intelligence; the incentives for building a custom solution for this problem are low and the cost is relatively high.
Maybe if the web as we know were to become simpler / standardised (imagine having native views with native components configured by web services, instead of the wild west of an html page) this could become doable.
They definitely have this problem all the time.
Imagine having n PM from big brands who need to build some websites / landing pages and don't want to commit their own development resources (either they don't have them, or they do).
Agencies generally have internal project managers to match the clients and extract requirements.
A common pattern is to have some developers and designers on the payroll (but the pay is not great, it's hard to get good talent) and a few contractors you worked with on the side for more exotic projects (eg. if a client wants a 3d website).
The designers come up with the designs. Sometimes the client will have their own design.
Often times the design + some notes on the side can replace a standard requirements documents.
After that the designs are sent to the developers who convert it into code and deploy, usually with some sort of CMS (WordPress is still pretty popular, Django as well).
The project gets demoed and adjustments / bugfixing starts.
Another problem is that most product teams don't just need to generate code once but also keep it in sync with Figma. As far as I can tell, no one has solved the syncing problem in either direction particularly well. I actually think syncing from React -> Figma is not fundamentally difficult but you need to build a big hairy compiler to deal with any React + styling code which would be a PITA. Going in the other direction is more fundamentally difficult I think, probably needs very good machine learning as well.
Also, always love to hear more details about precisely what's so painful and boring about the way you deal with it now?