-
I have a newly created project with SvelteKit and Vite, and have upgraded to the NEWEST Tailwind version (v4 alpha). But I'm wondering how you would add a custom font (let's say font.woff2). I have tried setting it with the |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 21 replies
-
Can you share an example project? What you've described sounds right to me, you just do it the same way you do with regular CSS. |
Beta Was this translation helpful? Give feedback.
-
@gu5e Make sure you're adding something like the following to generate/update the classes and custom properties. @theme {
--font-family-sans: "font", sans-serif;
} |
Beta Was this translation helpful? Give feedback.
-
Hello, it doesn't work when I upgrade to the following version |
Beta Was this translation helpful? Give feedback.
-
There I'm doing this way to customizing fonts, using google fonts and override it tailwind's default fonts: //override default fonts // custom fonts( to be safe I imported it from Google fonts) If need how I did this, here is a video |
Beta Was this translation helpful? Give feedback.
-
if its not broke dont fix it what a fking shambles |
Beta Was this translation helpful? Give feedback.
-
really sorry to bother, i've tried all i can think about and followed the instruction you gave, still does not work. please help. |
Beta Was this translation helpful? Give feedback.
I think your answer should be updated to