Returns the value of a CSS variable. If it is no defined, returns fallbackValue;
fallbackValue
// Returns the value of --fg, or 'white' otherwisegetCssVariable(`--fg`, `white`); Copy
// Returns the value of --fg, or 'white' otherwisegetCssVariable(`--fg`, `white`);
-- prefix can be omitted:
--
getCssVariable(`fg`, `white`); Copy
getCssVariable(`fg`, `white`);
Returns the value of a CSS variable. If it is no defined, returns
fallbackValue
;--
prefix can be omitted: