I want to replace the default "serif" and "sans" fonts in Tailwindcss with another font. How can go about doing that? I'm using Next.js if it helps.
More specifically, where do I save the downloaded font and configure twin to use it?
@theairbend3r please see Tailwind's official documentation on customizing fonts
@rbutera Hey, could you give further explanations on how to do this? I'm using twin.macro with nextjs and styled components. Do I need to change something inside next.config.js? I added the font inside public/fonts but can't get this to work. Already read the Tailwind documentation...
I've used the next-fonts package to load fonts, perhaps take a look at that.
Most helpful comment
@rbutera Hey, could you give further explanations on how to do this? I'm using twin.macro with nextjs and styled components. Do I need to change something inside next.config.js? I added the font inside public/fonts but can't get this to work. Already read the Tailwind documentation...