Last updated on February 21, 2026
Configuration
Nativewind v5 uses Tailwind CSS v4, which introduces a CSS-first configuration model. Instead of a tailwind.config.js file, you configure your project directly in CSS.
CSS Setup
Your main CSS file should import Tailwind's layers and the Nativewind theme:
The nativewind/theme import provides:
- Elevation scale (
--elevation-xsthrough--elevation-2xl) - Platform-specific font families (System/Georgia/Menlo on iOS, system defaults on Android)
- Custom utilities (
elevation-*,tint-*,ripple-*,corner-*,color-*) - Custom variants (
ios:,android:,native:,web:,tv:) - A
leading-*override for unit-less line-height values - Safe area utilities via
tailwindcss-safe-area
Metro Configuration
Configure Metro using withNativewind in your Metro config:
See the withNativewind API reference for available options.
Babel Configuration
Nativewind v5 does not require any Babel configuration. The babel plugin is applied automatically by the Metro config. If you had nativewind/babel in your babel.config.js from v4, remove it.
Optional: tailwind.config.js
Tailwind CSS v4 still supports a JavaScript config file for advanced use cases. Reference it with @config:
However, most configuration can be done directly in CSS using @theme, @utility, and @custom-variant. See the Theme page for details.
Content Sources
Tailwind CSS v4 automatically detects your source files. You can explicitly configure content sources using @source: