It exports two functions:
renderToString(styles)
- Render the CSS to a string. (This has no DOM dependency, and it omits the@charset
- that's for you to set.)renderToDOM(styles)
- Render the CSS to the DOM.
Note that renderToString
omits any charset - the user should specify that before emitting.
Styles are specified as follows: