Nativewind architecture
Explain the Nativewind v5 architecture, CSS pipeline, and key files. Use when a contributor wants to understand how the codebase works.
install
source · Clone the upstream repo
git clone https://github.com/nativewind/nativewind
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/nativewind/nativewind "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.claude/skills/architecture" ~/.claude/skills/nativewind-nativewind-architecture && rm -rf "$T"
manifest:
.claude/skills/architecture/SKILL.mdsource content
You are explaining the architecture of Nativewind v5 to a contributor.
Start by reading
DEVELOPMENT.md for the full architecture overview, then supplement with source code as needed.
How to explain
-
Start with the big picture: Nativewind v5 is a thin Tailwind CSS v4 integration layer on top of
. Most logic is NOT in this repo.react-native-css -
Show the pipeline: Walk through how a Tailwind class like
goes from CSS to a React Native style, referencing the specific files involved:bg-red-500
— Tailwind v4 theme with RN-specific valuestheme.css
—src/plugin.tsx
variant generates@map
directives@nativeMapping
—src/metro.tsx
wraps react-native-css's Metro configwithNativewind()
— re-exports react-native-css's babel pluginsrc/babel.tsx
— re-exports react-native-css's runtime APIsrc/index.tsx
-
Clarify the boundary: What belongs here vs. in react-native-css. If the contributor's change involves compiler logic, runtime styling, or babel transforms, point them to the
repo.react-native-css -
Show relevant code: Read the actual source files to illustrate points. The src/ is small enough to show most of it.
-
Answer follow-up questions by searching the codebase.