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
- Pick the Rectangle tool in the bottom toolbar
- Drag on the canvas to draw a shape
- Click the swatch in the Fill section
- Switch the fill type to Gradient
- Type a new hex value for the end stop
- Close the picker to see the result
Interactive 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
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.
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.
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.
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.
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.
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.
Related guides
Continue with more step-by-step guides for getting work done.
How to add a color style in FigmaLearn how to add a color style in Figma: open Styles in the Design panel, create a new color style, name it, set a hex value, and find it listed.
How to create a frame in FigmaLearn how to create a frame in Figma: pick the Frame tool, draw it on the canvas, and set its width in the Design panel on a free account.
How to access free templates in FigmaFind free templates in Figma Community: open Design resources, filter by Free price, and preview a template before you open it in your own file.
How to create a local variable in FigmaLearn how to create a local variable in Figma: open the Variables panel, pick a type like Color, name it, set a value, and see it in the table.
How to create a section in FigmaCreate a section in Figma to group frames on the canvas: pick the Section tool, drag around your frames, rename it, and confirm it in Layers.
How to create a wireframe in FigmaSketch a simple screen wireframe in Figma: draw a frame, then add an input field, a text label and a button with the Rectangle and Text tools.
Create interactive demos like this one — free, no coding required.
Start for free →