expo-tailwind-setup

Configure Tailwind CSS v4 in Expo projects with NativeWind v5 and react-native-css via Metro/PostCSS.

1|Updated Oct 30, 2017
One-click install
npx skills add https://github.com/1natsu172/dotfiles --skill expo-tailwind-setup-1natsu172
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: expo-tailwind-setup
Source: https://github.com/1natsu172/dotfiles/tree/main/.agents/skills/expo-tailwind-setup
Command: npx skills add https://github.com/1natsu172/dotfiles --skill expo-tailwind-setup-1natsu172

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Tailwind CSS setup for Expo projects is non-trivial; this guide provides a complete integration using Tailwind CSS v4, react-native-css, and NativeWind to unify styling across platforms.

Core Features & Use Cases

  • Tailwind v4 integration in Expo apps
  • React Native CSS wrappers enabling className-based styling
  • NativeWind v5 Metro transformer for consistent cross-platform styling
  • PostCSS workflow with @tailwindcss/postcss
  • Use Case: Create a single design system that renders on iOS, Android, and Web with minimal config.

Quick Start

Install dependencies, configure Metro and PostCSS, and import the global.css to enable Tailwind styling in your Expo project.

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 v4 in an Expo project?

Setting up Tailwind CSS v4 in Expo requires configuring Metro and PostCSS with NativeWind and react-native-css to unify styling across iOS, Android, and Web.

Can I use NativeWind v5 to style React Native apps with className?

Yes, NativeWind v5 provides a Metro transformer and react-native-css wrappers enabling className-based styling for consistent cross-platform UI rendering in Expo.

What's the best way to unify styling across mobile and web in Expo?

The best way to unify styling across platforms is integrating Tailwind CSS v4 with NativeWind to create a single design system rendering consistently on iOS, Android, and Web.

Does Tailwind v4 work with PostCSS and Metro in Expo?

Yes, Tailwind v4 works with Expo by configuring a proper Metro and PostCSS workflow using @tailwindcss/postcss to process global.css for styling.

Why does my Tailwind CSS configuration not apply to my Expo web app?

Tailwind CSS may not apply because the Metro transformer and PostCSS configuration are missing or incorrect, preventing NativeWind from compiling global.css properly.

Do I need react-native-css to enable Tailwind styling in Expo?

Yes, react-native-css wrappers are required to enable className-based styling, allowing Tailwind CSS v4 classes to render natively across mobile and web platforms.