nativewind-and-tailwind-css-compatibility
БесплатноЗапускает вложенные скриптыНе проверенProvides specific version compatibility notes for NativeWind and Tailwind CSS to prevent common installation errors.
от oimiragieo★ 48 звёзд на GitHubОб этом скилле
Nativewind And Tailwind Css Compatibility Skill
- NativeWind and Tailwind CSS compatibility:
- Use [email protected] with [email protected].
- Higher versions may cause 'process(css).then(cb)' errors.
- If errors occur, remove both packages and reinstall specific versions: npm remove nativewind tailwindcss npm install [email protected] [email protected]
Iron Laws
- ALWAYS pin to
[email protected]and[email protected]— higher versions triggerprocess(css).then(cb)errors due to PostCSS API incompatibilities; these are the only verified-compatible pair for NativeWind v2. - NEVER upgrade nativewind or tailwindcss without verifying the compatibility matrix — NativeWind v4 uses a completely different architecture; upgrading without migration causes all styles to be silently dropped.
- ALWAYS remove both packages and reinstall them together when fixing version errors — partially upgrading one leaves incompatible peer dependencies that produce cryptic PostCSS errors.
- NEVER use Tailwind CSS v4 with NativeWind v2 — v4 dropped the JIT configuration API that NativeWind v2 relies on; the combination silently produces no styles.
- ALWAYS include
nativewind/presetintailwind.config.js— without the preset, Tailwind compiles classes but NativeWind cannot inject them into React Native's StyleSheet engine.
Anti-Patterns
| Anti-Pattern | Why It Fails | Correct Approach |
|---|---|---|
| Using nativewind above 2.0.11 with tailwindcss 3.3.2 | PostCSS API mismatch triggers process(css).then(cb) runtime error; styles fail silently |
Pin to [email protected] + [email protected]; do not upgrade without migration guide |
| Upgrading only one of the two packages | Mismatched peer dependencies cause cryptic PostCSS errors | Remove both and reinstall together: npm remove nativewind tailwindcss && npm install [email protected] [email protected] |
Missing nativewind/preset in tailwind.config.js |
Tailwind compiles classes but NativeWind cannot inject them into React Native StyleSheet; no styles applied | Add presets: [require('nativewind/preset')] to tailwind.config.js |
| Mixing NativeWind v2 and v4 documentation | v4 uses a Babel-free architecture; v2 patterns cause crashes under v4 | Decide on a single version; follow only that version's setup guide exclusively |
| Using Tailwind CSS v4 with NativeWind v2 | v4 dropped JIT configuration API that NativeWind v2 relies on; styles silently never apply | Stay on Tailwind v3 with NativeWind v2, or migrate to NativeWind v4 with Tailwind v4 |
Memory Protocol (MANDATORY)
Before starting:
cat .claude/context/memory/learnings.md
After completing: Record any new patterns or exceptions discovered.
ASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.
Установить nativewind-and-tailwind-css-compatibility в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditВложенные файлы
FAQ
Что делает скилл nativewind-and-tailwind-css-compatibility?
Provides specific version compatibility notes for NativeWind and Tailwind CSS to prevent common installation errors.
Как установить скилл nativewind-and-tailwind-css-compatibility?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл nativewind-and-tailwind-css-compatibility запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic