Notwithstanding Previous Misdemeanors
    Have ideas to improve npm?Join in the discussion! »

    stylis-rule-sheet

    0.0.10 • Public • Published

    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)

    Keywords

    Install

    npm i stylis-rule-sheet

    DownloadsWeekly Downloads

    1,822,406

    Version

    0.0.10

    License

    MIT

    Unpacked Size

    2.1 kB

    Total Files

    3

    Last publish

    Collaborators

    • avatar