parseThemeChoice
Reads a stored value as a theme choice. Anything that is not exactly "system", "light" or "dark" becomes "system".
This is a function exported by @mapcairn/core, checked against version 0.2.0.
Signature
import { parseThemeChoice } from "@mapcairn/core";
function parseThemeChoice(raw: unknown): ThemeChoice;
Parameters
raw(unknown)
Returns
ThemeChoice
Remarks
Must stay free of outside references: the inline bootstrap script is built from this function's source text.