Skip to content

Vizel API / svelte/src / getVizelThemeSafe

Function: getVizelThemeSafe()

ts
function getVizelThemeSafe(): GetVizelThemeResult | null;

Defined in: packages/svelte/src/runes/getVizelTheme.ts:87

Get the editor theme safely (returns null outside a provider).

Symmetric with getVizelTheme — the only difference is whether the absence of a VizelThemeProvider is fatal.

Returns

GetVizelThemeResult | null

Released under the MIT License.