useAppearance function

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

function useAppearance(): AppearanceHandle;

Follows the page's appearance (appearance from @runic-artifex/views) while its owner lives: 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.

<script lang="ts">
  const look = useAppearance();
</script>
<main style:font-size="{look.current.textScale ?? 1}rem">…</main>