Skip to main content

Different values for each corner in a variable


Moritz_Kuether

Work is already being done to adapt the system to Variables, but here and there certain things cannot yet be transferred. Some of our components have different corner radiuses. It would therefore be quite good to be able to create a number variable and in the case of a corner radius to be able to specify all 4 values.

This topic has been closed for comments

7 replies

Pavel_Kiselev

You can break border radius apart and assign different values for each corner


fernandolins_cs

Different varible values to each corner? How?


Pavel_Kiselev

The same way as you do it without variables. Click that icon to reveal individual corner values, start with “=“ and set whatever values you defined


Armin_Rouhanian

Yes, we can break the corner radius, but it would be much better if we could have it as an all-in-one variable. it would be handy if you want to create themes or change styles in one click instead of changing all corners for every style.

The variable feature is already helping us to create different themes (like for buttons, etc). this is some part of the big idea behind the variable, which can be useful.


fernandolins_cs

Click that icon to reveal individual corner values, start with “=“ and set whatever values you defined

Thanks, for some reason the = shortcut wasn’t working, now it is.


Maria_Cerase1

The trick to use the “=” shortcut only assigns a static value to that given corner, but if like me, you are planning to do a major overhaul of the design system appearance in the future, you want that value to be tied to a variable.


  • 0 replies
  • December 14, 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