CLI configuration
Three fields define the Toucan build and ejection root.
toucan.config.json
{
"tokens": "./tokens",
"outDir": "./components/toucan",
"reset": false
}Fields
tokens— optional path to a custom DTCG token root containing raw, alias, and system directories. Omit it for the built-in preset.outDir— local root for ejected groups and generated_toucanassets. Defaults to./components/toucan.reset— include Toucan's base reset in generated CSS. Defaults tofalse.
File formats and precedence
The CLI discovers toucan.config.json, .js, .mjs, then.ts. Command flags override config values. Prefer JSON unless executable configuration is genuinely useful; it is the format toucan init can safely update.