Skip to main content
bart13
New Participant
June 22, 2023

Variables: Color alias with alpha / opacity (rgba ideally)

  • June 22, 2023
  • 113 replies
  • 13892 views

hey there!

variables seems to be super nice but what i am missing is that if i make a colour alias to a specific collection - i can’t set the opacity separately (e.g. colour 50 with 20% opacity)

So basically i want the colouyr to be from another collection and i want to set the alpha seperatly (controlled as rgba - since i dont need it as opacity)

Example how we can fix this in token studio:
image

So what i want is that i can set blue/5 and then the opacity (which i dont want to capture in another colour variable)


Now its only possible if i break the link with gray/75 - and then i loose the reference to that colour

113 replies

Grigoriy2
August 26, 2024

It’s fucking necessary!

pterisaur
New Participant
August 29, 2024

Sooo needed. We’re now adding color themes to our library, and there’s no way to apply semi-transparent shades of the theme colors in our UI.

mattaningram
New Participant
August 29, 2024

This has been a feature request for years now. I have spoken to people at Figma about it, they are well aware it is a highly desired feature. I think they don’t want to do it because they think it will confuse users.

Probably not gonna happen until a design tool comes along that doesn’t actively hold back its users.

yu-mi
September 2, 2024

Can we get some confirmation whether this is actually happening? its been highly requested for so long, Figma are definitely aware of it yet releases seem to tackle everything BUT this.

Just tell me whether its going to be done or not so I can modify my whole design system or pay for a external license for something like Tokens Studio.

Andy33
New Participant
September 9, 2024

Stumbling again upon this … so frustrating.

rahend
Active Member
September 12, 2024

image

Hey Figma,

I wanted to share an idea that could make managing colors in Figma a bit easier. Right now, each color variable handles both the hex value and opacity together. What if we could separate them into two variables—one for color and one for opacity?

Why?

  • Cleaner Palettes: You’d have a pure color palette without the opacity mixed in, and a separate set of opacity variables. This keeps your color palette simple and organized.
  • Easier Alpha Combinations: Want to create a color with different opacities? Just mix the color variable with an opacity variable, no need to manually create new color versions with alpha values.
  • Less Redundancy: By separating these, you avoid duplicating colors just to achieve different opacities, making it easier to maintain and update.

This separation could make our design workflows more flexible and efficient. What do you think? Would this be useful for you too?

Looking forward to hearing your thoughts!

Trevor_Dupp
September 23, 2024

Hello Figma! - Its slightly disheartening to see this suggestion languishing since June 23. 😦

The option to separate out alpha variables will open up a lot of potential. For example I want to create a Global Shadow style pack that I can utilize in builds that will allow you to adjust the color of the shadows using variables.

To make nice shadows it requires utilizing many layers, it would be great to change one variable to apply to this shadow style to change all 5 Drop Shadow layers will maintaining their set opacities


Dmitry_Boremsky
October 1, 2024

+1 Yes, please! Great idea, very powerful)!

Mea
New Member
October 8, 2024

+100 Please work to add this functionality as you currently have to either a) Create a NEW variable that is not an alias; or b) detach the variable completely, which totally defeats the purpose of using the variable. Both options work against the usability of variable-based design system.

Jeremy_Knudsen
Active Member
October 11, 2024

I am continually running into this problem!! What you can easily do in code (CSS) is not able to be done in Figma, and it really is an oversight—a huge disconnect for what is needed in a design-to-code tool. Figma forces me to either detach the variable alias so that I can supply an opacity value to the variable color (which then makes a hard-coded hex color that no longer connected to the variable alias); or I have to create more tokens that are completely unnecessary in code. Please address this. 🥺🙏 I run up against this so many times that it really does feel like a bug in the Figma Variables feature.