bernaferrari / FigmaToCode

Generate responsive pages and apps on HTML, Tailwind, Flutter and SwiftUI.
https://www.figma.com/community/plugin/842128343887142055
GNU General Public License v3.0
3.58k stars 262 forks source link

Support fontFamily in Tailwind #84

Closed ryan0x44 closed 9 months ago

ryan0x44 commented 9 months ago

Solution to #83

Ideally we'd look to use font-sans, font-serif, font-mono, any any custom classes, but given FigmaToCode doesn't have knowledge of the tailwind config file, we can't look up that mapping. This change still gets the job done and is better than not having anything IMO.

bernaferrari commented 9 months ago

Thanks, I completely forgot about that.