rntpc_nativewind:可用于为 React Native 应用构建跨平台一致的设计系统,提升开发体验与组件性能。该项目以 Tailwind CSS 为脚本语言,在构建时处理样式,通过最小运行时实现响应式样式,支持多平台最佳样式引擎及各类 Tailwind 特性。【此简介由AI生成】

可用于为 React Native 应用构建跨平台一致的设计系统,提升开发体验与组件性能。该项目以 Tailwind CSS 为脚本语言,在构建时处理样式,通过最小运行时实现响应式样式,支持多平台最佳样式引擎及各类 Tailwind 特性。【此简介由AI生成】

分支4Tags1
文件最后提交记录最后更新时间
3 年前
4 年前
3 年前
3 年前
3 年前
3 年前
4 年前
3 年前
3 年前
4 年前
4 年前
4 年前
3 个月前
3 个月前
3 年前
4 年前
4 年前
3 年前
3 年前
3 年前
4 年前

Tailwind CSS

NativeWind

GitHub branch checks state npm npm GitHub

NativeWind uses Tailwind CSS as high-level scripting language to create a universal design system. Styled components can be shared between all React Native platforms, using the best style engine for that platform (e.g. CSS StyleSheet or StyleSheet.create). It's 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 build, and uses a minimal runtime to selectively apply reactive styles (eg changes to device orientation, light dark mode).

In Action

Features

  • Works on all RN platforms, uses the best style system for each platform.
  • Uses the Tailwind CSS compiler
  • Styles are computed at build time
  • Small runtime keeps your components fast
  • Babel plugin for simple setup and improving intellisense support
  • Respects all tailwind.config.js settings, including themes, custom values, plugins
  • dark mode / arbitrary classes / media queries
  • pseudo classes - hover / focus / active on compatible components
  • styling based on parent state - automatically style children based upon parent pseudo classes
  • children styles - create simple layouts based upon parent class

Documentation

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

项目介绍

可用于为 React Native 应用构建跨平台一致的设计系统,提升开发体验与组件性能。该项目以 Tailwind CSS 为脚本语言,在构建时处理样式,通过最小运行时实现响应式样式,支持多平台最佳样式引擎及各类 Tailwind 特性。【此简介由AI生成】

定制我的领域