transform
Project component spec files into derived artifacts — contracts, styles, and token inventories.
Usage
specs transform [transformers...] [options]Arguments
[transformers...]
One or more transformer names to run. When omitted, uses config.transform.transformers from your config file, then falls back to the CLI default (contract).
specs transform contract css stylingOptions
-o, --output <path>
Override the output directory for generated artifacts.
--config <path>
Use a specific config file.
--verbose
Show detailed output during transformation.
Transformers
| Name | Output |
|---|---|
contract (default) | TypeScript Props interface and defaults per component |
css | CSS custom property rules per component |
styling | Token inventory per component |
See Also
- transform config — configure which transformers run by default
- tokens config — control how token references are serialized in spec output