Skip to main content

Ignore variable group names?


Philip_Meander

When creating tokens and working with variables Dev Mode generates code where the group name is included as part of the token name. Currently this doesn’t make too much sense (for me at least) and in Figmas own variables tutorial it would result in spacing tokens being called “SpacingSpacing-sm” if you would look at the tokens in Dev Mode.

Can we please get an option to exclude the group names from the generated code? The groups as I seem them are for organising and not necessarily something we want to automatically include in the token name.

Semantics are important for tokens so if I have to leave out part of the name and only have it as part of a group name it makes reading the token and using it correctly in Figma so much harder.

Definitely interested in hearing others experience regarding this! Maybe i missed something or should rethink our structure.

5 replies

Philip_Meander

Creating your own syntax was one solution that solved this for me, if someone else has similar issue 😀 . Would still be nice with that option though.


y_toku
Figmate
  • Community Support
  • 2518 replies
  • February 13, 2024

Hi there,

Thank you for sharing your idea! We greatly value your feedback, and we would like to gauge the reaction of other members in the community. We may consider it for future enhancements!

Thanks,
Toku


Kurt_Walsh

+1 to this. It’s not a fantastic separation of concerns, particularly for consumers who want to separate the token name, from how we organise/classify them.

Would love to see an option where the file path can be excluded from the name of the token, as not all token systems are represented in nested JSON environments.


Thibault SABOUREAU

Hello, i’d like to give another +1 to this topic. Having to choose between not organizing your variables in figma or not choosing the semantics of your variables is realy frustrating.


Ronald Raharjo

+1, we are facing this issue now where we need the group name to organise the growing tokens, but devs don’t need them as part of their naming convention because they are superflous.

I have dozens of status colour tokens all grouped under Status. When exported the name for example becomes: --status-status-critical. We just want to remove the prefix group name of ‘status’. But we need to retain the real name ‘status-critical’ so our designers can find the right tokens when using the Figma Property panels.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings