Class: Theme

Help4.theme.Theme()

Sets the CSS variables for a certain theme.

Constructor

new Theme()

Source:

Methods

(static) clamp(values, theme)

Parameters:
Name Type Description
values Object
theme string
Source:

(static) removeCustomVariables(shadowRoot, name)

Parameters:
Name Type Description
shadowRoot DocumentFragment
name string
Source:

(async, static) set(shadowRoot, name, dynamicValuesopt)

Parameters:
Name Type Attributes Default Description
shadowRoot DocumentFragment
name string theme name
dynamicValues Object <optional>
{}
Source:

(static) setCustomVariables(shadowRoot, name, list)

Parameters:
Name Type Description
shadowRoot DocumentFragment
name string
list Object
Source:
Throws:
Error