Jdodd
TTCTheo's Typesafe Cult
•Created by Temp Change on 11/16/2023 in #questions
How would I go about adding Inter Font to my tailwind config
Forgot to inlcude that you will also need to add this line for any classes you will use it with
"font-body" tells tailwind to use the font in the tailwind.config.cjs file
6 replies
TTCTheo's Typesafe Cult
•Created by Temp Change on 11/16/2023 in #questions
How would I go about adding Inter Font to my tailwind config
You can add fonts to tailwind by importing them in your globals.css file, here is an example with the font Crimson Text
Then in your tailwind.config.cjs file you will just add the following lines under theme:
Hope this helps!
6 replies