tokens-studio/figma-plugin

Inconsistent behavior when using theme groups vs when not using theme groups

Opened this issue · 1 comments

Describe the bug
When exporting tokens to variables, the background color for Theme B incorrectly displays the primary color from Theme A if theme groups are not used. This inconsistency happens when switching between themes without theme groups applied.

To Reproduce
Steps to reproduce the behavior:

  1. Create two themes:
  2. Theme A: Primary color = blue
  3. Theme B: Primary color = orange
    4.Apply the background color using the "color.primary" token for both themes.
    5.Export tokens to Figma variables.
    6.Check the background color in Figma for both themes.

Expected behavior
Theme B should display its primary color (orange).
Actual behavior
Theme B shows the primary color of Theme A (blue).

Screenshots or Screen Recording

Screen.Recording.2024-10-25.at.14.19.02.mov

The OP for this manages 18 brands and can't use theme groups or they will be locked into only 4 brands.

The expected behaviour is the values in the tokens are consistent when exported to Figma variables if using theme groups or not.