appearances function

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

function appearances(): Stream.Stream<Appearance>;

The page's appearance (appearance from @runic-artifex/views): the appearance now, then each new one. It combines the colour scheme, contrast and reduced motion of the page's engine 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. A slow consumer skips to the latest. It never ends on its own; interrupting it stops watching.

yield* Effect.forkScoped(Stream.runForEach(appearances(), look => Effect.sync(() => {
  document.documentElement.style.fontSize = `${look.textScale ?? 1}rem`;
})));