Set stroke, fill, drop shadow, and inner shadow for objects

You can add drop shadows and inner shadows to objects like toggles, buttons, sliders, and illustrations.

Learn to set stroke, fill, drop shadow, and inner shadow, and create blend effects for objects in Adobe XD.

Apply a fill color to an object

  1. Select the object.

  2. Click the rectangle next to Fill. The Color Picker appears.

    The color picker
    The color picker

    註解:

    You can also use the Eyedropper tool to fill colors. The [i] key activates the Fill eyedropper.

    • Clicking the key once would open the Fill eyedropper.
    • Clicking the key again would close the Fill eyedropper.
  3. You can choose to:

    • Specify the HSBA, RGB, or hexadecimal values if you know the exact color values. You can also switch between the different color modes.
    • Adjust the color using the color field and color slider. When you do so, the numeric HSBA, RGB, and hexadecimal values are adjusted accordingly.  
    • You can set the fill and the opacity of the fill by using the color slider or specifying a value in percentage.
    • Use the Eyedropper tool to select a color from an artboard.
    • You can also apply gradient fills to object. For more information on gradients, see Create and modify gradients.

    As you modify the options in the color picker, you can preview the changes on the artboard.

    註解:

    Adobe XD also supports shorthand for hexadecimal codes. For example, if you type 0 and press Return, XD automatically displays the color with code #000000.

  4. You can save a color as a swatch for future use. To save a color as a swatch, click the + icon at the bottom of the Color Picker. 

    Add swatches
    Add swatches

    You can rearrange swatches in the color picker by dragging a swatch to the new location. To delete a swatch, drag it outside the color picker.

Apply image fill to objects

First, turn on the fill if it's not already on (as described in Apply a fill color to an object). Then, drag the image onto the object from the location where you have saved it (for example, Finder or Windows Explorer).

Crop and place image fills

You can now double-click images placed within containers (Object > mask with Shape) to crop and reposition the images (when dragged from the desktop) within the image fills. Use the Crop mode in an image fill to:

  •      Double click and enter a crop mode for an image fill
  •      Reposition the image within the crop mode, or
  •      Move the image anywhere in the crop mode

This enhancement is also applicable for files imported from Photoshop and Sketch. The imported files retain the image fills and the crop performed in the source application.

Image paste from clipboard

You can also copy an image outside of Adobe XD into your operating system clipboard, select a shape, and paste the image as an image fill from your operating system clipboard. Images will also fill a shape if a shape is selected and a user selects File > Import.

Create strokes and specify stroke color

  1. Select the object.

  2. The default stroke width is 1. To specify a different value, change the Border value.

  3. Click the rectangular color chip next to Border. The Color picker appears.

    The color picker
    The color picker

  4. You can choose to:

    • Specify the HSBA, RGB, or hexadecimal values if you know the exact values.
    • Adjust the color using the color field and color slider. When you do so, the numeric HSBA, RGB,  and hexadecimal values are adjusted accordingly.  
    • Use the Eyedropper tool to select a color from an artboard.
    • Set the opacity of the border using the color slider or typing in a value in percentage.
    • Edit the border size and create dotted lines
    • Specify end caps (Butt, Round, Projecting) and joins (Miter, Round, Bevel), and inner and outer strokes.

    As you modify the options in the color picker, you can preview the stroke color on the object.

  5. You can save a color as a swatch for future use. To save a color as a swatch, click the + icon at the bottom of the Color Picker. 

    Add swatches
    Add swatches

    You can rearrange swatches in the color picker by dragging a swatch to a new location. To delete a swatch, drag it off the color picker.

  6. If the object is a closed path, you can specify the stroke width. To align the stroke along the path, choose one of the following options listed in the next illustration.

    By default, XD aligns the inner stroke in a closed path.

    Stroke styles
    Stroke styles

    A. Inner stroke B. Outer stroke C. Center stroke D. Butt cap E. Round cap F. Projecting cap G. Miter join H. Round join I. Bevel join 

    註解:

    Changing the stroke width or stroke alignment does not change the actual size of the object (in terms of the bounding box). However, when you export the object, chances are there for the dimensions of the object to change depending on the type of stroke used.

    SVG only supports center strokes. If you export an object with inner or outer strokes as SVG, the size of the exported image appears as if it had a center stroke.

Convert strokes to shapes using Outline Stroke

Create editable vector shapes from lines, paths, shapes, text, images, and boolean groups using Outline Strokes. After creating the shape, you can further modify it using controls, or by changing its properties in the Properties Panel.

Try these steps to create an icon as shown here with an Outline Stroke. 

  1. Type any letter, say S using Text tool on the canvas.

  2. Select the letter S and choose Object > Path > Outline Stroke.
    You can view two layers in the Layers panel: 1. S - Outline and 2. S.

    Use outline stroke on a text letter.
    Use outline stroke on a text letter.

  3. Double-click the Rectangle to add anchor points.

  4. Click and drag the anchor points to create a custom shape. 

  5. After you have created the shape, you can modify it using the Properties Panel such as changing its color using Fills and Gradients.

    Add colors and styles to customize the shape
    Add colors and styles to customize the shape

Add shadows

Inner Shadow

Applying Inner Shadow to an object
Applying Inner Shadow to an object

Drop Shadow

Applying Drop Shadow to an object
Applying Drop Shadow to an object

  1. Add an object to the artboard.

  2. Click the object, and then click Drop Shadow or Inner Shadow in the Property Inspector.

  3. In the Color Picker,

    a. To add a color to the shadow, do one of the following:

    • Specify the HSB, RGB, or hexadecimal value of the color. You can easily switch between these color modes.
    • Adjust the color using the color field and color slider. When you do so, the HSB, RGB, or hexadecimal value is automatically adjusted.  
    • Use the Eyedropper tool to select a color from an artboard.

    b. Set the opacity of the shadow using the opacity slider or type in the opacity value in percentage.

     To save a swatch, click the + icon at the bottom of the color picker. You can rearrange swatches in the color picker by dragging a swatch to a new location. To delete a swatch, drag it off the color picker.

  4. Specify the following in the Property Inspector:

    X offset and Y offset: Specify the distance from the object to which you want the shadow to be offset.

    (Blur):  Specify the distance from the edge of the shadow to which you want any blurring to occur.

Apply blend effects

Select an image or object (including shapes, text layers, groups, masks, or components) on the design canvas. From the Property Inspector,  select and apply the blend mode of your choice. For more information, see Apply blend effects.

Remove a fill, shadow, or stroke from an object

Select the object. Then, click the check box next to Border, Fill, or Shadow in the Property Inspector. If you want the fill, stroke, or shadow back, click the check box again.

Adobe 標誌

登入您的帳戶