Skip to content

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

@hendrasan

Description

@hendrasan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions