Prefers Dark:
falseusePreferredDark
Reactive dark theme preference.
Usage
import { usePreferredDark } from '@vueuse/core'
const isDark = usePreferredDark()
Component
<UsePreferredDark v-slot="{ prefersDark }">
Prefers Dark: {{ prefersDark }}
</UsePreferredDark>
Type Declarations
/**
* Reactive dark theme preference.
*
* @see /usePreferredDark
* @param [options]
*/
export declare function usePreferredDark(
options?: ConfigurableWindow
): Ref<boolean>