migrate-nativewind-to-uniwind

Installation
Summary

Automated migration from NativeWind to Uniwind with Tailwind 4 upgrade and breaking-change handling.

  • Removes NativeWind and react-native-css-interop packages, installs Uniwind and Tailwind 4, updates Metro and Babel configs
  • Migrates Tailwind 3 directives to Tailwind 4 imports, converts tailwind.config.js theme to CSS @theme directives, deletes NativeWind type definitions
  • Replaces all cssInterop() / remapProps() calls with withUniwind() wrapper; handles third-party component styling and non-style props via accent- prefix
  • Converts NativeWind JS theme variables (vars()) to CSS-based @variant themes; registers custom themes in Metro config; sets up safe area utilities and theme switching
  • Provides deduplication utility (cn helper with tailwind-merge), platform selectors, CSS variable access hooks, and verification checklist for post-migration testing
SKILL.md

Migrate NativeWind to Uniwind

Uniwind replaces NativeWind with better performance and stability. It requires Tailwind CSS 4 and uses CSS-based theming instead of JS config.

Pre-Migration Checklist

Before starting, read the project's existing config files to understand the current setup:

  • package.json (NativeWind version, dependencies)
  • tailwind.config.js / tailwind.config.ts
  • metro.config.js
  • babel.config.js
  • global.css or equivalent CSS entry file
  • nativewind-env.d.ts or nativewind.d.ts
  • Any file using cssInterop or remapProps from nativewind
  • Any file importing from react-native-css-interop
  • Any ThemeProvider from NativeWind (vars() usage)

Step 1: Remove NativeWind and Related Packages

Related skills

More from uni-stack/uniwind

Installs
1.1K
GitHub Stars
1.5K
First Seen
Feb 12, 2026