Working with color styles on Figma
Styles in Figma allow you to specify a set of properties for elements. You can create styles for basically anything, be it Text or Color and even Effects. In this section we'll focus on Color Styles.
Like Grids, Colors and Gradients can be saved as styles. This is important when it comes to reusing certain styles. Saved styles make the design process more consistent. Most designs need different colors to be used mainly for the following:
Let's create some color styles that can be used as background colors. Keep in mind that good design needs good contrast to be legible and to command attention. To achieve this, you can use two opposite colors, like black and white, dark gray and off-white or dark blue and light blue. In our case, we're using these two - #1A2151 and #E3E8FF.
Text colors can be used to structure your typographic content. For the body text, you’d start with black on white, and white on black. For extra texts such as captions and titles, you’d need a couple of other colors. Here, we've the following colors - black, white and #F2F6FF.
These colors need to draw attention. They’re used for actionable items such as buttons, links and clickable areas. They can also be used to express your branding. The colors that we use in this section are - #8352FD, #3913B8, #00CFFD and #2FB5FC.
Gradients are used for buttons and backgrounds. You can even use them for text layers in Figma. Let's create one now!
Now that we have all our colors, it's time to save these styles so we can reuse the same anywhere in our style.
You can view the local styles via the Style Picker which refers to the modal that opens up when you click on the ': :' icon in Fill. Once it opens up, you'll see all your local styles listed there. The added color styles are also visible in the Properties panel on the right.
Saving colors, gradients or effects as Styles makes our design process a breeze. By using styles, you can change or edit any colors or effects easily, and by doing so it'll change that style for the whole design at the same time.
Original article: https://designcode.io/figma-handbook-color-styles