Fonts in tailwindcss

I was just curious, where does tailwindcss gets its fonts from? I just added this thing inside extend object of tailwind.config.js file and was able to use the font.
fontFamily: {
"proxima-nova": ["Proxima Nova", "sans-serif"],
},
fontFamily: {
"proxima-nova": ["Proxima Nova", "sans-serif"],
},
6 Replies
Abdul Rehaman Shaikh
Abdul Rehaman Shaikh•9mo ago
Did you check if it was truly Proxima Nova? Have you installed this on your local machine? By default, Tailwind provides three font family utilities: a cross-browser sans-serif stack, a cross-browser serif stack, and a cross-browser monospaced stack
Abdul Rehaman Shaikh
Abdul Rehaman Shaikh•9mo ago
Font Family - Tailwind CSS
Utilities for controlling the font family of an element.
ABUL KALAM
ABUL KALAMOP•9mo ago
This is hosted on vercel.
No description
ABUL KALAM
ABUL KALAMOP•9mo ago
The other two font-family properties are overwritten here.
No description
Abdul Rehaman Shaikh
Abdul Rehaman Shaikh•9mo ago
Yes. Have you read the article from the link I shared? I hope you will understand from it 🙂
ABUL KALAM
ABUL KALAMOP•9mo ago
I have read it. None of the sections specifies what fonts can be used in tailwindcss. I picked a random font from fonts.google.com, added it to the tailwind config file and it worked.
Want results from more Discord servers?
Add your server