Last updated on February 21, 2026
Theme
In Tailwind CSS v4, the theme is defined in CSS using the @theme directive instead of tailwind.config.js. Nativewind builds on this with additional React Native-specific theme values.
Defining Theme Values
Use @theme to add design tokens:
These become available as utilities: text-brand, bg-brand-light, font-display, p-18, etc.
Nativewind Default Theme
The nativewind/theme import adds the following:
Elevation Scale
Used via the elevation-* utilities (Android shadow elevation).
Platform Fonts
Platform-specific default fonts are set on :root:
- iOS:
--font-sans: System,--font-serif: Georgia,--font-mono: Menlo - Android:
--font-sans: SystemAndroid,--font-serif: sans-serif,--font-mono: monospace
Custom Utilities
Define custom utilities with @utility:
Then use it as className="my-shadow".
Nativewind's theme defines several custom utilities:
elevation-*-- Android shadow elevationtint-*-- Image tint colorripple-*-- Android ripple effect (color, borderless, radius)corner-*-- Corner shape (rounded,squircle)color-*-- Shorthand for text color
Custom Variants
Define custom variants with @custom-variant:
Nativewind provides these platform variants:
Use them as modifiers: ios:text-red-500, android:p-4, native:flex-col, web:grid.
Plugins
Load Tailwind plugins using @plugin: