Integrating Jux with PostCSS
Installing Jux as PostCSS plugin is the recommended way to seamlessly use Jux in your project. This guide will walk you through the steps to set up Jux as a PostCSS plugin in your project.
-
Install Jux CLI
-
Initialize a new project
This will install the necessary dependencies, and create
jux.config.ts
andpostcss.config.js
files in your project root. -
Configure your include files
Add the path to your source files in
jux.config.ts
. Jux will scan these files to generate the CSS file. -
Add Jux’s @layer directive to your main CSS file
-
Start your build process
Include the generated CSS file in your project and start using Jux to style your components.
-
Use Jux in your project
Start using Jux to style your components.