Uniwind includes a built-in CSS parser that allows you to use traditional CSS alongside Tailwind utilities. While our primary focus is on Tailwind syntax, you can write custom CSS classes and use them directly in your React Native components.
We’re actively seeking feedback to identify missing features and limitations. Your input helps us improve CSS support in Uniwind!
The first value is used in light mode, and the second value is used in dark mode. This automatically adapts when the theme changes.
Copy
Ask AI
<View className="adaptive-card p-4"> {/* Colors automatically switch between light and dark themes */}</View>
The light-dark() function is particularly useful for maintaining color consistency across themes without needing separate CSS variables for each theme.
Prefer Tailwind utilities for simple styles. Use custom CSS classes for complex, reusable component patterns that would be verbose or repetitive with utility classes.
Avoid deeply nested selectors. React Native’s styling model is simpler than web CSS. Keep your selectors flat and component-scoped for best results.