Skip to content

Function: colorCssVariables() ​

ts
function colorCssVariables(css): Record<string, string>;

Defined in: colorThemes.ts:543

The custom properties a person's colour CSS sets on the whole page: the declarations in its top-level :root and html rules, later ones winning. Rules for anything narrower recolour parts of the web interface, which a client drawing its own has no equivalent for.

Parameters ​

ParameterType
cssstring | null | undefined

Returns ​

Record<string, string>

Released under the GNU Affero General Public License v3.0.