Currently, when exporting Design Tokens from Figma to Telerik ThemeBuilder, Figma's "Code Syntax" custom naming is respected for Color variables, but completely ignored for Number / Metric variables (both primitives and aliases).
Even though the ThemeBuilder Figma plugin clearly detects and displays the defined Code Syntax names during export (e.g., --sys-test-radius-alias and --ref-radius-prim), ThemeBuilder discards them upon import and falls back to the raw Figma variable names ($test-radius-alias and $test-radius-prim).
This issue occurs in two scenarios:
Single-library setup (Confirmed via isolated test):
Figma Variable name: test-radius-prim (value: 6) → Code Syntax: --ref-radius-prim
Figma Variable name: test-radius-alias (alias to test-radius-prim) → Code Syntax: --sys-test-radius-alias
Result in ThemeBuilder: Imported as $test-radius-prim and $test-radius-alias instead of $ref-radius-prim and $sys-test-radius-alias.
Multi-library setup (Production Design System):
When a semantic token in Library A (e.g., radius-lg with Code Syntax --sys-radius-lg) aliases a primitive token from Library B (e.g., radius-12 with Code Syntax --ref-radius-12), ThemeBuilder imports both with their raw Figma names ($radius-lg referencing $radius-12) instead of their Code Syntax names ($sys-radius-lg referencing $ref-radius-12). Notably, if the primitive token was also imported directly, a duplicate with the expected prefix ($ref-radius-12) appears alongside the unprefixed $radius-12 referenced by the alias.
Describe the solution you'd like
Align the import behavior of Number / Metric variables with Color variables: when a Figma variable (primitive or alias, within the same library or across linked libraries) has a Code Syntax defined, ThemeBuilder should use that Code Syntax name (converted to ThemeBuilder's $ variable syntax) as the primary token name instead of the default Figma variable name.
Why is this important?
In mature Design Systems, Figma variable names are organized for designers (using folders/slashes or short UI-friendly names), while Figma Code Syntax is the industry-standard single source of truth for developer-facing token naming conventions (e.g., distinguishing primitive $ref-* tokens from semantic $sys-* tokens). Moreover, multi-library architectures (separating Core/Primitives from Semantic/Component libraries) are standard practice in Figma. Without Code Syntax support for Number/Metric tokens, teams cannot maintain consistent token naming across colors and metrics, causing major governance and maintenance overhead in ThemeBuilder.
Attachments
Screenshot 1 (My Metrics.png): Multi-library issue in ThemeBuilder showing $radius-lg referencing $radius-12 instead of $sys-radius-lg and $ref-radius-12.
Screenshot 2 (Pasted Graphic 1.png): Isolated single-library test in Figma Variables (test-radius-alias -> test-radius-prim).
Screenshot 3 (Pasted Graphic.png): ThemeBuilder Figma plugin properly reading the Code Syntax names (--sys-test-radius-alias, --ref-radius-prim).
Screenshot 4 (Pasted Graphic 3.png): ThemeBuilder "My Metrics" panel ignoring the Code Syntax and displaying $test-radius-prim and $test-radius-alias.