-
Notifications
You must be signed in to change notification settings - Fork 117
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
Nested alias values #192
Comments
Hi @hmalaud, did you ever find out if nesting aliases / props is possible? I'm hoping to accomplish something like the following: props:
color:
border:
button:
value: "#000"
background:
button:
value: "#FFF" Which would generate the following Sass variables: $color-border-button: #000 !default;
$color-background-button: #FFF !default; |
Hello @dayton-bobbitt , unfortunately I wasn't able to make it work this so I forked the project and made something that was working for me back then: https://github.com/hmalaud/theo. I wanted something like this to be loopable, so I'm not sure this is exactly what you're looking for:
I can't promise it will work for you, but when I tried it 3/4 months ago, it was still working with the latest updates from theo! 🤞🏻 |
Thanks @hmalaud! I'm currently exploring tools we can use to generate design tokens with cross-platform support, so I definitely keep this in mind. |
I was wondering if there were any way to use an alias with sub values like so (in a .yml file):
This seems not to crash anything when compiling, but I can't figure out how to use the value, if it even exists (tried
{!mq.touch}, {!mqtouch}, {!mq-touch}, {!mq_touch}
with no success).Thanks for your help!
The text was updated successfully, but these errors were encountered: