C

next/13/move-css-in-js-styles

How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

This highly experimental codemod moves the CSS-in-JS styles into the CSS Modules.

Example

Before

jsx

After

The file gets transformed into:

jsx

And the codemod creates the new file Head.module.css which contains:

jsx

Ready to contribute?

Build your own codemod and share it with the community.