Prefers Dark:
false

usePreferredDark

Reactive dark theme preference.

Usage

import { usePreferredDark } from '@vueuse/core'

const isDark = usePreferredDark()

Type Declarations

/**
 * Reactive dark theme preference.
 *
 * @link /usePreferredDark
 * @param [options]
 */
export declare function usePreferredDark(
  options?: ConfigurableWindow
): Ref<boolean>

Source

SourceDemoDocs