mpal9000 / jss-camel-case

Allows to write camel cased rule properties.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Allows to write camel cased rule properties.

License:MIT License


Languages

Language:JavaScript 76.1%Language:HTML 23.9%