Skip to content
zenui/react-hooks

useColorScheme

Stores a light, dark or system color scheme preference and resolves it against the OS setting. The choice persists to localStorage, syncs across tabs, and is hydration safe.

Level
Intermediate
Since
v2.1.0
import {useColorScheme} from '@zenuilabs/react-hooks';
Loading demo_

More in Browser & Device