CLI
Fusion provides a CLI tool that can be used to generate a number of different artifacts.
Installation
The CLI can be installed using npm. To avoid global version conflicts, it’s recommended to install it locally.
npm install @codedazur/fusion-cliGenerating Themes
The CLI can be used to generate a theme from a TokensStudio JSON file.
npx fusion generate theme \
--source ./tokens.json \
--destination ./themes \
--platform vanilla-extract \
--name my-themeThis will generate a my-theme.css.ts file in the ./themes directory. You can also generate plain CSS modules by using the css platform. For more options refer to the CLI Reference or run npx fusion generate theme --help.
Last updated on