'tailwind doesn't want to show font
here's my question. for learning purposes i am currently working on a website with tailwind installed with the CLI method. i downloaded a font and applied it in my configuration file like this:
fontFamily: {
sans: ['"Dela Gothic One"', 'cursive'],
serif: ['Graphik', 'sans-serif'],
},
unfortunately, the font doesn't show up, even if i call the font
<h1 class="name font-sans">bolliger et mabillard</h1>
any tips to make it work?
Solution 1:[1]
You're missing single quotes declaring the fontFamily, I would try adding you font in tailwind.config.js
like so:
fontFamily: {
'sans': ['"Dela Gothic One"', 'cursive'],
'serif': ['Graphik', 'sans-serif'],
},
and it should then work.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Arthur |