JSPM

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

Inheritance plugin for jss

Package Exports

  • jss-extend

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 (jss-extend) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Inheritance plugin for JSS

This plugin implements extend keyword for jss.

Take a look at examples directory.

var redButton = {
    background: 'red'
}

exports.styles = {
    '.button': {
        extend: redButton, // can be an array of styles
        'font-size': '20px'
    }
}
.button {
    background: red;
    font-size: 20px;
}

Register plugin

var jss = require('jss')
var extend = require('jss-extend')
jss.use(extend)

Run tests

Locally

npm i
open test/local.html

From github

Tests

License

MIT