tailwind-setup

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

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/cgasgarth/opencode-config --skill tailwind-setup-cgasgarth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tailwind-setup
Source: https://github.com/cgasgarth/opencode-config/tree/main/skill/expo-app-design/skills/tailwind-setup
Command: npx skills add https://github.com/cgasgarth/opencode-config --skill tailwind-setup-cgasgarth

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill simplifies the process of integrating Tailwind CSS v4 with Expo projects, enabling consistent and efficient styling across mobile and web platforms.

Core Features & Use Cases

  • Tailwind CSS v4 Integration: Leverages the latest Tailwind CSS features with Expo.
  • Universal Styling: Ensures styles work seamlessly on iOS, Android, and Web.
  • Modern Tooling: Integrates with react-native-css and NativeWind v5 for a robust styling solution.
  • Use Case: Quickly set up a new Expo project with Tailwind CSS, allowing developers to use familiar utility classes for rapid UI development.

Quick Start

Install Tailwind CSS v4 in your Expo project by running the provided installation command.

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?

To set up Tailwind CSS v4 in an Expo project, you configure it using NativeWind v5 and react-native-css. This integration manages PostCSS and Metro bundler configurations to enable utility-first CSS classes across your application.

Does NativeWind v5 work with Tailwind CSS v4 for universal styling?

Yes, NativeWind v5 works with Tailwind CSS v4 to provide universal styling across iOS, Android, and web environments. It bridges react-native-css with the latest Tailwind features for seamless cross-platform UI development.

What dependencies do I need for cross-platform styling in React Native?

For cross-platform styling in React Native, you need tailwindcss, nativewind, react-native-css, and @tailwindcss/postcss. These dependencies work together to translate utility classes into native styles.

Can I use utility-first CSS classes for rapid UI development in Expo?

Yes, you can use utility-first CSS classes for rapid UI development in Expo by integrating NativeWind v5. This allows developers to apply familiar Tailwind CSS classes directly to React Native components.

Why does my Metro bundler need configuration for Tailwind CSS?

Your Metro bundler needs configuration for Tailwind CSS to properly process and resolve utility classes across iOS, Android, and web platforms. Managing this configuration ensures styles compile correctly within the Expo environment.