Hugo
Explore posts from serversAdd custom font with tailwind plugin
Hello guys, i'm struggling for 4 hours now on trying to import custom fonts on my project.
I try to add the font with a tailwind plugin (so i can just copy the plugin and change the fonts on my diferents projects)
But i can't make it work, the font class is created, but the font familly is not recognized.
I added all woff and woff2 files in my /asset/fonts/font_name/ folder
also i defined my font in tw theme:
then i tried several methods to add the font.
in the theme:
didn't worked,
with css :
didn't worked too.
I'm lost, it's patethic to be lost on "Font customization"
10 replies