Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.
/ css-to-js Public archive

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

License

Notifications You must be signed in to change notification settings

rishabhrathod01/css-to-js

Folders and files

NameName
Last commit message
Last commit date
Sep 17, 2020
Sep 17, 2020
Sep 17, 2020
Sep 17, 2020
Sep 17, 2020
Sep 17, 2020
Sep 17, 2020
Nov 3, 2020
Nov 8, 2020
Sep 17, 2020
Sep 18, 2020
Sep 18, 2020
Sep 17, 2020
Sep 17, 2020

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