Closed jack-bliss closed 5 months ago
Hello! This error is also relevant for me, is there any solution?
I've fixed this in Style Dictionary v4, transforms can now defer themselves until the next reference resolution cycle when the transformation relies on metadata properties that contain references https://v4.styledictionary.com/reference/hooks/transforms/#defer-transitive-transformation-manually
The latest sd-transforms package from Tokens Studio is using this feature for the color modifiers, so that should fix this problem in its entirety
Hello! First off, thanks so much for the package! Being able to write my own transforms has been very useful.
I tend to do my technical writing in bullet points because i find it easier to read, hope that's okay!
Context
style-dictionary
to parse tokens from Tokens Studio for Figma.The issue
color
property IS being resolved correctly for thesemantic.color.primary.base.hover
tokensemantic.color.surface.base.level-1
andsemantic.color.surface.base.level-2
tokensThings I have tried
base.color.primary.20
token correctly works - the property gets the correct valueDoes anyone have any ideas? I can ask my designers to use the
baase.color
tokens for this particular instance but it feels like a bit of a hacky solution since the problem might come back.