salamaashoush/design-sync

CLI token generation

Closed this issue · 2 comments

While doing the token sync there may be an issue where it would name the style names incorrectly, like its only taking the last 3 elements, making the naming of the 2 attached images as monospaceBaseRegular, thus breaking on the const exports
image (1)
image

I released a new version with the ability to use a custom function to generate a style name, here is an example of how you could use it

image

for more flexibility styleName now has the full token as first parameter so you can use more info to decide the style name