Skip to main content
Question

How can I add a gradient as variable in the new June 2023 update?

  • June 23, 2023
  • 12 replies
  • 9143 views

Ahmed_Dawoud

Before i can add create the gradients to use it as a tokens but after the new update I couldn’t m, there’s any way to do this?

This topic has been closed for replies.

12 replies

Kenneth_Kammersgaard

I am pretty sure you cannot add gradients, it is only a single value in variables.


Ahmed_Dawoud
  • Author
  • 2 replies
  • June 23, 2023

Hi, but my app primary branding color is a gradient. So it’s used a lot with different variations.


Kenneth_Kammersgaard

Yes, then I believe you have to keep using Styles. I am not sure, why they have introduced a color variable and not just using a string variable that could be used to set the color in a style. So there is not two different ways of handling colors. But there is probably a good reason 🙂


Ahmed_Dawoud
  • Author
  • 2 replies
  • June 23, 2023

Thanks for your kind feedback. And I hope figma add this soon.


Mark_Kremer
  • 2 replies
  • June 29, 2023

I would like to have this functionality ASAP - allowing color variables to be gradients.


Corey_O_Brien
  • Active Member
  • 65 replies
  • July 13, 2023

Same here. We use gradients all the time in our designs. Not having them as part of the variable system isn’t good.


Jane_Seneor
  • 5 replies
  • July 25, 2023

Yep we need gradients in variable too!


Armas_Nurbahari

Still no update for this?


Corey_O_Brien
  • Active Member
  • 65 replies
  • October 2, 2023

They added some other new things around scoping the variables recently but still haven’t completely fixed the variables to work with gradients and to work with type styles. 😦


Gyongy
  • 2 replies
  • October 18, 2023

Here is a solution using variables that mimics gradients: https://www.figma.com/community/file/1295349493892095561/gradients-with-variables


Corey_O_Brien
  • Active Member
  • 65 replies
  • November 2, 2023

Neat idea. Works well for a file with few gradients. Thanks for sharing.


Gyongy1
  • 3 replies
  • November 3, 2023

Thanks, Corey! I’m happy that it works fine for you. I appreciate the feedback! 🙂