theme-vir - v28.21.2
    Preparing search index...

    Function applyColorThemeViaStyleElement

    • Sets all of a color theme's CSS vars in a global style element. If no override is given, the theme color default values are assigned.

      Uses applyCssVarsViaStyleElement from lit-css-vars.

      Parameters

      • colorTheme: ColorTheme
      • OptionalthemeOverride: ColorThemeOverride
      • Optionalcontext: Element

        The context to apply the color theme to.

        document.head
        

      Returns HTMLStyleElement