2022-11-11 07:52:45 +10:00
2022-09-27 22:04:00 +10:00
2022-10-30 13:10:24 +10:00
2022-11-03 15:08:12 +10:00
2022-11-11 07:52:45 +10:00
2022-04-27 14:07:53 +10:00
2022-10-26 16:51:48 +10:00
2022-04-27 16:40:23 +10:00
2022-07-03 23:58:12 +10:00
2022-10-18 13:19:48 +10:00
2022-11-11 07:52:45 +10:00
2022-11-03 15:08:12 +10:00
2022-10-26 16:51:48 +10:00
2022-09-27 22:00:02 +10:00


NativeWind is a complete tooling solution to use Tailwind CSS on all React Native platforms (ios/android/web/window/macos/etc). It can be used either as a utility styling library or for building your own component library.

On native devices, NativeWind pre-builts your styles and uses a minimal runtime for dynamic styles. While in your browser, it provides a compatibility layer between React Native and your CSS.

In addition to styling, NativeWind provides optional Babel plugins to create a consistent developer experience, such as supporting a className prop on any component.

In Action

Click the picture to go to a live example!

Highlights

  • Works on all RN platforms, uses the best style system for each platform.
  • Uses the Tailwind CSS compiler (always get up-to-date features)
  • Native styles are computed at build time
  • Babel plugin for simple setup and improving intellisense support
  • Respects all tailwind.config.js settings, including themes, custom values, plugins

Styling Features

  • Supports px/%/rem/vw/vh
  • Polyfills pseudo classes - hover / focus / active are available on compatible components
  • Supports arbitrary classes / media queries
  • Supports clamp()
  • Platform only variants eg. android:text-black
  • Group and named groups allow styling based upon parent state
  • Create simple layouts with gap/space/divide

Built your own multi-platform component library

  • Create complex components with the styled() helper
  • Supports dynamic theme values via CSS variables (which work on Native!)
  • Supports light / dark mode
  • Supports variants and compound-variants

Documentation

All documentation is on our website https://nativewind.dev

Description
No description provided
Readme 69 MiB
Languages
TypeScript 82.5%
JavaScript 7.4%
MDX 6%
SCSS 4%
Shell 0.1%