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

Remove dependency between the Figma frame name and its corresponding token type #66

Open
izm20 opened this issue May 30, 2024 · 0 comments

Comments

@izm20
Copy link

izm20 commented May 30, 2024

We can decouple the dependency between the Figma frame name and its corresponding token type to enhance the configuration file. Currently, the Figma frame must be named exactly as the token we want to parse.

For example, the current configuration looks like this:

"figmaPages": {
  "Design Tokens": [
    "Colors",
    "Typography",
    "Spacings"
  ]
}

I propose modifying the configuration to use an array of objects that map the frame names to their respective token types. This approach provides more flexibility and clarity:

"figmaPages": {
  "Design Tokens": [
    {
      "frameName": "Colors",
      "tokenType": "Colors"
    },
    {
      "frameName": "Typography",
      "tokenType": "Typography"
    },
    {
      "frameName": "Spacings",
      "tokenType": "Spacings"
    }
  ]
}

This change will allow us to explicitly define the relationship between frame names and token types, making the configuration more intuitive and reducing potential errors caused by naming dependencies.

@izm20 izm20 changed the title Remove Figma Frame name - Token Type dependency Remove dependency between the Figma frame name and its corresponding token type May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants