Getting Started

Global CSS

Author Tailwind v4 theme tokens and reusable CSS classes for Nitrowind.

Global CSS

Nitrowind uses Tailwind v4. Your CSS entry file should import Tailwind and define tokens with @theme.

global.css
@import 'tailwindcss';

@theme {
  --color-primary: #0f766e;
  --color-surface: #ffffff;
  --color-on-surface: #111827;
  --radius-card: 12px;
}

.dark {
  --color-surface: #09090b;
  --color-on-surface: #f9fafb;
}

Then use tokens from className:

<View className="rounded-card bg-surface p-4">
  <Text className="text-primary">Saved</Text>
</View>

Plain classes

You can define reusable CSS classes alongside Tailwind utilities:

.panel {
  border-radius: 12px;
  padding: 16px;
  background-color: var(--color-surface);
}
<View className="panel">
  <Text className="text-on-surface">Reusable CSS class</Text>
</View>

Supported dynamic inputs

Compiled styles can depend on:

Runtime valueExample
Theme variablesbg-surface, text-primary
Color schemedark:bg-black
Dimensions and orientationresponsive utilities
Safe-area insetspt-safe, mb-safe-or-4
RTLdirection-aware values
Font scale and remtext and rem-based lengths
Container sizecontainer query utilities
Group stategroup-active:*, group-focus:*

On this page