ritz078 / transform

A polyglot web converter.
https://transform.tools
MIT License
7.91k stars 576 forks source link

JavaScript to CSS converter online? #325

Open KielYam1212008 opened 2 years ago

KielYam1212008 commented 2 years ago

I do not know how to convert javascript to css in the website tools online.

lil5 commented 2 years ago

Shameless plug to move from JSS to SCSS https://lil5.github.io/jss-to-scss/

JSS to SCSS screenshot

It's not perfect but it does the job


For the devs @ritz078 Here is the format function I use (a list of regexs) are you interested in this conversion tool?

https://github.com/lil5/jss-to-scss/blob/main/src/jss-to-scss/index.ts

RIP21 commented 1 year ago

Yeah, having a such thing that understands typical chakra/mantine/theme-ui more or less (with these multiple shortcut property names like h w, mx, my, pl etc., and outputs CSS would be awesome. (then I'll drop that to Tailwind converter and I'm gold :D)

I assume emotion itself or any CSS-in-JS library that uses all these helpers can output these if needed.