Skip to content

Installation

The fastest way to get started is with create-dispersa. It scaffolds a project with tokens, a build script, and a ready-to-run configuration.

Terminal window
pnpm create dispersa

You will be prompted to choose:

  1. Project directory — where to scaffold the project
  2. TemplateTypeScript (programmatic build script with CSS output) or CLI (config-file workflow using the dispersa CLI)
  3. Install dependencies — optionally run the package manager for you

If you already have a project and want to add Dispersa to it:

Terminal window
pnpm add dispersa

If you use the Dispersa CLI across multiple projects, installing it globally gives you direct access to the dispersa command without npx:

Terminal window
pnpm add -g dispersa

Once installed globally, the dispersa command is available everywhere:

Terminal window
dispersa build