platform-bible-utils

    Function applyThemeStylesheet

    • Applies a CSS stylesheet for the provided theme to the current window

      WARNING: THIS MUST BE BOUND TO window IN ORDER TO USE!

      applyThemeStylesheet.bind(window)()`
      

      Parameters

      • this: Window
      • theme: ThemeDefinitionExpanded

        Theme to apply

      • OptionalpreviousStyleElement: HTMLStyleElement

        Previous style element if applicable

      • OptionalstyleElementIdSuffix: string

        Suffix to apply to the ID of the new style element. Will be THEME_STYLE_ELEMENT_ID with a dash and the suffix added to it

      Returns HTMLStyleElement

    MMNEPVFCICPMFPCPTTAAATR