Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
keeganedwin opened this issue Jun 24, 2024 · 2 comments
Open

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

keeganedwin opened this issue Jun 24, 2024 · 2 comments
Labels
bug Something isn't working Figma export Previously create and sync styles variables Figma variables needs-responder plugin v2 variables, UI, WTCG format, Bitbucket token type spacing TS legacy token type

Comments

@keeganedwin
Copy link
Collaborator

keeganedwin commented Jun 24, 2024

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
We should skip tokens that have AUTO as the value as we cannot create them as the proper variables

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

@keeganedwin keeganedwin added bug Something isn't working Figma variables token type spacing TS legacy token type plugin v2 variables, UI, WTCG format, Bitbucket labels Jun 24, 2024
@SamIam4Hyma
Copy link
Collaborator

@cuserox tagging you here incase this is related to the work on exporting other items at 0. the AUTO value should be a skipped token on export, it was listed in the dev docs for this @six7 went over in the call.

@SamIam4Hyma SamIam4Hyma added the Figma export Previously create and sync styles variables label Aug 5, 2024
@six7
Copy link
Collaborator

six7 commented Nov 18, 2024

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

We should skip tokens that have AUTO as the value as we cannot create them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Figma export Previously create and sync styles variables Figma variables needs-responder plugin v2 variables, UI, WTCG format, Bitbucket token type spacing TS legacy token type
Projects
Status: 📥 Triage
Development

No branches or pull requests

4 participants