Create and modify gradients

Create, edit, import, use gradients in Adobe XD. Add color stops and control gradient opacity using the Gradient panel.

A gradient is a graduated blend between two or more colors or tints of the same color or different colors. You can use gradients to create color blends, pie-charts, add volume to vector objects, and add a light and shadow effect to your designs.

XD supports linear, radial, and angular gradients.

Linear gradient

XD shades from the starting point to the ending point in a straight line.

Radial gradient

XD shades from the starting point to the ending point in a circular pattern.

Angular gradient

XD applies a fill with color gradients that sweep around a shape from the center of a circle. 

The Gradient color picker

To access the Gradient color picker in XD, select an object, and click Fill in the Property Inspector. You can create linear, radial, and angular gradients in XD.

Choose Linear GradientRadial Gradient or Angular Gradient from the drop-down list at the top of the color picker.

The Gradient Color Picker
The Gradient Color Picker

A. Gradient editor B. Color stop C. Opacity slider D. Color field E. Save as swatch F. On-canvas gradient editor 

You can use the Gradient color picker to choose the colors and set the opacity for gradients.

The Gradient color picker has a gradient editor that shows a quick preview of all the colors used in a gradient. Checkerboards indicate the transparent parts.

The gradient editor also displays the color stops in a gradient. Small circles indicate the color stops. The colors change and mix depending on how close the color stops are to each other. The color stops are also displayed in the on-canvas gradient editor that appears on the object to which the gradient is applied. 

Two color stops are available by default. You can add more color stops by clicking the gradient editors. You can drag the color stops along the gradient editors to change the positions of the color stops and vary the spread of each color. To delete or remove a color stop, drag it away from the gradient editor in the Gradient color picker. Or, click the color stop on the on-canvas gradient editor and press Delete.

The on-canvas gradient editor helps you change the direction of the gradient.

The corner handle helps you change the origination point and angle of a radial gradient.

The slider on the right of the Gradient color picker allows you to control the opacity of the color stop.

Apply a linear, radial, or angular gradient fill

  1. Select an object and click Fill in the Property Inspector.

  2. From the color picker, select Linear Gradient, Radial Gradient or Angular Gradient
    from the drop-down list.

    Color picker

    linear radial and angular gradients
    linear, radial, and angular gradients

  3. Click the color stops in the gradient editor and select the required colors using the color picker. 

    • To add more color stops, click the gradient editor.
    • To modify the color assigned to a color stop, click the color stop.
    • To move color stops, drag them along the gradient editor.
      Note: You cannot move the color stops on either end of the gradient editor.
    • To delete a color stop, drag it away from the gradient editor. If you are using the on-canvas gradient editor, click the color stop and press Delete.
    • To shift between color stops, use the Tab key.
    • To change the orientation point and the angle of radial gradients, drag the corner handle.
    Working with a radial gradient
    Working with a radial gradient

  4. To change the direction of the gradient, drag the on-canvas gradient editor segment (on the object) as required.

    You can also drag the end-points of the on-canvas gradient editor segment outside the bounds of the object. If a color stop is placed outside the bounds of an object, the color (associated with the color stop) is not shown on the object.

    Notă:

    You can move the end of the on-canvas gradient editor segment by using the arrow keys and shift-arrow keys. Once you select an inner color stop, you can move it along the segment by using the arrow keys and shift-arrow keys.

    You can also press Tab to change color stops along the on-canvas gradient editor. 

  5. After creating a gradient, you can save it for later reuse in the Assets panel. Click an object with the gradient and click the + icon next to Colors in the Assets panel to save it. 

    Gradients saved in the Assets panel
    Gradients saved in the Assets panel

How to use Angular Gradients

You can create color wheels, pie-charts, or progress indicators using angular gradients. Apply a fill with color gradients from the starting to ending point in counter-clockwise direction. 

Create color wheel
Select Angular Gradient to fill the circle

Create color wheel
Create color wheel using Angular gradient

Try these steps to create a color wheel as shown here with Angular Gradients.

  1. Add a circle object on the canvas, select the circle, and click Fill in the Property Inspector.
  2. Select Angular Gradient from the drop-down list in color picker. 
  3. Click the start and finish color stops in the angular gradient editor and move them to select the required colors. 
  4. Click the angular gradient editor to add more color stops. 
  5. Move stops up or down by clicking and dragging the stops on the canvas.
  6. Use the rotation handle at the top of the circle, to rotate the color wheel.

 You cannot save these colors to your Creative Cloud library. As a workaround, you can copy and paste the angular gradient color set into another object. 

Import objects with gradient fill

  1. Ensure that you save the file as a .svg file before importing into Adobe XD.

  2. Click File > Import, select the SVG file, and click Import.

When you import a gradient as an SVG, the color picker displays the Gradient option by default. When you copy and paste an object in XD, the gradient fill is also copied. You can modify the color and the color stops of the gradient that you import.

Notă:

Imported radial gradients with off-centered origin points are not editable in XD. 

More like this

Sigla Adobe

Conectați-vă la cont