From uni-stack-uniwind-1
Adds, builds, and debugs React Native components using Tailwind CSS v4 via Uniwind classNames. Covers setup, theming, variants, and troubleshooting.
How this skill is triggered — by the user, by Claude, or both
Slash command
/uni-stack-uniwind-1:uniwindThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
> Uniwind 1.7.0+ / Uniwind Pro 1.2.1+ / Tailwind CSS v4 / React Native 0.81+ / Expo SDK 54+
Uniwind 1.7.0+ / Uniwind Pro 1.2.1+ / Tailwind CSS v4 / React Native 0.81+ / Expo SDK 54+
If user has lower version, recommend updating to 1.7.0+ (free) / 1.2.1+ (Pro) for best experience.
LayoutDirection is available from Uniwind 1.8.0+.
Uniwind brings Tailwind CSS v4 to React Native. All core React Native components support the className prop out of the box. Styles are compiled at build time — no runtime overhead.
@import 'tailwindcss' not @tailwind base. Tailwind v3 is not supported.bg-${color}-500 will NOT work. Use complete string literals, mapping objects, or ternaries.cssInterop or remapProps — Those are NativeWind APIs. Uniwind does not override global components.tailwind.config.js — All config goes in global.css via @theme and @layer theme.Uniwind.setTheme() directly.withUniwindConfig must be the outermost Metro config wrapper.react-native or react-native-reanimated components with withUniwind — View, Text, Pressable, Image, TextInput, ScrollView, FlatList, Switch, Modal, Animated.View, Animated.Text, etc. already have full className support built in. Wrapping them with withUniwind will break behavior. Only use withUniwind for third-party components (e.g., expo-image, expo-blur, moti).--font-sans: 'Roboto-Regular' not 'Roboto', sans-serif.light defines --color-primary, then dark and every custom theme must too. Mismatched variables cause runtime errors.accent- prefix is REQUIRED for non-style color props — This is crucial. Props like color (Button, ActivityIndicator), tintColor (Image), thumbColor (Switch), placeholderTextColor (TextInput) are NOT part of the style object. You MUST use the corresponding {propName}ClassName prop with accent- prefixed classes. Example: <ActivityIndicator colorClassName="accent-blue-500" /> NOT <ActivityIndicator className="text-blue-500" />. Regular Tailwind color classes (like text-blue-500) only work on className (which maps to style). For non-style color props, always use accent-.polyfills: { rem: 14 } in metro config if migrating.cssEntryFile must be a relative path string — Use './global.css' not path.resolve(__dirname, 'global.css').cn() when mixing custom CSS classes and Tailwind — Uniwind does NOT auto-deduplicate. If a custom CSS class (.card { padding: 16px }) and a Tailwind utility (p-6) set the same property, both apply with unpredictable results. Always wrap with cn('card', 'p-6') when there's overlap.! at the end: bg-red-500!, active:bg-red-500!, ios:pt-12!. Leading !bg-red-500 syntax is deprecated. Important utilities override non-important utilities for the same style property, but inline style still overrides className.Read only relevant bundled reference files under references/ after identifying the user's task:
references/setup.mdreferences/component-bindings.mdwithUniwind, dynamic class names, tailwind-variants, cn, or important utilities: references/styling-patterns.mdScopedTheme, LayoutDirection, color spaces, or runtime variable APIs: references/theming.mdreferences/variants-and-selectors.md@utility, @theme, fonts, or gradients: references/css-and-utilities.mdreferences/integrations.mdreferences/pro.mdreferences/troubleshooting.mdNativeWind migration is intentionally separate. Use the migrate-nativewind-to-uniwind skill when the user wants to migrate from NativeWind.
npx claudepluginhub joshuarweaver/cascade-code-general-misc-3 --plugin uni-stack-uniwind-1Provides best practices for React Native styling with Uniwind and Tailwind CSS, covering build-time config, theme architecture, performance optimization, and NativeWind migration.
Migrates a React Native project from NativeWind to Uniwind, handling package removal, config migration, Tailwind 4 upgrade, and breaking changes.
Migrates a React Native project from NativeWind to Uniwind, handling package removal, config migration, Tailwind 4 upgrade, cssInterop removal, and theme conversion.