Figma Support Forum

Use styles in other styles

Problem
Currently you can’t use color styles in other styles like grid or effect styles.
However this is very helpful for building design systems. Otherwise when changing a color that is used in effect styles you have to manually change it in all effect styles (which is a lot of work and can lead to bugs by forgetting it).

Solution
One possible solution would be to allow us to use color styles within the other styles.

Am I the only person who feels this pain or do others run into this as well?

8 Likes

If I’m reading this right, you mean something like color styles based on other color styles right? If so, I’m all for it. Something similar to Sketch’s color variables would be immensely helpful.

Oftentimes I set my color styles to have regular names assigned to the initial color color set (primary blue, primary yellow, secondary black, etc…). Then I have color styles set to specific UI elements such as text (text-heading, text-body, text-link) that are based on the main colors. But you have to create a separate color style; which make updating/changing colors in the future very time-consuming and error-prone.

Color variables would allow us to create a main style of colors and then create other granular styles more efficiently.

2 Likes

Being able to create tints and shades without having to create a brand new color style would be amazing as well.

2 Likes

Exactly, that is a very common case. So is creating shadows with your color variables.

1 Like

Title says it all really.

By having a default color, and adding a white or black opacity layer over it, shades and tints can be generated. Nesting color styles would allow users to quickly change every tint/shade used in their file from one color swap.

1 Like

I feel like this could work more easily if you could apply multiple fill styles to an element. but definitely agree. you should also be able to access colour styles from the selection window too.

My use case would be theming. Being able to nest colors into semantic containers would be really helpful to having a single source of truth for base colors while maintaining actual color name definitions used in code (Android in this case).

3 Likes

Yes, exactly the same here. Would be such a great feature!

2 Likes

We’ve been looking at Figma Tokens as a possibility but like others are concerned about relying on a plug-in for Production work in our Design System. Having the ability to have styles drive other styles would better match our user’s workflow, to have a baseline set of say brand colors, that drive myriad usage colors, that would automagically change at least the hex value (leaving other styles like say opacity for a modal set the same) if one from the brand was updated. The mapping is something that’s necessary for light/dark mode as well as theme switching from one brand to another. Does Figma have any plans to add this to the roadmap in 2021?