fonts
fonts copied to clipboard
Local fonts with TailwindCSS v4 not loaded if using @theme inline
Not sure if this is a bug or just me, but I found that when I used local fonts (put inside /public/fonts directory), and have this in my main.css
@theme inline {
--font-sans: "Roboto", sans-serif;
}
It's not loaded. But if I do this:
@theme {
--font-sans: "Roboto", sans-serif;
}
It works.
I have a similar problem, I wrote more details on the comment on other issue: https://github.com/nuxt/fonts/issues/706#issuecomment-3430160586