nativewind

Apply Tailwind CSS 3.x utility classes to React Native components via className.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/toddbadams/SBFoundation --skill nativewind
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nativewind
Source: https://github.com/toddbadams/SBFoundation/tree/main/.claude/skills/languages/nativewind
Command: npx skills add https://github.com/toddbadams/SBFoundation --skill nativewind

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill simplifies styling React Native applications by allowing developers to use familiar Tailwind CSS utility classes directly within their components, bridging the gap between web and mobile development styling paradigms.

Core Features & Use Cases

  • Tailwind CSS Integration: Apply Tailwind classes to React Native components like View, Text, and Pressable.
  • Configuration: Set up NativeWind with tailwind.config.js, babel.config.js, and metro.config.js.
  • Use Case: Convert existing web projects using Tailwind CSS to React Native efficiently, or build new mobile UIs with a consistent styling approach.

Quick Start

Configure NativeWind by adding the necessary presets and wrappers to your Babel and Metro configurations.

Frequently Asked Questions about nativewind

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use Tailwind CSS utility classes for styling React Native components?

You can style React Native components with Tailwind CSS utility classes by applying them directly through the `className` prop. This bridges web and mobile styling paradigms, allowing familiar Tailwind classes to work seamlessly on mobile views.

What configuration files do I need to set up Tailwind CSS in a React Native project?

Configuring Tailwind CSS in React Native requires modifying `tailwind.config.js`, `babel.config.js`, and `metro.config.js`. You must add specific presets and wrappers to these files to integrate Tailwind into Expo or React Native CLI projects.

Can I convert an existing web project using Tailwind CSS to React Native efficiently?

Yes, you can convert existing web projects using Tailwind CSS to React Native efficiently. By applying familiar Tailwind utility classes to React Native components, you maintain a consistent styling approach across both web and mobile platforms.

Does Tailwind CSS 3.x work with Expo and React Native CLI projects?

Tailwind CSS 3.x works with both Expo and React Native CLI projects. You achieve seamless integration by configuring your Babel and Metro setups, enabling the use of utility classes for styling native mobile interfaces.

What is the best way to unify styling approaches across web and mobile platforms?

The best way to unify styling across web and mobile platforms is using Tailwind CSS utility classes for React Native. This approach allows developers to apply identical Tailwind classes to native components, bridging the gap between web and mobile development.

Why do I need to modify babel.config.js and metro.config.js to style React Native with Tailwind CSS?

You need to modify `babel.config.js` and `metro.config.js` to enable the `className` prop on React Native components. These configuration changes allow the build system to properly compile and map Tailwind CSS utility classes to native styles.