Skip to content

usePreferredColorScheme ​

Category
Browser

Hook that returns user preferred color scheme

typescript
import { usePreferredColorScheme } from '@siberiacancode/reactuse';

Usage ​

typescript
const colorScheme = usePreferredColorScheme();

Demo ​

Api ​

Contributors ​

Source • Demo