What problem does it solve?
Expo apps often struggle to maintain consistent, scalable styling across iOS, Android, and web. This Skill wires Tailwind CSS v4 with NativeWind v5 and react-native-css to give you a unified, utility-first styling approach in React Native code.
Core Features & Use Cases
- Tailwind v4 integration across Expo, RN, and web via NativeWind.
- Unified runtime styling using react-native-css to apply Tailwind utilities in RN components.
- No Babel config needed; CSS-first workflow with PostCSS plugin.
- Rapid cross-platform prototyping: iterate typography, spacing, and theming with Tailwind utilities across platforms.
Quick Start
Follow these steps to bootstrap the setup in a new or existing Expo project:
- Install required dependencies: npx expo install tailwindcss@^4 [email protected] [email protected] @tailwindcss/postcss
- Create or update metro.config.js to integrate NativeWind with inlineVariables: false and globalClassNamePolyfill: false
- Create postcss.config.mjs with the Tailwind plugin configured
- Create a global CSS file (e.g., src/global.css) importing Tailwind layers and platform-specific font variables
- Remove any unused babel.config.js if present; the setup does not require Babel presets