Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

stylis-rule-sheet

thysultan3.6mMIT0.0.10

stylis plugin to extract individual rules to use with insertRule API

stylis, plugin

readme

stylis rule-sheet

stylis plugin to extract individual rules to use with the insertRule API

var sheet = document.head.appendChild(document.createElement('style')).sheet
var length = sheet.cssRules.length

var plugin = stylisRuleSheet((value) => {
    length = sheet.insertRule(value, length) + 1
})

stylis.use(plugin)