How to create a gradient in Figma

Learn how to create a linear gradient in Figma: draw a rectangle, open its fill color picker, switch to Gradient, and set a custom end color for the stop.

Quick answer

To create a gradient in Figma, draw a shape with the Rectangle tool, then open its fill color picker from the Fill section. Switch the paint type from Solid to Gradient, which adds a Linear gradient with two stops. Edit the second stop's hex color and close the picker.

Steps at a glance

  1. Pick the Rectangle tool in the bottom toolbar
  2. Drag on the canvas to draw a shape
  3. Click the swatch in the Fill section
  4. Switch the fill type to Gradient
  5. Type a new hex value for the end stop
  6. Close the picker to see the result

Interactive demo

Loading demo…

Summary

Gradients let you fade one color into another inside any shape. In Figma you add one from the Fill section, and the result is a Linear gradient with two stops you can recolor.

Step-by-step guide

  1. Step 1

    Pick the Rectangle tool

    Open your design file and look at the toolbar at the bottom of the canvas. Click Rectangle to switch to the shape tool.

  2. Step 2

    Draw a shape on the canvas

    Drag on an empty area of the canvas to draw a rectangle. It appears in the Layers panel and gets a default gray fill.

  3. Step 3

    Open the fill color picker

    With the rectangle selected, find the Fill section in the right sidebar. Click the color swatch next to the gray value to open the picker.

  4. Step 4

    Switch the fill to Gradient

    In the picker, choose Gradient instead of Solid. The fill becomes a Linear gradient, and the picker shows the gradient bar with its Stops list.

  5. Step 5

    Set the end color of the gradient

    Click the color value of the second stop in the Stops list and type a new hex value. The gradient bar and the shape update right away.

  6. Step 6

    Close the picker to see the gradient

    Close the picker with the close button. Your rectangle now fades from the first stop color to the new end color, and the Fill row shows Linear.

Why this matters

You are designing a hero banner or button and a flat gray fill looks lifeless. Turning that fill into a gradient takes under a minute and gives the shape depth, so your mockup looks closer to the finished product.

Frequently asked questions

  • What kind of gradient does Figma create first?

    Switching a fill to Gradient creates a Linear gradient with two stops.

  • Can I change both colors?

    Yes. Each stop in the Stops list has its own color value, so you can edit either one.

Create interactive demos like this one — free, no coding required.

Start for free →