jaredh159 / tailwind-react-native-classnames

simple, expressive API for tailwindcss + react-native
2.08k stars 84 forks source link

Getting "unknown or invalid utility" for font-size + line-height modifier #292

Closed danieltott closed 5 months ago

danieltott commented 7 months ago

TailwindCSS allows us to modify the line-height when using text-* line height utilities:

className="text-base/6"

This should apply the base font size, and the style from leading-6.

However setting this via twtext-base/6 is failing with base/6 unknown or invalid utility

jaredh159 commented 7 months ago

yeah, thanks for the issue. the long hand works fine here as a workaround: text-base leading-6 but you're probably aware of that. i agree that the shorthand should be supported.

made a quick draft PR with a failing test here https://github.com/jaredh159/tailwind-react-native-classnames/pull/293

i'll try to work on an implementation shortly, unless you wanted to take a whack at it.

jaredh159 commented 5 months ago

implemented in v4.3.0