Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple fonts in a fontFamily does not work #42

Open
stouch opened this issue Aug 2, 2023 · 2 comments
Open

Multiple fonts in a fontFamily does not work #42

stouch opened this issue Aug 2, 2023 · 2 comments

Comments

@stouch
Copy link

stouch commented Aug 2, 2023

We cannot set multiple fonts for a fontFamily definition in our tailwind because on tw() render it concatenates with (space) instead of concatenating with , (comma), so for :

// tailwind.config.js
{
    fontFamily: {
      body: ["Inter", "sans-serif"],
    }
}

we got :

/* once` transpiled on runtime : ... */
font-family: "Inter sans-serif"; 

and "Inter sans-serif" isnt an existing font.

@halfbakedsneed
Copy link

Yep, noticed the same thing.

Looks like it's joined incorrectly: https://github.com/arlyon/stailwc/blob/master/crates/tailwind-parse/src/eval/plugin.rs#L241

@arlyon
Copy link
Owner

arlyon commented Aug 3, 2023

Thanks for the report. Fixing now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants