Skip to content

Keys

Key name transformation strategy.

Options

  • Default: SAFE
  • Values:
    • SAFE - Preserve structure without corrupting special characters
    • CAMEL - camelCase
    • SNAKE - snake_case
    • KEBAB - kebab-case
    • PASCAL - PascalCase
    • TRAIN - Train-Case

Comparison

Input: Background color or background-color

FormatResult
SAFEBackground color (preserved)
CAMELbackgroundColor
SNAKEbackground_color
KEBABbackground-color
PASCALBackgroundColor
TRAINBackground-Color

Path

config.format.keys

Example

config:
format:
keys: CAMEL # Transform keys to camelCase

Every value other than SAFE is a lossy projection of the Figma name. Names that cannot be reconstructed from the formatted key are preserved in $extensions.com.figma.name on the definition, so the spec stays reversible into Figma.

See Also

  • Figma Keys - The convention your Figma file uses, and the target keys reverse into
  • Key Formatting guide - Detailed formatting behavior and edge cases