amzn / style-dictionary

A build system for creating cross-platform styles.
https://styledictionary.com
Apache License 2.0
3.87k stars 543 forks source link

Build names only the lowest level in object after transofm using build.js #989

Closed johannesdz closed 1 year ago

johannesdz commented 1 year ago

Hi!

as soon as i apply a transforms with registerTransform, my token names do not respect the specified format anymore.

Desired output: $core-color-neutral-grey: rgba(18, 18, 18, 0.74); $core-color-neutral-blue: rgba(18, 18, 18, 0.93);

Actual output: $grey: rgba(18, 18, 18, 0.74); $blue: rgba(18, 18, 18, 0.93);

Do you have any suggestion on this?

Baribj commented 1 year ago

paste the code, I am positive you are forgetting to add the name/cti/kebab transform

johannesdz commented 1 year ago

ok thanks! i was assuming it will take default transformations and overwrite with additional custom format.