(theme: { name: string; variables: { name: string; dark?: string | undefined; base?: string | undefined; summary?: string | undefined; }[]; summary?: string | undefined; scheme?: "light" | "dark" | "dual" | undefined; }, options?: CompileThemeOptions): 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
options?
the variable set the theme overlays, when it isn't the defaults
{}returns
CompiledTheme the theme with its mirror, caps, gate report, and lint