Skip to main content

When using Variables as a value, need more control


Ben_Ho

I have a color variable color-blue-400 that maps to color-hover-primary with 20% opacity. Meaning that color-hover-primary: color-blue-400 20% I am loving the Variables but it needs to give us more control on how we use that Variables as a value.

For now, I am breaking it from the Variable and just using RGBA. color-hover-primary: rgba(xx,xx,xx, .2) which needs manual update if there is any change to the color-blue-400.

This topic has been closed for replies.

2 replies

Ryan_Kimball

Definitely need something like this. Many Material Design components require “state layers” that are variations of their theme colors at 8%, 12%, and 16%. The way things work right now, updating the base theme colors would require manually changing almost 300 color variables because there is no way to link the hex values to an alpha variation.


  • 0 replies
  • October 29, 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