# react-native-unistyles-v3

A skill that walks the agent through react-native-unistyles v3: Babel or Metro setup, themes, breakpoints, variants and common breakages.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 513 installs · ★ 2972
- Author: jpudysz
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/jpudysz/react-native-unistyles/tree/HEAD/skills/react-native-unistyles-v3/SKILL.md
- Updated: 2026-10-23
- HTML: https://affpapa.org/en/nevibecode/skills/react-native-unistyles-v3

## What it does

The skill kicks in when your code or prompt mentions `unistyles`, `StyleSheet.create`, `withUnistyles`, `useUnistyles`, `ScopedTheme`, `UnistylesRuntime`, breakpoints or adaptive themes. The agent reads your code first, works out what you want — first-time setup, adding a theme, responsive layout, fixing a bug — then applies v3 patterns and checks the skill's reference files for detail.

What's inside: a quick reference for the three `StyleSheet.create` overloads, one-time `StyleSheet.configure`, variants with `compoundVariants`, and the `withUnistyles` wrapper for props such as `color` and `trackColor`. A separate rules section names the usual failure points. Spreading styles as `{...styles.x}` breaks the C++ proxy binding. Re-exporting `StyleSheet` from a barrel file goes undetected by the plugin. And with no build-time integration — Babel plugin, Metro integration or `RepackUnistylePlugin` — styles stop reacting to theme changes. Call `useVariants` before touching variant styles, and always pass an object: `useVariants(undefined)` throws on native.

Your project needs React Native 0.81+ with the New Architecture, React 19+ and a pinned `react-native-nitro-modules`. On Expo, SDK 54+ plus a dev client or prebuild — Expo Go won't work here. The skill can edit files and run `npx`, so the agent gets write access to your repo.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add jpudysz/react-native-unistyles --skill react-native-unistyles-v3 -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/react-native-unistyles-v3/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/react-native-unistyles-v3/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add jpudysz/react-native-unistyles --skill react-native-unistyles-v3 -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/react-native-unistyles-v3/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add jpudysz/react-native-unistyles --skill react-native-unistyles-v3 -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/react-native-unistyles-v3/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install jpudysz/react-native-unistyles react-native-unistyles-v3
```

2. **Manually: put the files in place**
- File: `.github/skills/react-native-unistyles-v3/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add jpudysz/react-native-unistyles --skill react-native-unistyles-v3 -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/jpudysz/react-native-unistyles --path skills/react-native-unistyles-v3
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/react-native-unistyles-v3/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add jpudysz/react-native-unistyles --skill react-native-unistyles-v3 -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/jpudysz/react-native-unistyles/tree/HEAD/skills/react-native-unistyles-v3/SKILL.md

## When to use it
- wire react-native-unistyles v3 into a React Native app
- move colors and typography into switchable themes
- make layouts responsive with breakpoints and miniRuntime
- define button variants and combine them in compoundVariants
- track down styles that ignore a theme switch

## Example prompts
- Set up unistyles in this project: Babel plugin rooted at src and StyleSheet.configure with light and dark themes
- Add size and color variants to the button, and a border for large plus primary via compoundVariants
- Rewrite this screen with unistyles breakpoints so the container width follows rt.screen

## 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 · 75400 installs
- [swiftui-pro](https://affpapa.org/en/nevibecode/skills/swiftui-pro.md) — skill · 35200 installs
- [orca-emulator](https://affpapa.org/en/nevibecode/skills/orca-emulator.md) — skill · 5800 installs

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