expo-tailwind-setup

Configure Tailwind CSS v4 in Expo with NativeWind and react-native-css.

Updated Sep 7, 2024
One-click install
npx skills add https://github.com/Asylcreek/home-manager --skill expo-tailwind-setup-asylcreek
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: expo-tailwind-setup
Source: https://github.com/Asylcreek/home-manager/tree/main/dots/agents/skills/expo-tailwind-setup
Command: npx skills add https://github.com/Asylcreek/home-manager --skill expo-tailwind-setup-asylcreek

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Expo development with Tailwind requires complex configuration to wire Tailwind v4 into React Native via NativeWind and react-native-css across iOS, Android, and Web. This setup streamlines that process by providing a cohesive configuration path.

Core Features & Use Cases

  • Tailwind CSS v4 integration in Expo projects
  • React Native runtime with react-native-css and NativeWind v5
  • Metro and PostCSS configuration guidance
  • Platform-specific CSS variables and theming
  • No Babel config required, CSS-first workflow

Quick Start

Follow the setup steps to install Tailwind v4, NativeWind v5, and react-native-css in your Expo project, then configure Metro, PostCSS, and global styles to enable CSS-first styling.

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?▼

To set up Tailwind CSS v4 in Expo, install NativeWind v5 and react-native-css, then configure Metro and PostCSS to enable a CSS-first styling workflow across iOS, Android, and Web.

Do I need Babel configuration to use Tailwind CSS with React Native?▼

No Babel config is required for this Tailwind CSS setup in React Native. It uses NativeWind v5 with react-native-css and PostCSS to achieve a CSS-first workflow without Babel dependencies.

Can I use Tailwind CSS for universal styling across iOS, Android, and Web in Expo?▼

Yes, Tailwind CSS provides universal styling across iOS, Android, and Web in Expo. The setup uses NativeWind v5 and react-native-css to wire Tailwind v4 into the React Native runtime.

What's the best way to configure Metro for NativeWind v5 and Tailwind v4?▼

The recommended approach is configuring Metro alongside PostCSS to process Tailwind v4 styles. This setup integrates NativeWind v5 and react-native-css for universal CSS-first styling in Expo.

Does this Expo Tailwind setup support platform-specific CSS variables and theming?▼

Yes, the setup supports platform-specific CSS variables and theming. It leverages Tailwind v4 with NativeWind v5 to deliver consistent styling across iOS, Android, and Web platforms.