mcpField
N
nativewind

nativewind

github.com/hairyfDesign & UI26289 installsUpdated 2w ago
Repository

About nativewind

A skill for styling React Native components with NativeWind v5 and Tailwind CSS v4. It covers setup, configuration, platform-specific behavior, theming, and migration guidance.

Key features

  1. 01Apply Tailwind styles with className
  2. 02Configure CSS-first themes and utilities
  3. 03Use platform and responsive variants
  4. 04Style states and dark mode
  5. 05Integrate third-party components
  6. 06Migrate from v4 to v5

Use cases

  1. 01Style React Native components across platforms
  2. 02Configure responsive layouts and dark mode
  3. 03Adapt third-party components to className styling

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/hairyf/skills --skill nativewind

After installing, type/nativewindin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

GENERATION.md
references/
advanced-migrate-v4.md
advanced-theme.md
api-css-interop-remap.md
api-styled.md
api-vars-runtime.md
api-with-nativewind.md
best-practices-performance.md
best-practices-v5-deprecations.md
core-config.md
core-setup.md
core-v5-functions-directives.md
core-v5-style-specificity.md
core-v5-tailwind-foundation.md
core-v5-units.md
features-platform.md
features-states.md
features-styling.md
features-v5-responsive.md
features-v5-states-pseudo.md
features-v5-third-party-guide.md

Details

From the project README

Skill is based on NativeWind v5 (Tailwind CSS v4), generated at 2026-02-26.

NativeWind compiles Tailwind CSS for React Native: className on components, StyleSheet.create on native and reuse of the Tailwind stylesheet on web. It supports media/container queries, pseudo-classes (hover, focus, active), platform variants (ios:, android:, native:, web:), dark mode, and custom theme/utilities via CSS-first config.

Core References

TopicDescriptionReference
SetupCSS file, Metro withNativewind, PostCSS, app entry, optional lightningcss pincore-setup
ConfigurationCSS-first config, @theme, @source, nativewind/theme, custom utilities/variantscore-config
v5 Tailwind foundationBuilt on Tailwind v4, CSS-first, web vs native supportcore-v5-tailwind-foundation
v5 Unitspx, %, vw/vh, rem, em on native; dp vs px; rem sizingcore-v5-units
v5 Functions & directives@import, @theme, @utility; var(), calc(), env(), color-mix(); RN functionscore-v5-functions-directives
v5 Style specificityOrder of precedence, !important, merging className and stylecore-v5-style-specificity

Features

TopicDescriptionReference
Styling componentsclassName usage, custom vs third-party, styled() / cssInterop / remapProps, nativeStyleToPropfeatures-styling
Platform & responsivePlatform variants, units, breakpoints, safe-area utilitiesfeatures-platform
v5 ResponsiveBreakpoints on native, media queries, platform media, reactive updatesfeatures-v5-responsive
States & dark modehover/focus/active, disabled/empty, group modifiers, dark:, data attributesfeatures-states
v5 States & pseudo-classesDetailed pseudo-class table, selection/placeholder, group, ltr/rtlfeatures-v5-states-pseudo
v5 Third-party guideWhen className isn't passed, multiple style props, dynamic mapping @propfeatures-v5-third-party-guide
Theming & colors@theme tokens, vars() for runtime CSS variables, color behavioradvanced-theme

API (v5)

TopicDescriptionReference
withNativewindMetro wrapper options (globalClassNamePolyfill, typescriptEnvPath)api-with-nativewind
styledThird-party components, nativeStyleToProp, multiple className propsapi-styled
vars & runtime variablesvars(), VariableContextProvider, useUnstableNativeVariableapi-vars-runtime
cssInterop / remapPropsLegacy API (deprecated; use styled) — migration referenceapi-css-interop-remap

Advanced

TopicDescriptionReference
Migrate v4 → v5Steps, breaking changes, deprecationsadvanced-migrate-v4

Best Practices

TopicDescriptionReference
Correctness & debuggingExplicit light/dark, colors on Text not View, cache, DEBUG, verifyInstallationbest-practices-performance
v5 DeprecationsuseColorScheme → RN, cssInterop/remapProps → styled, @prop modifierbest-practices-v5-deprecations

Comments

Markdown supported