Skip to content

rishabhrathod01/css-to-js

Repository files navigation

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.

How to Use

  1. Select some block of css code in a javascript or typescript file and

  2. 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.

Demo for conversion of css to CSSinJS

demo

Feel free to raise an Issue if something is missing i will be glad to help.


MIT

© 2020 Rishabh Rathod

About

VSCode extension to convert css to css-in-js.

Resources

License

Stars

Watchers

Forks

Packages

No packages published