Pareto supports CSS, SASS, and CSS modules.
By convention, files ending in .module.(css|scss)
are treated as modular CSS.
The integration between Pareto and Tailwind CSS has a slight issue with hot reloading, mainly due to upstream problems with rspack
.
Examples: with Tailwind CSS
Install the Tailwind CSS packages and run the init command to generate both the tailwind.config.js and postcss.config.js files:
Inside tailwind.config.js, add paths to the files that will use Tailwind CSS class names:
Add the Tailwind CSS directives that Tailwind will use to inject its generated styles to a Global Stylesheet in your application, for example:
Inside the client entry file (client-entry.tsx), import the index.css stylesheet to apply the styles to every route in your application.
After installing Tailwind CSS and adding the global styles, you can use Tailwind's utility classes in your application.