0.0.10 • Published 6 years ago

stylis-rule-sheet v0.0.10

Weekly downloads
2,081,086
License
MIT
Repository
github
Last release
6 years ago

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)