Dev & Engineering expotailwind-cssnativewindreact-native-csspostcssreact-nativecross-platform-styling

Expo Tailwind Styling Setup

Configure Tailwind CSS v4, NativeWind v5, and cross-platform styling for Expo apps.

FollowSkills review · FSRS-2.0
Not recommended
43/ 100 5-point scale 2.2 / 5
Trust14 / 25 · 2.8/5

The material mainly directs local dependency installation and configuration, with no credential theft, covert exfiltration, or destructive defaults. However, it introduces preview/nightly dependencies and omits data-flow disclosure, user confirmation, rollback guidance, and dependency auditing, so points are deducted.

Reliability5 / 20 · 1.3/5

The installation, Metro, PostCSS, CSS, and wrapper paths are fairly complete, but preview/nightly versions reduce reproducibility and no tests are provided. Potential implementation issues include the AnimatedScrollView property mapping and the declaration order of ImageProps, while abnormal-input handling and failure diagnostics are thin; therefore the static score remains low.

Adaptability8 / 15 · 2.7/5

The target scenario is clear and covers Tailwind setup for Expo on iOS, Android, and Web. Compatibility boundaries such as Expo SDK, project layout, entry-file imports, and non-fit cases are not sufficiently stated, and trigger conditions are absent. The core function does not require overseas services, although package retrieval may be network-sensitive, so points are deducted.

Convention8 / 15 · 2.7/5

The skill has readable sections, installation steps, configuration examples, usage examples, and troubleshooting, with version and MIT metadata. The README adds installation, update, source-of-truth, and repository maintenance context, but the skill lacks a changelog, compatibility matrix, explicit maintenance owner, and fuller limitation disclosure, so points are deducted.

Effectiveness5 / 15 · 1.7/5

It covers the core configuration for Tailwind v4, NativeWind v5, react-native-css, and CSS wrappers and is useful as a reference. However, there is no execution evidence, dependencies are preview versions, examples may need correction, and entry imports, validation commands, and upgrade alternatives are incomplete; users may still need substantial review, so the static score is below the cap.

Verifiability3 / 10 · 1.5/5

The files provide concrete commands, configuration, and code that are partly auditable. They contain no committed test suite, CI coverage, or third-party execution evidence for the key path, so independent reproduction is limited and only a small score is justified.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision 8bd359f8a44d
Before you use it
  • The installation command uses a NativeWind preview and a react-native-css nightly build; verify compatibility with the target Expo SDK, React Native version, and package manager first.
  • Treat the snippets as starting points and run TypeScript, Metro, and iOS/Android/Web checks; specifically review the AnimatedScrollView prop mapping, Image wrapper types, and global.css entry import.
  • Dependency installation causes external package downloads and lockfile changes; obtain user approval and preserve existing configuration and lockfiles for rollback.
Review evidence [1][2][3][4][5][6][7]
See the full review method →

What does this skill do, and when should you use it?

This skill guides Expo developers through a Tailwind CSS v4 setup using react-native-css and NativeWind v5 for shared iOS, Android, and Web styling. It covers dependency installation, Metro and PostCSS configuration, global CSS, theme variables, platform-specific styles, and Apple semantic colors. It also supplies wrapper examples for CSS-enabled React Native components, images, links, and animations. The guide is aimed at teams adopting Tailwind CSS v4’s CSS-first configuration model.

It instructs the user to install the required packages and pin lightningcss through package.json resolutions; create or update metro.config.js, postcss.config.mjs, and src/global.css; remove obsolete NativeWind Babel configuration; implement useCssElement wrappers for View, Text, ScrollView, Pressable, TextInput, Image, Link, and animated components; define custom theme variables, platform media queries, and Apple system colors; and troubleshoot missing styles, platform colors, and TypeScript className errors.

  1. An Expo developer building one styled interface for iOS, Android, and Web with Tailwind CSS v4.
  2. An Expo team migrating from NativeWind v4 or Tailwind CSS v3 to the Tailwind CSS v4 configuration model.
  3. A React Native project that needs className support and can maintain explicit CSS component wrappers.
  4. An Expo app that needs CSS variables for iOS semantic colors, light/dark mode, and platform-specific fonts.
  5. A developer diagnosing Metro, CSS import, platform-color, or className typing issues in an Expo project.

What are this skill's strengths and limitations?

Pros
  • Covers installation, configuration, component wrappers, and troubleshooting in one guide.
  • Targets shared styling across iOS, Android, and Web.
  • Clearly explains that Tailwind CSS v4 and NativeWind v5 do not require NativeWind Babel configuration.
  • Includes concrete examples for platform fonts, Apple semantic colors, and CSS variables.
  • The repository is MIT-licensed and identified in the README as maintained by the Expo team.
Limitations
  • Uses a NativeWind v5 preview release and a react-native-css nightly release, with no stability assessment in the source.
  • Requires several custom CSS wrapper components, adding integration and maintenance work.
  • Provides no test suite, test results, or verified platform compatibility matrix.
  • Does not document an upgrade policy, known limitations, or rollback procedure.
  • Covers Tailwind styling setup only, not Expo builds, distribution, or EAS workflows.

How do you install this skill?

From the root of an Expo project, run:

npx expo install tailwindcss@^4 [email protected] [email protected] @tailwindcss/postcss tailwind-merge clsx

Then add this resolution to package.json:

{
"resolutions": {
"lightningcss": "1.30.1"
}
}

Place the skill folder in the skill directory used by the Agent Skills-compatible client. The README documents installation of the full repository with npx skills@latest add expo/skills --skill '*', but does not provide a command that installs only expo-tailwind-setup.

How do you use this skill?

Ask the agent, for example: “Set up Tailwind CSS v4, react-native-css, and NativeWind v5 in this Expo project, including the CSS component wrappers.” The agent should then configure Metro, PostCSS, and global CSS, import the CSS-wrapped components, and use className-based styling. The source does not document a client-specific invocation syntax or automatic execution behavior.

How does this skill compare with similar options?

Compared with NativeWind v4 or Tailwind CSS v3, this guide uses a CSS-first approach: @tailwindcss/postcss, CSS @import statements, and @theme replace the older configuration pattern; components are wrapped with useCssElement, and Metro uses withNativewind with different options.

FAQ

Does this require a paid service?
The repository is MIT-licensed. The source does not state whether the dependencies or any other services add costs, so total project cost cannot be determined from the provided material.
Do I still need babel.config.js?
According to the skill, Tailwind CSS v4 with NativeWind v5 does not need NativeWind Babel configuration. Remove the related presets if the file contains only that configuration.
Why are wrapper components required?
react-native-css requires explicit CSS element wrapping. The examples use useCssElement to map className to React Native style properties.
Is support for every target platform guaranteed?
The setup targets iOS, Android, and Web, but the source provides no test suite, test results, or complete compatibility evidence. Validate it in the intended project before adoption.

More skills from this repository

All from expo/skills

Dev & Engineering

Expo Native UI Builder

Build native-feeling, cross-platform interfaces with @expo/ui.

Dev & Engineering

Expo App Structure Guide

A clear, scalable starting layout for a brand-new Expo Router app.

Dev & Engineering

Expo Brownfield Integrator

Guides teams in incrementally embedding Expo and React Native into existing native iOS or Android applications.

Automation & Ops

EAS Observe Performance Guide

Helps Expo teams instrument, query, and interpret production startup, navigation, and custom-event performance metrics.

Dev & Engineering

Expo Data Fetching

Practical networking guidance for Expo apps, covering API calls, caching, offline behavior, and authentication.

Dev & Engineering

Expo Skill Feedback

Collects feedback about Expo skills or Expo itself and manages anonymous usage telemetry.

Dev & Engineering

Expo Web-to-Native Migration

Turn an existing React website into a shippable Expo app, screen by screen.

Dev & Engineering

Expo Integration Examples

Adapt Expo’s official patterns for third-party integrations.

Design & Frontend

Expo Native UI Guide

Helps Expo developers build responsive screens with Apple-informed styling and a native-feeling experience.

Dev & Engineering

Expo SDK Upgrade Assistant

Guides Expo SDK upgrades, dependency fixes, and compatibility cleanup.

Dev & Engineering

Expo DOM Components

Reuse web code and browser-only libraries inside Expo native apps with incremental migration support.

Dev & Engineering

Expo Skill Eval

End-to-end testing for Expo skill triggering, code quality, and runtime rendering.

Dev & Engineering

Expo Native Module Migration Assistant

Move an existing Expo Swift module from the 1.0 DSL to the 2.0 macro API without changing its JavaScript contract.

Dev & Engineering

EAS Cloud Simulator

Run, control, and capture Expo apps remotely when a local iOS simulator or Android emulator is unavailable.

Automation & Ops

EAS Update Health Insights

Use the CLI to measure EAS Update health, adoption, crashes, and rollout readiness.

Dev & Engineering

Expo App Clip Builder

Configure an iOS App Clip for an Expo app and launch it from web URLs.

Dev & Engineering

Expo Development Client Builder

Build and distribute Expo development clients for native-code testing.

Dev & Engineering

Expo App Store Release Assistant

Build and ship Expo apps to the App Store, Google Play, and TestFlight with EAS.

Automation & Ops

Expo EAS Workflow Assistant

Write and validate EAS CI/CD workflows for Expo projects.

Dev & Engineering

Expo EAS Hosting Deployments

Deploy Expo websites and API routes while configuring secrets, domains, and the edge runtime.

Related skills