@stencila/thema
Version:
Themes for executable documents
9 lines (8 loc) • 360 B
TypeScript
/**
* Given a CSS stylesheet, parses it and returns an object with all top level CSS variables and their values.
*
* @function getCssVariables
* @param {string} css - CSS to parse
* @return {Record<string, string>} Key/value pairs of found variables name and their values
*/
export declare const getCssVariables: (css: string) => Record<string, string>;