Skip to main content

Nesting of variables


Sandeepmaurya

Is there any scope for nested variables?

For example:
I have variables for following colour codes.
#purple50
#purple100
#purple500

Now, I want to create another variable for primary button’s background color
#background-primary = #purple500

By doing so my other team members don’t have to remember the #purple500 is to be used primary backgound color. Also maintaining making a change would be easier.

This topic has been closed for comments

3 replies

Equinusocio

You can alias a variable value to another variable:

Just click the Libraries tab when changing the color


Sandeepmaurya

Got it! It is here.


  • 0 replies
  • September 20, 2023

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings