Function createStyles

  • Creates a HTML style element with the given styles.

    Parameters

    • styles: string

      CSS string

    • root: Element = document.head

      root element to add the style to (default: head)

    Returns HTMLStyleElement