Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

jss-props-sort

6.0.0 • Public • Published

JSS plugin that ensures style properties extend each other instead of override

Gitter

Inspired by React Native. When using this plugin, more specific properties will not be overwritten by less specific.

Usage example

const styles = {
  container: {
    'border-left': '1px solid red',
    border: '3px solid green'
  }
})

Compiles to:

.jss-jkh4234 {
  border: 3px solid green;
  border-left: 1px solid red;
}

Demo

Simple

Run tests

npm i
npm run test

License

MIT

install

npm i jss-props-sort

Downloadsweekly downloads

366,609

version

6.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability