-
Notifications
You must be signed in to change notification settings - Fork 575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Combining base and palette #1217
Comments
Ignore me. I could just be but more verbose and do this. "black": { "value": "#000000", "type": "color" },
"black-100": { "value": "#1A1A1A", "type": "color" }, |
Yeah the reason why SD was stripping out the nested tokens is because the parent one is considered a token already, and cannot simultaneously be a token group with nested tokens inside it. Indeed your workaround works, or: {
"color": {
"black": {
"_": { "value": "#000000" },
"100": { "value": "#1A1A1A" }
}
}
} Since special characters like _ are considered separator characters by the various name transforms like name/kebab or name/camel, so even though the path is |
Holy shit I just realized we can solve: tokens-studio/sd-transforms#128 in Style Dictionary using this trick 🤯 |
Hello!
This might already be possible but I can't seem to get it to work. What it'd like to do is something like this.
Which in turn I'd like to end up as (css variable example).
But what ends up happening is
sd
stripping out all my palette colors and only keeping the root black one e.g.What am I missing?
Thank you!
The text was updated successfully, but these errors were encountered: