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.8k stars 303 forks source link

Support fontFamily in Tailwind #84

Closed ryan0x44 closed 1 year ago

ryan0x44 commented 1 year 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 1 year ago

Thanks, I completely forgot about that.