stylis-rule-sheet
stylis plugin to extract individual rules to use with insertRule API
Last updated 7 years ago by thysultan .
MIT · Repository · Bugs · Original npm
$ cnpm install stylis-rule-sheet 
SYNC missed versions from official npm registry.

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)

Current Tags

  • 0.0.10                                ...           latest (7 years ago)

2 Versions

  • 0.0.7                                ...           8 years ago
  • 0.0.10                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org