BuilderIO / figma-html

Builder.io for Figma: AI generation, export to code, import from web
https://www.figma.com/community/plugin/747985167520967365
MIT License
3.17k stars 291 forks source link

Font weight doesn't seem to be imported #23

Open gavinmcfarland opened 4 years ago

gavinmcfarland commented 4 years ago

When I import my website, the font-weight doesn't seem to be being picked up.

This is a screenshot of the website

Screenshot 2020-03-15 at 19 27 44

And below a screenshot of the import

Screenshot 2020-03-15 at 19 30 56

Would you happen to know what might be causing this issue?

Many thanks.

alexshnur commented 4 years ago

I have the same problem. Not correct read from css font-weight and html tag strong and H tags

Please fix this bug

steve8708 commented 4 years ago

Hey all -

so the issue here is the way CSS fonts and figma fonts work have some key differences. Adding support for this will never be perfect, and I explain a strategy to partially support this by making a few assumptions over here #5

As always, open source contributions are more than welcome!

gavinmcfarland commented 4 years ago

Ah I see, yeah I can appreciate how that would be a big job. Thanks for letting us know.