Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reverse transformation #2

Open
srolel opened this issue May 11, 2016 · 3 comments
Open

Reverse transformation #2

srolel opened this issue May 11, 2016 · 3 comments

Comments

@srolel
Copy link

srolel commented May 11, 2016

Hi, would it be possible to perform the opposite transformation? (json style to css/scss)

@staxmanade
Copy link
Owner

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.

@srolel
Copy link
Author

srolel commented May 18, 2016

It accepts a CSS AST object, not the kind of style object this library produces.

@jacobworrel
Copy link

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;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants