CSS to JS
May 23, 2020 ยท View on GitHub
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 git@github.com:<YOUR-USERNAME>/css-to-js.git
cd css-to-js
yarn
yarn start
Contributors โจ
Thanks goes to these wonderful people (emoji key):
Sara Vieira ๐ค ๐ป ๐จ |
Nimo Beeren ๐ป ๐ค ๐ ๐ |
Firmino Alves ๐ป |
Nathan Thorpe ๐ป |
This project follows the all-contributors specification. Contributions of any kind welcome!