expo-tailwind-setup

Configures Tailwind CSS v4 for Expo with NativeWind v5 and react-native-css.

Updated Jan 8, 2026
One-click install
npx skills add https://github.com/soham2008xyz/trade-tycoon --skill expo-tailwind-setup-soham2008xyz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: expo-tailwind-setup
Source: https://github.com/soham2008xyz/trade-tycoon/tree/main/.agents/skills/expo-tailwind-setup
Command: npx skills add https://github.com/soham2008xyz/trade-tycoon --skill expo-tailwind-setup-soham2008xyz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the friction of getting Tailwind CSS v4 working correctly in an Expo (React Native) project across iOS, Android, and Web with consistent className-based styling.

Core Features & Use Cases

  • Tailwind CSS v4 integration for Expo: Enables Tailwind v4 styling in a React Native codebase using the required Expo/Metro pipeline.
  • Universal styling with CSS-first runtime: Uses react-native-css to make Tailwind’s CSS approach usable in React Native components.
  • NativeWind v5 className support: Configures NativeWind in Metro so className-based styling works reliably in the app.
  • Reusable CSS-wrapped component patterns: Provides wrapper components (View, Text, ScrollView, Pressable, TextInput, Image, Animated) so className usage is consistent.

Quick Start

Ask the AI to “Set up Tailwind CSS v4 for my Expo app using react-native-css and NativeWind v5, including metro and postcss configuration and CSS-wrapped components for View, Text, Image, and ScrollView.”

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 React Native project?

To set up Tailwind CSS v4 in Expo, you need to wire together NativeWind v5, react-native-css, and Tailwind's PostCSS pipeline within your Metro configuration. This enables consistent className-based styling across iOS, Android, and Web.

Does Tailwind CSS v4 work with NativeWind for Expo styling?

Yes, Tailwind CSS v4 works with NativeWind v5 for Expo styling by configuring the Metro bundler and integrating react-native-css. This combination allows you to use Tailwind utility classes directly via the className prop in React Native components.

What is the best way to configure PostCSS for Tailwind v4 in React Native?

The best way to configure PostCSS for Tailwind v4 in React Native is using the @tailwindcss/postcss plugin alongside react-native-css. This setup bridges Tailwind's CSS-first approach with React Native's rendering engine.

Can I use className for styling in Expo across iOS, Android, and Web?

Yes, you can use className for styling across iOS, Android, and Web in Expo by using CSS-wrapped component patterns. The setup provides wrappers for View, Text, ScrollView, Pressable, TextInput, Image, and Animated to ensure consistent styling.

Why do I need react-native-css when using Tailwind CSS with Expo?

You need react-native-css to make Tailwind's CSS-first runtime usable within React Native components. It translates CSS rules generated by Tailwind into a format that React Native can apply to elements via the useCssElement wrapper.

What are the limitations of using Tailwind CSS v4 with NativeWind v5 in Expo?

A key limitation is that Tailwind CSS v4 with NativeWind v5 requires strict dependency installation and specific Metro configuration. Without correctly wiring react-native-css and PostCSS, className-based styling will not render reliably across platforms.