Font Family
Usage
Please refer to the documentation on the Tailwind CSS website
React Native loads fonts differently between iOS and Android. We recommend following https://github.com/jsamr/react-native-font-demo to use fonts that work consistently on all platforms and allow you to use Tailwind CSS as expected.
Differences on Native
React Native does not support fallback fonts. If an array of fonts are provided, Nativewind will only use the first font.
Adding fonts to your theme
Nativewind will not load/link fonts into your app. If you have any issues with the font family or weights not rendering, please first verify it works with inline styles.
Compatibility
Class | Support |
---|---|
| ✅ Full Support |
| ✅ Full Support |
| ✅ Full Support |
| ✅ Full Support |
| ✅ Full Support |
Legend
Class
-{n}
Supports values from theme
-[n]
Supports arbitrary values
Icon
✅ Full support
✔️ Partial support on native
🧪 Experimental support on native
📱 Native only
🌐 Web only