tokens-studio / figma-plugin

Official repository of the plugin 'Tokens Studio for Figma' (Figma Tokens)
https://www.figma.com/community/plugin/843461159747178978
MIT License
1.32k stars 190 forks source link

AUTO Value is Created as '0' in Variables #2916

Open keeganedwin opened 1 week ago

keeganedwin commented 1 week ago

Describe the bug When creating variables of tokens that use AUTO as a value like in Spacing and lineHeight, the plugin creates them as 0 since variables don't support AUTO as a value. The problem arises when users are trying to bind the AUTO value to text styles but since variables don't support the value it instead applies the 0.

To Reproduce Steps to reproduce the behavior:

  1. Create tokens in spacing and lineHeight with AUTO as the value
  2. Create variables of these tokens
  3. See error

Expected behavior Not sure if the solution is straightforward since variables do not support AUTO. Will need @six7 input on this.

Screenshots or Screencasts https://github.com/tokens-studio/figma-plugin/assets/93133012/d0c7b208-5c75-4c6a-b001-02f7d59d580b