Step 1: Install Uniwind and Tailwind
Uniwind only supports Tailwind 4.
Installation
Installation
Create global.css file
Create global.css file
This file will serve as your CSS entry point.
We recommend keeping this file in the root of your project.Location matters! The location of
global.css determines your app root - Tailwind will automatically scan for classNames starting from this directory. If you place global.css in a nested folder (like app/global.css), classNames in other directories won’t be detected unless you explicitly include them using the @source directive.Import global.css file
Import global.css file
Import the CSS file in your
App.tsx (main component).Don’t import
global.css in the root index.ts/index.js file where you register the Root Component, as any change will trigger a full reload instead of hot reload.Step 2: Configure metro
- Expo
- Bare React Native
Modify metro.config.js
Modify metro.config.js
If you don’t see a
metro.config.js file in your project, you can create it with npx expo customize metro.config.js.metro.config.js
We recommend placing the
uniwind-types.d.ts file in the src or app directory, as it will be automatically included by TypeScript. For custom paths (e.g., root of your project), please include it in your tsconfig.json.Step 3: (Optional) Enable Tailwind IntelliSense for Uniwind
- VSCode/ Windsurf /Cursor
- Zed
settings.json
settings.json
-
Open
settings.jsonfile in your editor -
Add the following configuration:
Next steps
Now that you have your Uniwind project running, explore these key features:API documentation
Explore the complete API reference for Uniwind hooks and utilities.
Theming
Customize themes, colors, and design tokens for your React Native app.
React Native components
Style built-in React Native components with Tailwind classes.
3rd party components
Integrate Uniwind with third-party component libraries.
Monorepos & @source
Learn how to include components from multiple directories using @source.
Need help? Start a discussion on GitHub.