Currently, when importing design tokens from Figma into Telerik ThemeBuilder (via the Figma plugin), color variables that use Figma's native ability to combine a referenced color token (primitive/alias) with a custom opacity percentage fail to resolve properly.
Instead of calculating and exporting a valid RGBA or 8-digit HEX value, ThemeBuilder generates a broken, unusable token resolving to #NaNNaNNaN. Attempting to assign or use this token triggers a CSS syntax error in the ThemeBuilder UI:
"Invalid value forbackground-colorproperty. Mismatch syntax:<color>value: #NaNNaNNaN. Check the "background-color" property of your recently edited styles!"
Steps to reproduce / Current Figma Setup
In Figma Variables, create a primitive color token (e.g., Palettes/Neutral/15).
Create a semantic/alias color token (e.g., border-neutral or border-interactive).
Map this semantic token to the primitive color (Palettes/Neutral/15) AND apply an opacity modifier directly in Figma's variable value field (e.g., 12% or 44% — see attached Figma screenshot).
Export/Sync the variables to Telerik ThemeBuilder.
The resulting token in ThemeBuilder is corrupted (#NaNNaNNaN) and throws a mismatch syntax error when applied to a component property.
Describe the solution you'd like
Update the ThemeBuilder Figma plugin and/or ThemeBuilder's token parser so that it properly interprets Figma's composite variable syntax (Color Reference + Opacity %). Upon import, ThemeBuilder should resolve the underlying hex value of the referenced token and apply the specified alpha channel (e.g., outputting a valid rgba(...) or #RRGGBBAA value).
Why is this important?
Figma recently introduced the ability to apply opacity modifiers directly onto referenced color variables, which is now a standard best practice for building scalable Design Systems (avoiding the duplication of primitive palettes for every transparency level). Supporting this in ThemeBuilder would allow teams to maintain Figma as their single source of truth for all color tokens—both opaque and semi-transparent—without needing manual workarounds or overrides inside ThemeBuilder.
Attachments
Screenshot 1: Figma Variables setup showing a semantic token mapped to Palettes/Neutral/15 with 12% and 44% opacity modifiers.
Screenshot 2: ThemeBuilder error toast displaying Mismatch syntax: <color> value: #NaNNaNNaN.