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
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
Font Family - Tailwind CSS
Utilities for controlling the font family of an element.
Abulkalam
AbulkalamOP•2y ago
This is hosted on vercel.
No description
Abulkalam
AbulkalamOP•2y ago
The other two font-family properties are overwritten here.
No description
Abdul Rehaman Shaikh
Yes. Have you read the article from the link I shared? I hope you will understand from it 🙂
Abulkalam
AbulkalamOP•2y 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.

Did you find this page helpful?