Skip to main content

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.

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.


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


+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.


Reply