Class ThemeAbstract

A hierarchy of CSS rules within single root.

A component may use it to extract styling information.

Current theme is available in bootstrap, definition, or component context. By default, only one theme is declared per bootstrap. But this can be overridden.

Hierarchy

  • Theme

Constructors

Properties

Methods

Constructors

Properties

root: StypRule

Root CSS rule.

All theme styling is represented as rules within this root.

Methods

  • Obtains CSS rule reference by its referrer.

    This is a helper method that resolves the given referrer against the root CSS rule of this theme.

    Returns

    CSS rule reference.

    Type Parameters

    • T extends StypProperties<T>

    Parameters

    • referrer: RefStypRule<T>

      Target CSS rule referrer.

    Returns StypRuleRef<T>

  • Obtains a styling for the given theme styles.

    This method requests the registered theme styles for CSS rules they provide. If some of the styles are not registered then uses the given style as provider.

    Returns

    Dynamically updated CSS rule set containing the requested styling.

    Parameters

    • Rest ...styles: Provider[]

      The styles to obtain styling information for.

    Returns StypRules

Generated using TypeDoc