Click ↑ to Install Vscode Extension (Please Read How to use section)
-
Provides conversion of CSS to CSSinJS.
-
CSSinJS format is specific to JSS library format for now (Will soon add support for styled components, tailwind & Emotion)
-
Supports css Pseudo Class (like :hover , :active ) which were missing in most of the solution.
-
Select some block of css code in a
javascript
ortypescript
file and -
use the keyboard shortcut
cmd+shift+k
(ctrl+shift+k
on Windows) Or
use cmd+shift+p
to bring up the command palette, then select Convert CSS-to-JS
.
Feel free to raise an Issue if something is missing i will be glad to help.
MIT
© 2020 Rishabh Rathod