Skip to content

apollo-code


apollo-code / ui/src / parseTheme

Function: parseTheme()

parseTheme(source, fallback?): { error?: undefined; fallback: false; theme: ThemeDefinition; } | { error: string; fallback: true; theme: ThemeDefinition; }

Parameters

source

string

fallback?

"dark" | "light"

Returns

{ error?: undefined; fallback: false; theme: ThemeDefinition; } | { error: string; fallback: true; theme: ThemeDefinition; }