KyleAMathews / typography.js

A powerful toolkit for building websites with beautiful design
http://kyleamathews.github.io/typography.js/
MIT License
3.82k stars 181 forks source link

Support CSS variables #306

Closed nandorojo closed 1 year ago

nandorojo commented 1 year ago

Currently, typography wraps all font names in quotes. This doesn't let you use a font like 'var(--my-font)', since it will turn it into a string. The logic is in wrapFontFamily.

KyleAMathews commented 1 year ago

Happy to take a pr with a fix

nandorojo commented 1 year ago

thanks for the fast response, PR opened here: https://github.com/KyleAMathews/typography.js/pull/307