Open onmax opened 3 weeks ago
I assume that the AST does not walk through nested CSS correctly here.
If it is ok, I could make a PR if one of the maintainers agrees with this change :)
Thanks for this great module!
that would be great - thank you 🙏
Description
Using nuxt fonts to set different fonts for specific CSS classes works perfectly for single-level classes, but when trying to apply a font to nested CSS classes, it does not load as expected.
For example, Lato works fine for
.lato
, but Nunito fails to apply in nested elements like.nunito p
:Reproduction steps
Expected behaviour
Both fonts should be applied according to the CSS structure, with
Lato
on the outerdiv
andNunito
on the inner<p>
element.Reproduction link
Stackblitz repro