Skip to main content
Baldur_Helgason
Mar 29, 2022 4:00 PM UTC

Creating gradients based on color styles

Is there any way to use a “Color Style” in a gradient? I know I can make a “Color Style” that is a gradient, but I want to create a solid color that can be used both in solid fills and gradient fills.

34 replies

jan.weigel
Apr 14, 2023 12:40 PM UTC

I’m very surprised too that gradients based on color styles are still not implemented.
Every time we change a style color we have to go through hundreds of gradients manually to change them. This is such a no-go for a professional tool and I really hope this is going to be implemented soon.

Kemie_g
New Member
Apr 26, 2023 7:18 AM UTC

Would be great to implement this. It would solve the problem of gradient colors not being able to be editable globally and also make the initial selection much easier

Recep_Kutuk
New Participant
Jun 21, 2023 7:54 PM UTC

The color picker is in even a worse situation considering this request. The predefined color styles are hidden under the “library” tab with the latest update, and are unavailable when applying a gradient. So, let’s say you want to create a gradient that’s made of two color styles, you first have to create two rectangles filled with the desired colors in your design system and you have to use the color picker on these rectangles to create your gradient.

Since Figma is now focusing on the developers side, I will try to define what’s needed, in terms of CSS (and a little bit of SCSS)

:root {
  --color-1: #ff0000;
  --color-2: #0000ff;
}

Let’s say these are the colors in our design system. everything else will be defined by these variables and will automatically change when these values change.

.foo {
  background: linear-gradient(to bottom, var(--color-1), rgba(var(--color-2), 0.5));
}

Which should look like:
image

And in the color picker,

  • if we want to use a custom color it can be like this:

  • if we want to use a color style from the library, it can be like this:

Please think about this 🥺

woodywoodsta
Sep 15, 2023 9:24 AM UTC

Keeping this alive because I thought this would be a fairly obvious feature.

Frederic_Giroux
New Participant
Sep 25, 2023 7:24 PM UTC

Any updates regarding this topic from Figma? I agree this is quite hard maintaining for design systems, where you need to create a lot of unnecessary styles just to have them as gradients.

Love the idea @Recep_Kutuk mocked up!

Oct 10, 2023 9:42 AM UTC

This is a must-have feature. Please implement it.

daken
Active Member
Oct 20, 2023 7:57 AM UTC

any updates?

daken
Active Member
Oct 20, 2023 8:09 AM UTC

this good. ✋

Kaitlyn_Hova1
Oct 29, 2023 5:25 PM UTC

Hey all what is the status of this? Something like what @Recep_Kutuk suggested back in Jun 21 would be rad.

Clark
Nov 1, 2023 8:59 PM UTC

Yes please add this feature! This is literally a flaw in an otherwise well designed system.