useAppearance function

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

function useAppearance(): Appearance;

Renders the page's appearance (appearance from @runic-artifex/views): 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. Renders again when any of them changes. The server snapshot has every member null.

const { textScale, reducedMotion } = useAppearance();