Unplanned
Last Updated: 18 Nov 2026 08:01 by ADMIN
Olivier
Created on: 16 Nov 2026 22:47
Type: Bug Report
1
Support Figma "Code Syntax" naming for Number/Metric variables (primitives and aliases, single and multi-library) upon import

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:

  1. 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.

  2. 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.

1 comment
ADMIN
Nick Iliev
Posted on: 18 Nov 2026 08:01

Hello Olivier,

 

 

Thank you for the detailed report and the isolated test case.

We confirmed this is a bug in the ThemeBuilder Figma plugin. It is not specific to Number variables: the Code Syntax name is currently applied only when another naming change happens during export (for example an export prefix, a selected group prefix, or a name that ThemeBuilder had to normalize). Color palettes often trigger this, which is why it seemed to work for colors.

Until it is fixed, you can work around it: in the plugin's "Generate names" step, select any group-prefix checkbox before continuing. The Code Syntax names will then be used for all variables in that export. Variables that were already imported keep their current names, so please delete them in ThemeBuilder and export them again.

Support for Code Syntax across multiple linked libraries is a separate topic that we will evaluate independently (currently not supported by design). We have logged the issue for our team and we will update this item when we have more information.

 

Regards,
Nick Iliev
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.