@endeavorance/quill
    Preparing search index...

    Function applyStyles

    • Set an arbitrary amount of CSSProperties on an object

      Parameters

      • $el: HTMLElement
      • styles: CSSProperties

      Returns void

      This can set any property, including CSS Custom Properties

      applyStyles(fancyButton, {
      "--text-color": "red",
      "margin": "0 auto",
      });

      @param $el The HTML element to apply styles to
      @param styles An object map of CSS property names to