(value: unknown): { name: string; variables: { name: string; light?: string | undefined; dark?: string | undefined; summary?: string | undefined; }[]; summary?: string | undefined; scheme?: "dark" | "light" | "dual" | undefined; scheme_mirror?: { ...; }[] | undefined; } | null import {parse_theme} from '@fuzdev/fuz_css/variable.js'; Parses an unknown value as a Theme, returning null when it doesn't
match. For untrusted input - a theme restored from storage, a theme handed
across a boundary - where a malformed value should fall back to a default
rather than throw. Use Theme.safeParse directly when the failure detail
matters, or validate_theme in theme_validate.ts for the full lint.
value
the value to parse
unknownreturns
Theme | null
the theme, or null when the value isn't one