-
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: 3 comments 10 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.
I think your answer should be updated to