What is Stylance-cli
mainStylance-cli is the dedicated build tool for the Stylance ecosystem. It processes CSS module files to enable scoped styling by performing two primary transformations:
- Classname Hashing: Appends a unique hash as a suffix to every classname found (e.g.,
.classis transformed into.class-63gi2cY). - Global Content Cleanup: Removes
:global(contents)syntax while preserving the actual CSS content inside the block.
For detailed usage instructions on how to integrate this into your workflow, refer to the main Stylance documentation.