tailwind-setup

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

1|Updated Jul 25, 2023
One-click install
npx skills add https://github.com/yurkenn/english-tales --skill tailwind-setup-yurkenn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tailwind-setup
Source: https://github.com/yurkenn/english-tales/tree/main/.agent/skills/tailwind-setup
Command: npx skills add https://github.com/yurkenn/english-tales --skill tailwind-setup-yurkenn

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Tailwind CSS v4 integration in Expo apps streamlines universal styling across iOS, Android, and Web, removing inconsistent CSS approaches and speeding UI development.

Core Features & Use Cases

  • Unified styling: Use Tailwind utility classes across RN and web components via NativeWind and react-native-css.
  • Platform-aware styling: Supports platform-specific CSS variables and media queries for iOS/Android.
  • Use Case: Rapidly style a cross-platform form with consistent typography and spacing using tailwind classes.

Quick Start

Install dependencies and run the app to apply Tailwind CSS v4 across iOS, Android, and Web.

Frequently Asked Questions about 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 with NativeWind?

Configuring Tailwind CSS v4 in Expo requires adjusting metro.config.js, adding postcss.config.mjs, and setting up global CSS without Babel config. It uses NativeWind v5 and react-native-css to enable Tailwind utility classes across iOS, Android, and Web.

What is NativeWind and how does it handle React Native styling?

NativeWind provides a unified styling approach by translating Tailwind CSS utility classes into React Native styles. It leverages react-native-css to deliver consistent typography and spacing across Expo apps on iOS, Android, and Web.

Do I need Babel config to use Tailwind CSS v4 with Expo?

No Babel config is needed for Tailwind CSS v4 in Expo. The setup instead uses PostCSS configuration and metro.config.js adjustments with NativeWind v5 and react-native-css to apply universal styling without modifying Babel.

Can I use Tailwind CSS for platform-aware styling in React Native?

Tailwind CSS supports platform-aware styling in React Native by utilizing platform-specific CSS variables and media queries. This enables developers to target iOS and Android specific styles directly within Expo components.

Why use Tailwind CSS v4 instead of standard React Native StyleSheet?

Tailwind CSS v4 replaces standard StyleSheet to speed up UI development and remove inconsistent CSS approaches. It provides unified styling via utility classes across React Native and web components, ensuring consistent typography and spacing.