Skip to content

Does not work with Tailwind (or with CSS variables) #549

@Barbapapazes

Description

@Barbapapazes

🐛 The bug

I have the following css for Tailwind CSS 4:

@theme {
    --font-sans: 'DM Sans', sans-serif;
    --font-sofia: 'Sofia sans', sans-serif;
    --font-mono: 'DM Mono', monospace;
}

and it does not work. With the following code:

.google-font {
  font-family: "Poppins", sans-serif;
}

🛠️ To reproduce

Barbapapazes/fontaine-fork@3379c57

🌈 Expected behaviour

It should work with a CSS variable as it works with font-familly

ℹ️ Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions