You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm having issues to get lower levels, e.g. of a color parsed and transformed.
I couldn't find any doc of a configuration to switch this behaviour on/off.
Here is an example: There is parent purple color value (+ a light and dark subcolor). For comparison, blue does not have a color on parent level, but only light and dark subcolors.
Purple as parent color is exported, but not the subcolors. Whereas, blue has the subcolors (as there was no parent color present).
Expected bahavior from my end would be to have purple parent color and purple subcolors.
I was using style dictionary via CLI version 3.7.0
The tokens.json is originally a figma export (https://github.com/lukasoppermann/design-tokens) but I don't expect the .json file to be the issue as even the super simplified example version doesn't produce expected results.
In the option tokens (wikimedia-ui.json), font-family.sans is an object
containing several tokens. But in the decision tokens
(application.json), font-family.sans is a single token. When these two
are merged together, it triggers a bug in Style Dictionary where keys
that have both a value and subkeys are not handled correctly, see
amzn/style-dictionary#797 .
To work around this bug, un-nest the font-family.sans object, renaming
the nested tokens from font-family-sans.NNN to font-family.sans-NNN. Do
the same with font-family.serif and font-family.monospace.
Change-Id: I1de831d97a3733fa30b30f69c3b85ccee21a856b
Hi,
I'm having issues to get lower levels, e.g. of a color parsed and transformed.
I couldn't find any doc of a configuration to switch this behaviour on/off.
Here is an example: There is parent purple color value (+ a light and dark subcolor). For comparison, blue does not have a color on parent level, but only light and dark subcolors.
tokens.json
My export is the following:
color.scss
Purple as parent color is exported, but not the subcolors. Whereas, blue has the subcolors (as there was no parent color present).
Expected bahavior from my end would be to have purple parent color and purple subcolors.
I was using style dictionary via CLI version 3.7.0
The tokens.json is originally a figma export (https://github.com/lukasoppermann/design-tokens) but I don't expect the .json file to be the issue as even the super simplified example version doesn't produce expected results.
For completeness, config was super simple:
Any help how to circumvent or configure properly this would be appreciated.
Thanks a lot :)
The text was updated successfully, but these errors were encountered: