EngineAppearance interface

Module @runic-artifex/views in @runic-artifex/views 0.23.0

interface EngineAppearance

What the page's engine reports through its CSS media queries, which is what the page's CSS sees. null is a media feature the engine does not evaluate, and every member under server rendering.

Properties

colorScheme

readonly colorScheme: AppearanceColorScheme | null;

prefers-color-scheme, which follows a window's own colour scheme.

contrast

readonly contrast: AppearanceContrast | null;

forced-colors: active, otherwise prefers-contrast: more, otherwise "no-preference".

reducedMotion

readonly reducedMotion: boolean | null;

prefers-reduced-motion: reduce.