expo-tailwind-setup

Configure Expo projects with Tailwind CSS v4 and NativeWind v5.

Updated Mar 22, 2026
One-click install
npx skills add https://github.com/Minhmice/Thuocare --skill expo-tailwind-setup-minhmice
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: expo-tailwind-setup
Source: https://github.com/Minhmice/Thuocare/tree/main/.agents/skills/expo-tailwind-setup
Command: npx skills add https://github.com/Minhmice/Thuocare --skill expo-tailwind-setup-minhmice

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires nativewind, react-native-css, @tailwindcss/postcss, tailwind-merge, clsx, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill simplifies integrating Tailwind CSS v4 into Expo-managed React Native projects, enabling consistent and rapid styling.

Core Features & Use Cases

  • Environment Configuration: Sets up PostCSS, Metro, and global CSS files for Tailwind and NativeWind in Expo.
  • Platform-specific Styling: Facilitates platform-specific fonts and feature toggles via CSS media queries.
  • Reusable Components: Provides a collection of React Native components wrapped with CSS support for rapid UI development.
  • Use Case: Developers can quickly scaffold styled screens by importing predefined, Tailwind-compatible UI components and custom themes.

Quick Start

Follow the instructions to install dependencies, configure Metro and PostCSS, and import global CSS before building your React Native components.

Frequently Asked Questions about expo-tailwind-setup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Tailwind CSS in an Expo React Native project?

To set up Tailwind CSS in an Expo project, configure PostCSS, Metro, and global CSS files to integrate Tailwind v4 with NativeWind v5. This enables consistent web and mobile styling workflows, allowing rapid UI development using predefined React Native components.

Can I use platform-specific styling with NativeWind in Expo?

Yes, NativeWind in Expo supports platform-specific styling by utilizing CSS media queries. This mechanism allows developers to toggle features and apply platform-specific fonts directly within their Tailwind CSS workflow for React Native components.

Does Tailwind CSS v4 work with Metro and PostCSS in React Native?

Tailwind CSS v4 works with Metro and PostCSS in React Native by configuring the build environment to process global CSS files. This setup ensures robust compatibility and a unified styling workflow across web and mobile platforms using NativeWind v5.

What is the best way to configure NativeWind v5 and Tailwind v4 for React Native?

The best way to configure NativeWind v5 and Tailwind v4 is by installing required dependencies and modifying Metro and PostCSS configurations. This approach provides Safe CSS component wrappers and ensures TypeScript compatibility for robust React Native styling.

Why do I need Safe CSS component wrappers in React Native Tailwind setups?

Safe CSS component wrappers are needed in React Native Tailwind setups to provide a collection of reusable UI components with built-in CSS support. They allow developers to quickly scaffold styled screens by importing predefined, Tailwind-compatible elements.