-
-
Notifications
You must be signed in to change notification settings - Fork 237
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
v4: custom font not working with TW classes, but does work with inline styles #923
Comments
+1 also have this issue |
Hey @tconroy, I believe you need to define each font-family weight individually in your tailwind config.
Technically they are different font files. |
This is the bitter truth i had to accept too. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
A custom font (loaded using expo-fonts) is visible when using inline
style={{ fontfamily: 'Custom Font' }}
prop, but is not visible when using TW class nameclassName="font-customFont"
other tailwind classes work as expected.
To Reproduce
tailwind.config.js
FontsProvider
RootLayout
** ✅ this works:**
❌ this does not work
Expected behavior
Expect to see the same font as inline font.
The text was updated successfully, but these errors were encountered: