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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
6.0.0113,264latest

Version History

VersionDownloads (Last 7 Days)Published
6.0.0113,264
5.0.02,356
4.0.0182
3.0.0748
2.0.279
2.0.11
2.0.01
1.0.23
1.0.10
1.0.00
0.2.00
0.1.10
0.1.00

Package Sidebar

Install

npm i jss-props-sort

Weekly Downloads

96,044

Version

6.0.0

License

MIT

Last publish

Collaborators

  • kof