SVGSketch Learn

How to Add Gradients to SVG

Linear and radial gradients with on-canvas stop editing and reusable gradient definitions.

Open SVGSketch

Quick answer

Select a shape, open the Appearance panel, switch the fill type from Solid Color to Linear Gradient or Radial Gradient, add and recolor stops on the gradient bar, and switch to the Edit tool (E) to drag the on-canvas handles that position the gradient axis.

Steps at a glance

  1. Select the shape

    Press T and click.

  2. Switch to gradient fill

    In the Appearance panel, set the fill type to Linear or Radial Gradient.

  3. Position on canvas

    Switch to the Edit tool (E) and drag the gradient handles; Shift snaps to 15deg.

  4. Add and tune stops

    Click the gradient bar to add stops; edit position, opacity, and color per stop.

  5. Reuse via the Library

    Apply saved gradients from the Library panel's Gradients tab.

  6. Apply to stroke

    Select the Stroke row of the Appearance panel and switch its type to gradient.

The two controls people miss

SPREADMETHODpadrepeatreflect
Spread decides what happens past the last stop One linear gradient that ends at 35% of the box, under each spread method. Pad holds the last color, repeat starts over, reflect mirrors - the control only shows itself when the gradient is shorter than the shape.
RADIAL FOCUScenteredfocus moved
The focal point is what makes a sphere The same radial gradient with its focus at the center and moved up and left. Focal position is its own control, separate from the center and the radius.

Step 1: Select the shape

Press T and click the shape you want to apply the gradient to. Gradients work on fill or stroke for any path, primitive, or text element.

Step 2: Switch fill to gradient

Open the Appearance panel. Switch the fill type from Solid Color to Linear Gradient or Radial Gradient. The shape immediately picks up a default two-stop gradient so you can see what you are editing.

Step 3: Position the gradient on canvas

Switch to the Edit tool (E) - the gradient axis appears on canvas as draggable handles: endpoints for a linear gradient, center/focus/radius for a radial one. Drag the handles to set direction and length. Hold Shift to snap the angle to 15-degree increments.

Step 4: Add and tune stops

On the Fill row of the Appearance panel, the gradient preview bar shows your stops. Click the bar to add a stop at that position (or use the Add Stop button), and edit each stop's position, opacity, and color in the stop list. Use 3+ stops for nuanced gradients (e.g. shadow + base + highlight), and Reverse Stops to flip the ramp. Spread mode (Pad, Repeat, Reflect) controls what happens beyond the gradient axis.

Step 5: Reuse the gradient

The Library panel's Gradients tab automatically collects every gradient in the document. Click one to apply it to the current selection, Alt+click to apply it to the stroke, or drag it onto any shape - so a shading scheme stays consistent across a large illustration.

Step 6: Apply to stroke

Select the Stroke row of the Appearance panel and switch its paint type to a gradient too - the same stop list, spread modes, and on-canvas handles apply. Useful for ribbon and tape effects.

FAQ

Linear or radial?

Linear for sky-like blends and tape effects; radial for spotlights, glows, and round-shaded objects.

Can I use more than two stops?

Yes - any number. 3-5 stops covers most realistic shading.

Does the gradient stay editable after export?

Yes. SVGSketch writes a <linearGradient> or <radialGradient> in <defs> and references it from the shape, so the gradient is fully editable when the file is reopened.

Can I animate a gradient?

Yes. Shapes with a gradient paint expose per-stop animation tracks - stop color, opacity, and position - in the Animations timeline, so you can keyframe motion-blend effects.

Why do my gradients look banded?

SVG gradients are smooth in spec, but some renderers band on low-color displays. Add one or two intermediate stops to shorten each color span and break up the banding.

Open your SVG in SVGSketch

Start with a blank canvas, import an SVG, or use the editor as a conversion and cleanup step.

Open SVGSketch