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
I think it's pretty obvious what I am trying to achieve here - to retrieve specific scss variable value which name is constructed "dynamically" by joining $ and string. Unfortunatelly this doesn't work. Since there is a function "global-variable-exists" that accepts argument as a string, I figure it should be somehow possible - at least to have some built in function "get-variable-value".
Thank you for any help!
The text was updated successfully, but these errors were encountered:
It's not possible to dynamically call a variable, but it is possible to dynamically call map keys. Sass maps were added to handle this use-case. Something like this:
I spent some time looking, but couldn't find any help, so I hope this issue is not duplicity and also has solution. :-)
Not sure how to properly explain this, so I will go with an example. Let's say I want to do this:
I think it's pretty obvious what I am trying to achieve here - to retrieve specific scss variable value which name is constructed "dynamically" by joining $ and string. Unfortunatelly this doesn't work. Since there is a function "global-variable-exists" that accepts argument as a string, I figure it should be somehow possible - at least to have some built in function "get-variable-value".
Thank you for any help!
The text was updated successfully, but these errors were encountered: