Skip to content

Tokens

Token reference format profile.

Options

  • Default: TOKEN
  • Values:
    • TOKEN - Resolved token values with collection/name references
    • TOKEN_NAME - Token name only (no collection prefix)
    • TOKEN_FIGMA_EXTENSIONS - Token with Figma-specific extension data
    • FIGMA_NAME - Raw Figma variable/style names as-is
    • CUSTOM - Custom token objects injected via applyCustomTokens. Variables/styles with $custom use that object verbatim as the property value; those without fall back to TOKEN_FIGMA_EXTENSIONS format.

Using CUSTOM: First run specs applyCustomTokens <mapping> to inject $custom objects into your fetched data files, then run batch or generate. The applyCustomTokens command auto-discovers variables/styles files from dataDirectory and sources in this config, or accepts explicit -v/-s paths. See applyCustomTokens command for details.

Path

config.format.tokens

Example

config:
format:
tokens: TOKEN # Default resolved token references

See Also