Examples
Development Config
Optimized for fast iteration:
# specs.config.yaml (development)
config: processing: variantDepth: 1 # Faster processing details: FULL # Complete data for debugging format: output: YAML # Human-readable keys: SAFE # Preserve Figma names include: invalidVariants: true # Show issues invalidCombinations: true
sources: library: key: REPLACE_WITH_LIBRARY_FILE_KEY data: ['file','variables','styles']Production Config
Optimized for production output:
# specs.config.yaml (production)
config: processing: variantDepth: 2 details: LAYERED # Compact output format: output: JSON # Machine-readable keys: CAMEL # Consistent naming include: invalidVariants: false # Clean output invalidCombinations: false # Omit combination analysis
dataDirectory: ./dataoutputDirectory: ./specs
sources: library: key: REPLACE_WITH_LIBRARY_FILE_KEY data: ['file','variables','styles']Custom Config Location
Use project-specific config:
# Use custom config for this projectspecs generate data/library.file.json \ -c "Button" \ --config ./configs/mobile.config.yaml \ -o specs/mobile/button.yamlOverride Config with Flags
Mix config file with CLI overrides:
config: format: output: YAML keys: SAFE
dataDirectory: ./dataoutputDirectory: ./specs
sources: library: key: REPLACE_WITH_LIBRARY_FILE_KEY data: ['file','variables','styles']# Override format and variables for this commandspecs generate data/library.file.json \ -c "Button" \ --format json \ --variables ./custom/vars.jsonResult: Uses json format and ./custom/vars.json, but other config settings (keys, etc.) from config file.
See Also
- Configuration Overview - Priority system and best practices
- CLI Workflows - Command-line workflow examples