JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1277634
  • Score
    100M100P100Q208203F
  • License MIT

stylis plugin to extract individual rules to use with insertRule API

Package Exports

  • stylis-rule-sheet

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (stylis-rule-sheet) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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)