Hi, we a currently try to get more into tokens (Variables), I attached some structuring and like you can see, we`ve got 4 Brand with light and dark mode.
To sync our tokens with the Dev team, they said they need a bether naming, like "brand-x.theme.component....".
The Brand and theming are in the Varibales Modes are the Modes linked to the tokens somehow? To identify, which brand and theme is used when for example exporting the token to the dev team?
#Naming from tokens
4 messages · Page 1 of 1 (latest)
How are you doing the exporting?
Propably via REST API
Hmm okay, looking at the documentation it does look like you get the modes back with the data, https://www.figma.com/developers/api#get-local-variables-endpoint
So it should be fairly straightforward for them to convert the response from the API and prefix the variable names with whatever they want based on which mode it is
Figma