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 or in the
app
/src
directory.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 in VSCode
Open settings.json
Open settings.json
- Open the VSCode (Windsurf/Cursor)
settings.json
file 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.
Need help? Start a discussion on GitHub.