What problem does it solve?
Bringing Tailwind CSS to React Native and Expo projects normally requires separate runtime libraries or hand-maintained style mappings. This Skill configures @weapp-tailwindcss/react-native to compile Tailwind CSS 4 candidates directly into a React Native style manifest, so className-based styling works natively on Android and iOS without a browser CSS pipeline.
Core Features & Use Cases
- Metro Integration: Wraps the Expo Metro config with withWeappTailwindcss() to handle source scanning, manifest generation, and the Babel JSX transform in one step.
- Static and Dynamic Styling: Static className values compile to StyleSheet lookups, while dynamic complete class strings use the controlled tw() runtime.
- Platform Variants: Supports dark:, ios:, android:, and native: variants driven by Appearance and Platform.OS, with inline style and !important priority rules preserved.
- Manifest Validation: Exposes manifest.warnings so unsupported CSS declarations surface as errors instead of silent broken styles, with a CI-friendly generateNativeStylesheet API.
- Use Case: An Expo SDK 54+ project needs Tailwind-style utility classes across Android and iOS. This Skill walks through installing the package, creating global.css with @source globs, wrapping Metro config, enabling className types, and validating the manifest on real devices.
Quick Start
Use the weapp-tailwindcss-react-native skill to set up Tailwind CSS 4 in my Expo project with Metro config, global.css, and className type support.