Last updated on September 14, 2026
useColorScheme()
useColorScheme() provides access to the devices color scheme.
| Value | Description |
|---|---|
| colorScheme | The current device colorScheme |
| setColorScheme | Override the current colorScheme with a different scheme (accepted values are light/dark/system) |
| toggleColorScheme | Toggle the color scheme between light and dark |
Nativewind v4.2.7 handles the React Native Appearance unspecified value internally. Continue using setColorScheme("system") with the v4 Nativewind hook to restore system preference; the v5 direct Appearance recipe is a separate API.