swsalim / css-to-js

Transform between CSS, JS Objects and JSX props

Home Page:https://css2js.dotenv.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CSS to JS

All Contributors

Coverage

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!

About

Transform between CSS, JS Objects and JSX props

https://css2js.dotenv.dev/

License:MIT License


Languages

Language:TypeScript 80.6%Language:JavaScript 10.1%Language:CSS 5.5%Language:HTML 3.8%Language:Shell 0.0%