• Wraps a regular CSSStyleSheet with an instance of StyleSheet. This is simply an alia for new StyleSheet(cssStyleSheet).

    Parameters

    • css: CSSStyleSheet

      The CSSStyleSheet instance to wrap.

    Returns StyleSheet

    An instance of StyleSheet which holds the given CSSStyleSheet in its css property.

    Example

    import { wrap, createStyle } from 'deleight/css'
    const css = 'p {border: none;}, a {text-decoration: none;}'
    const sheet = wrap(createStyle(css))