Closed nandorojo closed 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.
typography
'var(--my-font)'
wrapFontFamily
Happy to take a pr with a fix
thanks for the fast response, PR opened here: https://github.com/KyleAMathews/typography.js/pull/307
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 inwrapFontFamily
.