1.0.0 • Published 9 years ago

jss-debug v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

JSS logo

JSS plugin for debugging

Adds rule name to the class name for debugging purposes.

Demo - JSS

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

Usage example

import jss from 'jss'
import debug from 'jss-debug'

jss.use(debug())

let sheet = jss.createStyleSheet({
  button: {
    'font-size': '20px'
  }
})
console.log(sheet.toString())
.jss-0-0 {
  font-size: 20px;
}
console.log(sheet.classes)
{ button: "jss-0-0 jss:button" }
<button class="jss-0-0 jss:button">Button</button>

Run tests

npm i
npm run test

License

MIT

1.0.0

9 years ago

0.2.0

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago