Mixins / foldkit-mixins/theme
schemeOfHint
function · packages/mixins/src/theme/scheme.ts:81
function schemeOfHint(
header: string | null | undefined,
): Option.Option<'light' | 'dark'>The scheme a Sec-CH-Prefers-Color-Scheme request header reports, for a
server that builds the Model per request, or none for an absent or unknown
value. The hint is a quoted string ("dark"); an unquoted one is read too.