Quickstart
This guide will walk you through the basics of setting up and using Jux toolkit in your project. Jux is a type-safe, zero-runtime CSS-in-JS solution with full interpolation capabilities. It leverages PostCSS to generate optimized stylesheets during build time, combining the flexibility of CSS-in-JS with the performance of traditional CSS.
Let’s dive in and get Jux set up in your project!
Installation
The fastest way to get started with Jux is to use the Jux CLI. The CLI will help you set up a new project and generate the necessary configuration files.
-
Install Jux CLI
-
Initialize a new project
This will install the necessary dependencies and create a
jux.config.ts
file in your project root. -
Configure source files
In
jux.config.ts
, specify the paths to your source files. Jux will scan and parse these files to generate the CSS file. -
Generate CSS
Run the Jux build process to generate your CSS file. This file will include all styles used in your project, along with tokens and themes configurations.
-
Start using Jux in your project
Include the generated CSS file in your project and start using Jux to style your components.
Framework Guides
Next steps
Get familiar with some of the core concepts that make Jux different compared to other styling solutions.