Skip to main content
Lukas_Oppermann
January 29, 2021

Use styles in other styles

  • January 29, 2021
  • 45 replies
  • 9129 views

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?

45 replies

Aalok_Trivedi
February 14, 2021

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.

Aalok_Trivedi
February 14, 2021

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

Lukas_Oppermann
February 16, 2021

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

Steven_Stavrakis
March 8, 2021

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.

Trenton_Todd_Woodley
March 8, 2021

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.

simonschmidt
New Participant
March 30, 2021

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).

Marlene
April 13, 2021

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

Dean_Wong
June 2, 2021

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?

Shane
July 7, 2021

I agree with the need, but feel this should be wrapped into Design Token support in Figma - it covers this and a lot more as well.

Ben_Wilson
New Participant
October 4, 2021

+1
For design systems and, more specifically design tokens this is so important! Massively time consuming going through and changing all individual colour (and type!!) styles across all the different tokens (primary button hover, disabled, etc etc etc) whilst they largely share all of the same few core colours (+ respective tints/shades).