CssToReact
CssToReact copied to clipboard
Reverse transformation
Hi, would it be possible to perform the opposite transformation? (json style to css/scss)
It could be possible - this project is using https://www.npmjs.com/package/css to parse the css into the object representation. It has a stringify method that could reverse it.
It accepts a CSS AST object, not the kind of style object this library produces.
at my work we're going to have to migrate a bunch of inline react styles to css modules or styled components so i was hoping to find a tool that did the reverse transformation as well.
backgroundColor: "red", ---> background-color: red;