Can't apply custom font (Tailwind CSS)

So I'm trying to add a custom font (not from Google Fonts), however, when I create a new @font-face property in the input.css file, it doesn't apply the font. Here's what I've done so far:
File structure
How I added the custom @font-face property.
6 Replies
GeorgeDash
GeorgeDashOPā€¢5w ago
And this is how it looks like:
No description
į¼”ĻĻ‰Ļ‚
į¼”ĻĻ‰Ļ‚ā€¢5w ago
you didnt specify the font-weight the font is for instead of starting the path with ../, use /
GeorgeDash
GeorgeDashOPā€¢4w ago
OK, thanks! And also - hi again! Yaaaay, it worked! šŸ˜
į¼”ĻĻ‰Ļ‚
į¼”ĻĻ‰Ļ‚ā€¢4w ago
awesome! remember: for css, the paths are relative to the file location so, you would have to either use / at the beginning or use ../fonts/....otf instead the best is the / because it will always use the root as a starting point, and you dont need to fix paths if you move the css file to another folder
GeorgeDash
GeorgeDashOPā€¢4w ago
I see - I didn't know that only / will make it use the root as the start point. Thanks for the tip!
į¼”ĻĻ‰Ļ‚
į¼”ĻĻ‰Ļ‚ā€¢4w ago
you're welcome
Want results from more Discord servers?
Add your server