Skip to content

ColorPreference

Type representing the color mode of the current device. It is a string representing light mode and dark mode.

Signature

typescript
type ColorPreference = 'light' | 'dark';

Type Definition

ColorPreference

'light' | 'dark'