create-expo-tailwind-app
v1.0.4
Published
CLI to create a React Native Expo app with NativeWind (Tailwind CSS) out of the box
Maintainers
Readme
create-expo-tailwind-app
A CLI tool to bootstrap a new Expo project with TailwindCSS + NativeWind configured out of the box.
Features
- Creates a fresh Expo project
- Installs and configures NativeWind + TailwindCSS
- Sets up
babel.config.js,metro.config.js, andglobal.css - Auto Import global.css in _layout.tsx file
- Generates TypeScript type definitions for NativeWind
- Adds Prettier Tailwind plugin for clean code formatting
Usage
Run the following command:
npx create-expo-tailwind-app my-appWhat it does
This CLI tool will:
- Create a new Expo project with TypeScript template
- Install NativeWind and required dependencies
- Configure TailwindCSS with proper content paths
- Set up Babel with NativeWind preset
- Configure Metro for CSS processing
- Create global.css with Tailwind directives
- Auto-import global.css in your app layout
- Add TypeScript types for NativeWind
Requirements
- Node.js 18 or higher
- npm or yarn
Example
npx create-expo-tailwind-app my-awesome-app
cd my-awesome-app
npm run startYour new app will be ready to use with TailwindCSS classes like className="bg-blue-500 text-white p-4 rounded-lg"!
