Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

jss-camel-case

cssinjs477.8kMIT6.1.0

JSS plugin that allows to write camel cased rule properties

cssinjs, css-in-js, css in js, jss, plugin, camel case

readme

JSS plugin that allows to write camel cased rule properties

Gitter

Internally it converts everything back to dash separated names.

Make sure you read how to use plugins in general.

Example

const styles = {
  container: {
    fontSize: '20px',
    zIndex: 1,
    lineHeight: 1.2
  }
}
.container-a24234 {
  font-size: 20px;
  z-index: 1;
  line-height: 1.2;
}

Demo

Simple

Issues

File a bug against cssinjs/jss prefixed with [jss-camel-case].

Run tests

npm i
npm run test

License

MIT

changelog

6.1.0 / 2018-02-08

  • Use a caching hyphenation.
  • Hyphenate property names for function values in onChangeValue hook.

6.0.0 / 2017-09-30

  • Support jss 9

5.0.0 / 2017-06-20

  • Support jss 8

4.0.0 / 2017-04-10

  • Support jss 7.0

3.0.0 / 2016-12-09

  • remove dep to named option

2.0.2 / 2016-11-05

  • migrate tests, update deps

2.0.1 / 2016-10-26

  • Support fallbacks

2.0.0 / 2016-08-01

  • Update dependencies, update to jss 5

1.1.0 / 2015-04-14

  • Support font-face rule style as an array.

1.0.2 / 2015-03-24

  • update babel

1.0.1 / 2015-01-26

  • update deps

1.0.0 / 2015-10-19

  • support jss 3.0
  • now plugin needs to be called like a middleware

0.2.0 / 2015-09-21

  • migrate to es6
  • move examples to jss-examples repository
  • simplify packaging

0.1.1 / 2015-02-1

  • remove unneeded regexp

0.1.0 / 2015-01-31

  • first release