Skip to main content
Equinusocio
June 22, 2023

Add way to change opacity for color variables alias, fills, strokes, etc

  • June 22, 2023
  • 158 replies
  • 17889 views

When aliasing a color variable to another (img 1), or using it directly on an element (img 2), we should be able to override the opacity without the need to create a variable for each transparency variation:

Cant override opacity in the alias:

CleanShot 2023-06-22 at 10.09.00

Example 2

Cant override the fill opacity:

158 replies

Equinusocio
December 7, 2023

You can simplify the code by using transparent as starting color so you don’t have to do the calculation:

/* Return a 70% transparent red */
color: color-mix(in oklab, transparent, red 70%)
Equinusocio
December 7, 2023

Also this is basically useless since we can’t set opacity for the shadow color once you set the variable…🤦
CleanShot 2023-12-07 at 11.00.17

Hampus_Svallfors
December 8, 2023

Agreeing with @Equinusocio, this does not work for me.

Zlatko
Active Member
December 14, 2023

Curious how in the video these variables are accessed. I‘m clicking where the person in the video clicks, but I don‘t get the option to bind it to a variable.

Maker of kinverse.app
Martin_Mateos_Sanchez
December 14, 2023

+1 to this! I’ve been struggling with this a lot. The layer workaround in the Tweet is enough for me for now, but directly applying the opacity to a variable referenced by a token would be much better. Hope to see it soon 🙂

Equinusocio
December 14, 2023

Right click on the field. Really subtle. Sometime there is the icon, sometime you have to right click (on textfields). Really bad UI decisions lately.

Zlatko
Active Member
December 14, 2023

Oh, I see. I hope this is a temporary solution because variables are in beta, and they‘ll make it more intuitive after the official launch.

Maker of kinverse.app
December 20, 2023

You can also shift + left click the field to go straight to the variables, this works on other variable fields too such as border radius, height etc. Not intuitive but a handy shortcut

Franni
New Participant
January 25, 2024

Replying because I CANNOT believe this is still not possible… How hard is it to implement this much needed feature?

James_Walsh
New Participant
January 30, 2024

Oversights like this make using variables awkward and lead to bad practice when time is tight.

It’s a similar issue to not being able to just apply “bold” or another formatting override to a text style (especially inside a text block!)

It’s adding blockers to a system that’s meant to make everyone’s job easier.

Having to add a seperate variable for every 10 opacity is working harder, not smarter.