CSS builder to create react component style objects
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
test
.gitignore
.travis.yml
LICENSE
README.md
api.md
package.json
react-css-builder.js
release-notes.md

README.md

react-css-builder

CSS builder for creating inline react component style objects

If you want React to do native well, you need to use inline styles. But, you can still get the DRY and maintainability benefits of an external stylesheet with react-css-builder.

The advantages of creating the CSS attributes using javascript are

  • You can use runtime variables
  • You can use scoped (global, stylesheet specific and style reference specific)
  • There is a large byte savings if you use a lot of mixins and class inheritance as compared to css preprocessor output
  • You bypass some browser CSS issues because the style attributes end up as an inline style attribute

View the installation and API docs

Examples

take a look at some examples

Other React projects that may interest you