fonts icon indicating copy to clipboard operation
fonts copied to clipboard

Local fonts with TailwindCSS v4 not loaded if using @theme inline

Open hendrasan opened this issue 6 months ago • 1 comments

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.

hendrasan avatar May 27 '25 07:05 hendrasan

I have a similar problem, I wrote more details on the comment on other issue: https://github.com/nuxt/fonts/issues/706#issuecomment-3430160586

thiagonunesbatista avatar Oct 22 '25 01:10 thiagonunesbatista