API Reference

Runtime API

Providers, hooks, runtime helpers, and style registration exports.

Runtime API

Import from nitrowind for the Tailwind wrapper, or nitrocss for the core package.

Providers

ExportDescription
NitrowindProviderAlias of NitroCssProvider.
NitroCssProviderStarts runtime observation and provides snapshot state.

Hooks

ExportDescription
useNitrowindAlias of useNitroCss.
useNitroCssRuntime context with snapshot, theme name, and setters.
useRuntimeSnapshotCurrent runtime snapshot.
useThemeCurrent theme state.
useColorSchemeColor-scheme state.
useDimensionsScreen dimensions.
useInsetsSafe-area insets.
useFontScaleFont scale.

Low-level exports

ExportDescription
registerSerializedStylesRegister a compiled style artifact.
registerStylesRegister an in-memory artifact.
resolveStylesResolve className to styles for the current runtime path.
resolveStylesForPlatformResolve className for a specific platform.
setNativePropsImperatively update native props where supported.
runtimeJS runtime manager.

On this page