This is how I got it to work. The module adds the fallback fonts correctly but we need to tell tailwind the fallback font family name in order to actually use it.
// tailwind.config
module.exports = {
theme: {
extend: {
fontFamily: {
// For every font, provide another string in `${fontName} fallback` format
plex: ["IBM Plex Sans Arabic", "IBM Plex Sans Arabic fallback"],
},
},
},
};
đ Your use case
Update README to show usage with tailwind.
đ The solution you'd like
This is how I got it to work. The module adds the fallback fonts correctly but we need to tell tailwind the fallback font family name in order to actually use it.
đ Alternatives you've considered
No response
âšī¸ Additional info
I'd make a PR if the solution sounds good