# styling-nativewind-v4-expo

Guides setup and troubleshooting for NativeWind v4 with Tailwind CSS v3 in Expo React Native projects.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 410 installs · ★ 3
- Author: tristanmanchester
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/tristanmanchester/agent-skills/tree/HEAD/styling-nativewind-v4-expo/SKILL.md
- Updated: 2026-09-14
- HTML: https://affpapa.org/en/nevibecode/skills/styling-nativewind-v4-expo

## What it does

This skill focuses entirely on applications running NativeWind v4 alongside `tailwindcss@^3.4.17`. It guides the assistant through wiring the base CSS stylesheet into Metro via `withNativeWind`, applying Babel presets, and keeping module definitions intact. The upcoming v5 architecture is deliberately excluded.

Troubleshooting follows an ordered sequence: verify package majors first, compile styles with the Tailwind v3 CLI, and confirm file paths across the app directory. A cache purge will not resolve a silent Tailwind v4 mismatch or broken Expo SDK peer dependencies.

Component authoring leans on literal variant dictionaries rather than dynamically concatenated class names. It also provides steps for one-time `cssInterop` wrappers on third-party elements, theme variables, and safe area handling.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add tristanmanchester/agent-skills --skill styling-nativewind-v4-expo -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/styling-nativewind-v4-expo/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/styling-nativewind-v4-expo/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add tristanmanchester/agent-skills --skill styling-nativewind-v4-expo -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/styling-nativewind-v4-expo/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add tristanmanchester/agent-skills --skill styling-nativewind-v4-expo -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/styling-nativewind-v4-expo/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install tristanmanchester/agent-skills styling-nativewind-v4-expo
```

2. **Manually: put the files in place**
- File: `.github/skills/styling-nativewind-v4-expo/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add tristanmanchester/agent-skills --skill styling-nativewind-v4-expo -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/tristanmanchester/agent-skills --path styling-nativewind-v4-expo
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/styling-nativewind-v4-expo/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add tristanmanchester/agent-skills --skill styling-nativewind-v4-expo -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/tristanmanchester/agent-skills/tree/HEAD/styling-nativewind-v4-expo/SKILL.md

## When to use it
- configure Metro and Babel for NativeWind v4 inside Expo
- resolve dependency conflicts between Tailwind CSS v3 and v4
- wrap external React Native components using `cssInterop`
- inspect styling behavior across dark mode and safe areas

## Example prompts
- Set up NativeWind v4 and Tailwind v3 for this Expo Router application
- Diagnose why NativeWind utility classes are ignored by the Metro bundler
- Build a button component using static variant mappings

## Similar
- [vercel-react-native-skills](https://affpapa.org/en/nevibecode/skills/vercel-react-native-skills.md) — skill · 255200 installs
- [animate-expo](https://affpapa.org/en/nevibecode/skills/animate-expo.md) — skill · 137900 installs
- [mobile-native](https://affpapa.org/en/nevibecode/skills/mobile-native.md) — skill · 86600 installs
- [aso](https://affpapa.org/en/nevibecode/skills/aso.md) — skill · 75900 installs
- [paywalls](https://affpapa.org/en/nevibecode/skills/paywalls.md) — skill · 71000 installs
- [swiftui-pro](https://affpapa.org/en/nevibecode/skills/swiftui-pro.md) — skill · 35200 installs

From the same set: [tristanmanchester/agent-skills](https://affpapa.org/en/nevibecode/by/tristanmanchester/agent-skills.md) — 3 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
