/jss-camel-case

Allows to write camel cased rule properties.

Primary LanguageJavaScriptMIT LicenseMIT

JSS logo

JSS plugin that allows to write camel cased rule properties

Internally it converts everything back to dash separated names.

Demo - JSS

![Gitter](https://badges.gitter.im/Join Chat.svg)

Usage example

import jss from 'jss'
import cc from 'jss-camel-case'

jss.use(cc)

const styleSheet = jss.createStyleSheet({
  container: {
    fontSize: '20px',
    zIndex: 1,
    lineHeight: 1.2
  }
})
console.log(styleSheet.toString())
.jss-0-0 {
  font-size: 20px;
  z-index: 1;
  line-height: 1.2;
}
console.log(styleSheet.classes)
{ container: "jss-0-0" }

Run tests

npm i
npm run test

License

MIT