Open stouch opened 1 year ago
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 :
tw()
` (space) instead of concatenating with
// 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.
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
Thanks for the report. Fixing now!
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 :we got :
and "Inter sans-serif" isnt an existing font.