Skip to content

theme.set

Replaces the user’s theme CSS (the config folder’s theme.css); null restores the built-in themes (DMN-1273).

/** The user's theme: CSS applied after the built-in tokens (DMN-1273). */
export type Theme = {
/** `null`: the built-in themes only. */
css: string | null;
};
/** No params, or the `{}` result. */
export type Empty = Record<string, never>;