Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork370
The utility-first workflow you love from Tailwind CSS in your React Native applications.
License
nativewind/nativewind
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Do you like usingTailwind CSS to style your apps? This helps you do that inReact Native. Nativewind isnot a component library, it's a styling library. If you're looking for component libraries that support Nativewind,see below.
Nativewind makes sure you're using the best style engine for any given platform (e.g. CSS StyleSheet or StyleSheet.create). Its goals are to to provide a consistent styling experience across all platforms, improving developer UX, component performance, and code maintainability.
Nativewind processes your styles during your application's build step and uses a minimal runtime to selectively apply reactive styles (eg changes to device orientation, light dark mode).
If you have an existing project,use these guides to configure Nativewind for your respective stack.
Alternatively, you can create a new pre-configured project via our Quickstart below.
We usern-new to quickly stand up an Expo project with Nativewind.
npx rn-new@latest --nativewind(Expo SDK 54 + Nativewind v4.1)npx rn-new@next --nativewind(Expo SDK 54 + Nativewind v5)
- Works onall RN platforms, uses the best style system for each platform.
- Uses the Tailwind CSS compiler
- Styles are computed atbuild time
- Small runtime keeps your components fast
- Support for
- Custom CSS properties, akaCSS Variables
- Dark mode, arbitrary classes, andmedia queries
- Animations andtransitions
- Container queries
container-typeand style-based container queries are not supported
- Pseudo classes -hover / focus / active on compatible components
remunits- Theme functions and nested functions
- React 18 Suspense API
- Custom CSS
- Styling based onparent state modifiers - automatically style children based upon parent pseudo classes
- Support for the
groupandgroup/<name>syntax
- Support for the
- Children styles - create simple layouts based upon parent class
Yes.
No.
Can we disable auto-adding nativewind types using a setting or something? I already have the settings usingcompilerOptions.types, so I would like to disable the file generation.
withNativeWind(<config>, { disableTypeScriptGeneration: true })
There are a number of different component libraries available that use Nativewind to achieve different results. You should pick the one that best suits your needs.
This multi-platform library focuses on achieving native feel for each individual platform using the familiar interface of Tailwind CSS.
This open source library offers universalshadcn/ui via React Native. Use this as a foundation to develop your own high-quality component library.
From the folks that brought you NativeBase, this library offers customizable cross-platform components designed to look & behave cleanly on every platform.
Learn more onour website.
About
The utility-first workflow you love from Tailwind CSS in your React Native applications.
Topics
Resources
License
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.