Skip to main content

Overview

React Native uses the Yoga layout engine, not browser CSS. Key differences to be aware of:
  • No CSS cascade/inheritance: Styles don’t inherit from parent components
  • Flexbox by default: All views use flexbox with flexDirection: 'column' by default
  • Limited CSS properties: Only a subset of CSS is supported (no floats, grid, pseudo-elements, etc.)
  • Different units: No em, rem, or percentage-based units for most properties
Uniwind supports the vast majority of Tailwind CSS utility classes out of the box. This page documents special cases, platform-specific classes, and differences between the free and pro versions.
Most Tailwind classes just work! If a class name isn’t listed below as unsupported or with special behavior, you can assume Uniwind fully supports it.
Found a class name that doesn’t work as expected? Please open an issue on GitHub to help us improve this documentation.

Standard Tailwind Classes

All standard Tailwind utility classes are supported, including:
  • Layout: container, flex, block, hidden, etc.
  • Spacing: p-*, m-*, space-*, gap-*
  • Sizing: w-*, h-*, min-w-*, max-w-*, etc.
  • Typography: text-*, font-*, leading-*, tracking-*, etc.
  • Colors: bg-*, text-*, border-*, shadow-*, etc.
  • Borders: border-*, rounded-*, ring-*
  • Effects: shadow-*, opacity-*
  • Filters: blur-*, drop-shadow-*, grayscale, saturate-*, etc. (see platform notes)
  • Flexbox: justify-*, items-*, content-*, etc.
  • Positioning: absolute, relative, top-*, left-*, etc.
  • Transforms: translate-*, rotate-*, scale-*, skew-*
  • State selectors: active:, disabled:, focus: (with Tailwind 4.3.3+, which emits flattened variant selectors, these need Uniwind 1.12.0+ or Uniwind Pro 1.7.0+)

Platform-Specific Variants

Uniwind extends Tailwind with platform-specific variants for React Native:
Learn more about platform variants in the Platform Selectors documentation.

Direction Variants (rtl: / ltr:)

Style based on the layout direction:
By default, the variants follow the global RTL state. To force a direction for a specific subtree, wrap it in LayoutDirection (available in Uniwind 1.9.0+, Pro 1.4.0+):

Logical Text Alignment

Available in Uniwind 1.12.1+ and Uniwind Pro 1.8.0+ text-start and text-end pass through as textAlign: 'start' and textAlign: 'end', so text aligns with the reading direction without separate ltr: / rtl: classes:
React Native resolves end from 0.87. On older versions, both values fall back to natural alignment.

Variable Fonts

Available in Uniwind 1.12.1+ and Uniwind Pro 1.8.0+ Tailwind has no built-in font-variation-settings utility, so use an arbitrary property. Quote the axis tag and use _ for spaces:
Uniwind maps the value to the fontVariationSettings style and keeps the axis tags quoted, which React Native requires on both iOS and Android.
React Native applies fontVariationSettings from 0.88. The font must be a variable font that exposes the axes you set.

Text Decoration Style and Color

decoration-solid, decoration-double, decoration-dotted, decoration-dashed and decoration-wavy map to textDecorationStyle, and decoration-<color> maps to textDecorationColor. Combine them with underline or line-through:
React Native draws every style and the decoration color on both platforms from 0.87. Before 0.87, Android draws a solid line in the text color for every style, and iOS draws wavy as a solid line.

Line Break and Word Break

Available in Uniwind 1.14.0+ and Uniwind Pro 1.10.0+ Tailwind has no line-break utility, so use arbitrary properties. On Text, [line-break:*] and [word-break:*] become React Native’s lineBreak and wordBreak props:
Other values, such as break-all or [line-break:anywhere], are left out because React Native doesn’t take them. A lineBreak or wordBreak prop passed to Text wins over the class.
React Native applies lineBreak and wordBreak from 0.89, on Android 13 (API 33) and newer.
[experimental-text-width-mode:*] maps to React Native’s experimental_textWidthMode style, for example [experimental-text-width-mode:longest-line].

Skew

skew-x-* and skew-y-* map to skewX and skewY transforms.
Android applies skew from React Native 0.87 on Android 10 (API 29) and newer. Older versions draw the view without the skew, or rotated instead.

Blend Modes

mix-blend-* maps to mixBlendMode:
mix-blend-plus-lighter needs React Native 0.86. Below 0.86, Android throws on it and the app crashes. React Native has no plus-darker mode, so mix-blend-plus-darker crashes Android on every version.

Platform Colors

platform-color() uses the system colors of each platform, like React Native’s PlatformColor. A name starting with ? or @ is an Android color resource or theme attribute, any other name is an iOS semantic color, and the last argument is the fallback:
The fallback is the whole color on a platform you did not name a color for, and on web. iOS colors follow light and dark mode on their own. On Android, Uniwind applies the color again when the color scheme changes, so resources and theme attributes with a night variant follow too. Use _ for an underscore in a class name, as in bg-[platform-color(@android:color/holo_blue_light,#33b5e5)].
React Native uses the fallback for a name that does not exist from 0.88, and only on iOS; below 0.88 a missing iOS name draws nothing. On Android, a resource or attribute that does not resolve crashes the app from 0.88 and draws nothing below it, so name only resources your app or Android provides. Attributes that hold a color state list, such as ?android:attr/textColorPrimary, draw nothing before React Native 0.89.

Text Line Breaking

Arbitrary properties for CSS line-break and word-break: auto-phrase become React Native’s lineBreak and wordBreak Text props:
line-break takes auto, loose, normal and strict, and word-break takes normal and auto-phrase; other values, such as the ones break-all and break-keep set, are ignored. experimental-text-width-mode becomes the experimental_textWidthMode style.
React Native applies lineBreak and wordBreak from 0.89 on Android 13 and newer only, and auto-phrase only in a locale with phrase breaking, such as Japanese. experimental_textWidthMode needs React Native 0.89 on iOS and Android, and changes only text that is not stretched to its container.

Viewport Units

Arbitrary values with vw and vh resolve against the screen size:

The accent-* Prefix

React Native components often have color props that are separate from the style prop (like color, tintColor, underlayColor). These props expect a plain color string, not a style object. Uniwind uses the accent-* prefix to handle these cases.

Why Use accent-*?

When you use a *ClassName prop that maps to a color prop (e.g., colorClassName, tintColorClassName), you must use the accent-* prefix to indicate that you want to extract a color value, not a style object.
For style props: Use regular Tailwind classes directly (e.g., className="bg-blue-500").For non-style color props: Use the accent- prefix (e.g., colorClassName="accent-blue-500").

How It Works

Under the hood, Uniwind resolves accent-* classes to the accentColor style property, then extracts the raw color value and passes it as a string to the native prop.

Common Color Props Requiring accent-*

Selector Support

accent-* classes support all the same selectors as regular Tailwind classes, including theme variants, platform variants, and state selectors:
Since 1.6.2: Passing a className without the accent- prefix to a color prop (e.g., colorClassName="blue-500" instead of colorClassName="accent-blue-500") will log a warning to the development console.

Safe Area Classes

Safe area utilities are fully supported in Uniwind:
Requires react-native-safe-area-context with SafeAreaListener setup:
Learn more in FAQ.

Group Variants

Not supported. group-* classes are parsed but have no runtime effect.

Work in Progress

The following classes are currently being worked on:

Data Selectors

Data selectors are supported. Use data-[prop=value]:... to style based on component props. See the full guide in Data Selectors.

Unsupported Classes

Some Tailwind classes are not applicable to React Native and will be ignored:
The following web-specific classes have no React Native equivalent:
  • Pseudo-classes: hover:*, visited:* (use active: and focus: state selectors instead)
  • Pseudo-elements: before:*, after:*, placeholder:*
  • Media queries: print:*, screen:*
  • Float & Clear: float-*, clear-*
  • Break: break-before-*, break-after-*, break-inside-*
  • Columns: columns-*, break-*
  • Aspect Ratio: Some variants may have limited support
  • Backdrop filters: backdrop-* (React Native has no backdropFilter equivalent)
Regular filters (blur-*, drop-shadow-*, grayscale, saturate-*, hue-rotate-* and friends) are supported on native, but blur and drop-shadow need Android 12+ and iOS requires a React Native feature flag. See how to enable filters.
For interactive states like hover and press, use the Pressable component’s built-in state management and apply classes conditionally.

Need More Information?

This page is continuously updated as we expand Uniwind’s capabilities.

Request Documentation Updates

Help us improve this documentation by reporting missing or incorrect information.