Preferred Color Scheme:
no-preference

usePreferredColorScheme

Reactive prefers-color-scheme media query.

Usage

import { usePreferredColorScheme } from '@vueuse/core'

const preferredColor = usePreferredColorScheme()

Type Declarations

export declare type ColorSchemeType = "dark" | "light" | "no-preference"
/**
 * Reactive prefers-color-scheme media query.
 *
 * @link /usePreferredColorScheme
 * @param [options]
 */
export declare function usePreferredColorScheme(
  options?: ConfigurableWindow
): ComputedRef<ColorSchemeType>

Source

SourceDemoDocs