useAppearance function

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

function useAppearance(): Readonly<Ref<Appearance>>;

The page's appearance (appearance from @runic-artifex/views) as a ref that renders, computes and watches again when it changes: the colour scheme, contrast and reduced motion of the page's engine combined with the desktop's values that a Runic host pushes (appearance/1), which also carry the text scale, the accent colour and the forced-colours palette. Follows them while the calling component or effect scope lives; every member is null under server rendering.

const look = useAppearance();
const animate = computed(() => look.value.reducedMotion !== true);