Skip to main content

Detaching variable should first revert to alias, then to hex code


owen5
  • New Participant
  • 8 replies

I have set up a design system with a core color ramp of 10-step color ramps, for example, blue-1 to blue-10.

I then assigned those steps as aliases to semantic variables that I use to define the states of various components. For example, I create a semantic variable for button-hover, and assign blue-6 as an alias.

I would like to be able to detach one of my semantic variables, but preserve the alias. So when detaching the color variant ‘button-hover’, the variant reverts to ‘blue-6’. rather than the hex code Then if necessary I can detach again to revert to the hex.

Current behavior:

  1. Detach variable with alias from layer
  2. Layer reverts to the hex code

Desired behavior:

  1. Detach variable with alias from layer
  2. Layer reverts to alias variable
  3. Detach alias from layer
  4. Layer reverts to hex code
This topic has been closed for replies.

2 replies

anoldasgupta

Completely agree with you… otherwise what’s the point of creating alias at first place…

Alias name should come first then the hex code.


  • 0 replies
  • November 1, 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