css-to-js

Transform between CSS, JS Objects and JSX props

MIT License

Stars
161
Committers
6

CSS to JS

Transform between CSS, JS Objects and JSX props.

We're all doing CSS-in-JS these days, but there doesn't seem to be a real consensus on the best way to do it. Some people like writing plain old CSS, template literals, object styles and others write styles as props on their React components.

To help ease the transition between those different forms, we've made a tool that transforms the code for you.

Run locally

Fork the repo then:

git clone [email protected]:<YOUR-USERNAME>/css-to-js.git
cd css-to-js
yarn
yarn start

Contributors ✨

Thanks goes to these wonderful people (emoji key):

This project follows the all-contributors specification. Contributions of any kind welcome!