Tokens
Token reference format profile.
Options
- Default:
TOKEN - Values:
TOKEN- Resolved token values with collection/name referencesTOKEN_NAME- Token name only (no collection prefix)TOKEN_FIGMA_EXTENSIONS- Token with Figma-specific extension dataFIGMA_NAME- Raw Figma variable/style names as-isCUSTOM- Custom token objects injected viaapplyCustomTokens. Variables/styles with$customuse that object verbatim as the property value; those without fall back toTOKEN_FIGMA_EXTENSIONSformat.
Using CUSTOM: First run
specs applyCustomTokens <mapping>to inject$customobjects into your fetched data files, then runbatchorgenerate. TheapplyCustomTokenscommand auto-discovers variables/styles files fromdataDirectoryandsourcesin this config, or accepts explicit-v/-spaths. See applyCustomTokens command for details.
Path
config.format.tokens
Example
config: format: tokens: TOKEN # Default resolved token referencesSee Also
- Token Format guide - Detailed format comparisons and examples