Config

The Terrazzo CLI needs a terrazzo.config.js file in your project root for most tasks. Here’s an example file, with all defaults:

import css from "@terrazzo/plugin-css";

/** @type {import("@terrazzo/cli").Config} */
export default {
  tokens: ["./tokens.json"],
  outDir: "./tokens/",
  plugins: [css()],
  build: {
    cleanDir: false,
  },
};

Linting

See Linting.

All Options

NameTypeDescription
tokensstring | string[]The path to your tokens. Can be one file (string), or multiple (string[]).
outDirstringThe directory for output (Tip: add this to .gitignore).
pluginsPlugin[]An array of plugins to use.
lintLintOptionsSee Linting.