Mixins / foldkit-mixins/theme/runtime
chooseTheme
function · packages/mixins/src/theme/runtime.ts:59
function chooseTheme<Name extends string>(
themes: ThemeNames<Name>,
name: NoInfer<Name>,
key?: string,
): Effect.Effect<void>Shows name, as applyTheme does, and keeps it under key for the next
visit, as a Command's effect: the initial theme keeps nothing. Storage that
throws still shows it on this page.