export type TRemoveCSSVarArgs = Parameters; export type TRemoveCSSVarReturn = ReturnType; /** * Removes CSS3 variable from specific DOM node * @param el{HTMLElement|Node|Element|Document=} DOM element * @param variable{string} variable name * @see https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties * @throws {TypeError} removeCSSVar: el must be an HTMLElement * @throws {TypeError} removeCSSVar: variable must be a non-empty string * @example * // How to remove CSS variable from div? * //
* const block = document.getElementById("myBlock"); * removeCSSVar(block, "myVar"); * //
* @example * // Remove an inline theme override and fall back to the stylesheet value * removeCSSVar(document.documentElement, "accent-color"); */ export declare const removeCSSVar: (el: HTMLElement | undefined, variable: string) => void;