(theme: { name: string; variables: { name: string; dark?: string | undefined; base?: string | undefined; summary?: string | undefined; }[]; summary?: string | undefined; scheme?: "dark" | "light" | "dual" | undefined; }): CompiledTheme import {compile_theme} from '@fuzdev/fuz_css/theme_compile.js'; Compiles a theme: computes its stance mirror and its recomputed chroma caps (compute_theme_caps), re-checks the gates with the caps, and lints it. The theme comes back as the same reference and never carries the derived data, so compiling the same theme again gives the same result.
theme
the theme to compile
returns
CompiledTheme the theme with its mirror, caps, gate report, and lint