Mixins / foldkit-mixins/theme/runtime
themeScript
function · packages/mixins/src/theme/runtime.ts:46
function themeScript<Name extends string>(
themes: ThemeNames<Name>,
key?: string,
): stringThe text of a <script> for the document's head: it shows the theme whose
name is kept under key, so a reader who chose one never sees the initial
theme for a frame. A kept name that is not one of themes (a theme a later
build removed), and storage that throws, leave the initial theme.