What problem does it solve?
This guide removes the friction of enabling Tailwind CSS v4 styling across Expo projects by providing a CSS-first configuration that works on iOS, Android, and web without relying on legacy Babel presets.
Core Features & Use Cases
- Cross-platform styling: Configure Tailwind v4 with NativeWind v5 and react-native-css so the same utility classes work on mobile and web.
- Build and transformer setup: Instructions to update metro.config.js, add a PostCSS plugin, and create a global CSS with @theme variables to register custom tokens and platform colors.
- Component wrappers and runtime hooks: Provides reusable CSS-wrapped React Native components and a useCSSVariable hook for integrating CSS variables in JS.
- Use Case: Ideal for Expo apps that need a single styling system for iOS, Android, and web while leveraging Tailwind conventions and native platform colors.
Quick Start
Install the Tailwind v4 and NativeWind packages, add the PostCSS plugin, import the provided global CSS into your app entry, and wrap components with useCssElement to enable className-based styling.