top | item 29630364

Show HN: I've made a Figma plugin that converts design to HTML with TailwindCSS

43 points| candylifter | 4 years ago |figma.com

10 comments

order

Jefro118|4 years ago

Nice work in that the output looks pretty close and it's super convenient to open it in CodeSandbox. Unfortunately it still has the same issue as all other plugins that try to do this in that the code is nothing like how it would be written by a developer and isn't responsive.

Anyone reading this whose looking for the holy grail solution of Figma to code that's written like a developer wrote it, I'm working on this (should be ready soon!) and would love to talk to you - please email me on emile@pygma.app (note that the current public version isn't very good and suffers from the same problems as all the others).

candylifter|4 years ago

It is responsive as long as you use auto layout. Every other code generation plugin in Figma community is either paid or doesn't work anymore. I've tried Pygma and I just couldn't get it to work, it crashes when I'm trying to use it.

Also, in contrast to Pygma, you don't need an account to generate code :)

tsejerome97|4 years ago

This is quite nice. The problem I usually see with Figma converting to HTML plugins is that, there are too many nested divs! This might not be friendly for weak devices and is not that SEO friendly. If you are trying to solve this problem, it would be awesome!

ImpressiveWebs|4 years ago

The nested divs themselves would not affect SEO. The problem may be caused by divs being used in place of proper semantic tags, which may have an effect. But even then, the affect would be minimal. And I’m not sure what you mean by certain “weak devices” being affected. I’ve been writing and blogging about HTML for 15 years and have never heard of that.

candylifter|4 years ago

Thanks! Maybe one day as an optimization step. Right now focus is to generate code that is closest to the design as possible.

yawnxyz|4 years ago

Wow that's super cool! I love how it just opens up codesandbox. Thanks for putting this together and sharing it – I just got into Tailwind and it's been so amazing!