Select the Rectangle tool .
Learn to create graphics using the shape tools and the Pen tool in Adobe XD.
You can quickly draw simple icons and graphics in Adobe XD using the drawing tools on the left toolbar - the rectangle, ellipse, polygon, line, and pen tools. The selection tool helps you select specific line, shapes, or objects to edit them.
You can then combine these shapes in different ways to create compound shapes and objects, or mask portions of the shape. For more information on combining and masking techniques, see Edit objects using Boolean operations and masking techniques.
Select the Rectangle tool .
Perform one of the following actions:
To draw a rounded rectangle, draw a rectangle, and then click it to see the radius editing handles. Click any handle and drag toward the center of the rectangle. You can also use the Property Inspector to enter a specific value for the radius of one or more corners.
To further customize your square or rectangle, you can edit the corner radii.
Select the Ellipse tool .
Perform one of the following actions:
The Polygon tool helps you create a range of new shapes such as triangles, rhombus, pentagons, stars, and hearts.
To start drawing a polygon, click “Y” on the keyboard, or select the triangle icon from the Toolbar.
On the artboard or canvas, click and drag to draw the shape of the desired size. You’ll notice that the default shape is a triangle.
After creating the shape, you can change the number of polygon sides from the Property Inspector. Select the shape, click the Side Count field in the Property Inspector and type in the desired number of sides.
A. Side count B. Corner radius C. Star ratio
To create a star shape using the Polygon tool, start by drawing a polygon on the artboard. Then, click the Star Ratio handle in the upper right corner of the polygon, and drag in towards the radius. You can also adjust the star ratio by clicking the Star Ratio field () in the Property Inspector. The ratio can be a value between 1 and 100. Use the Corner Count field to define the number of sides you want to have for the polygon. You can draw a star polygon from a regular triangle and go up to a hundred-sided polygon.
To create a heart shape, draw a polygon on the artboard. Then, click the Corner Count ()
field in the Property Inspector and type <3.
To change the Corner Radius of the polygon, click and drag the radius decoration handle from the upper corner of the shape, or click the Corner Radius field in the Property Inspector, and enter the desired value.
Every shape has one radius decoration handle. You cannot change the corner radius of each side of the shape.
Set the shape properties (Fill Color, Border Thickness and Color, Inner Shadow, Drop Shadow and Background Blur) for the polygon. These properties are preserved when you change the number of sides of the shape.
Double-click on a polygon to view all the anchor points of the shape. You can create new anchor points by clicking anywhere on the path of the shape.
Creating or editing the anchor points of a shape will turn it into a path, and it loses its polygon abilities.
Select the Line tool .
Position the pointer where you want the line to begin, and drag to where you want the line to end.
The simplest path you can draw with the Pen tool is a straight line, made by clicking the Pen tool to create two anchor points. By continuing to click, you create a path made of straight-line segments connected by corner points.
Select the Pen tool .
Position the Pen tool where you want the straight segment to begin, and click to define the first anchor point.
Click again where you want the segment to end (Shift-click to constrain the angle of the segment to a multiple of 45°).
Continue clicking to set anchor points for more straight segments.
To convert an anchor point from straight to curved and the opposite way, double-click the anchor point.
The last anchor point you add always appears as a solid circle, indicating that it is selected. Previously defined anchor points become hollow, and deselected, as you add more anchor points.
Complete the path by doing one of the following:
You create a curve by adding an anchor point where a curve changes direction, and dragging the direction lines that shape the curve. The length and slope of the direction lines determine the shape of the curve.
Curves are easier to edit and your system can display and print them faster if you draw them using as few anchor points as possible. Using too many points can also introduce unwanted bumps in a curve. Instead, draw widely spaced anchor points, and practice shaping curves by adjusting the length and angles of the direction lines.
Select the Pen tool .
Position the Pen tool where you want the curve to begin, and hold down the mouse button.
Drag to set the slope of the curve segment you’re creating, and then release the mouse button.
Hold down the Shift key while dragging to constrain the tool to multiples of 15°.
Position the Pen tool where you want the curve segment to end, and do one of the following:
To create a series of smooth curves, continue dragging the Pen tool from different locations.
You can also drag direction lines to break out the direction lines of an anchor point.
Complete the path by doing one of the following:
Using the Pen tool (), click corner points in two locations to create a straight segment.
Position the Pen tool over the selected endpoint. To set the slope of the curved segment you create next, click the anchor point, and drag the direction line that appears.
Position the pen where you want the next anchor point; then click (and drag, if desired) the new anchor point to complete the curve.
Using the Pen tool (), drag to create the first smooth point of the curved segment, and release the mouse button.
Reposition the Pen tool where you want the curved segment to end, drag to complete the curve, and release the mouse button.
Position the Pen tool over the selected endpoint.
Reposition the Pen tool where you want the straight segment to end, and click to complete the straight segment.
Using the Pen tool (), drag to create the first smooth point of a curved segment.
To create a curve with a second smooth point, reposition the Pen tool and drag.
Reposition the Pen tool where you want the second curved segment to end, and drag a new smooth point to complete the second curved segment.
To toggle between drawing mode and edit mode, press the Esc key.
You can also enter the 'path edit mode' by double-clicking the shape or path. In this mode, anchor points of the shape are visible, but moving the mouse does not draw anything. You can manipulate existing anchor/control points or insert new anchor points on existing segments on path.
When drawing with the pen tool, you can perform all the edits described above in addition to drawing new segments.
When you select the pen tool, all paths on the artboard under the mouse display handles over their start and end point. To continue drawing the path from that point, click one of the handles .
Extending a closed path reopens the path and then puts the pen tool in drawing mode for that path.
Double-click the drawing to view the anchor points. You can then click an anchor point to select it. To select multiple anchor points, hold Shift and select the anchor points, or marquee select the anchor points using the Selection tool.
Nudge the selected anchor points using your keyboard, drag them using mouse, or edit their properties (x and y-coordinates) in the Property Inspector.
While placing a new anchor point or dragging an existing anchor point, snap lines appear when an anchor is vertically or horizontally near another anchor point. Hold down the Cmd /Ctrl key to disable anchor point snapping.
Double-click the drawing to select it and view the existing anchor points. Click the path to add new anchor points at the cursor location.
Select the anchor points and then press Delete.
Drawing tool |
Keyboard shortcut on MacOS |
Keyboard shortcut on Windows |
---|---|---|
Select |
V |
V |
Rectangle |
R |
R |
Ellipse |
E |
E |
Polygon |
Y |
Y |
Line |
L |
L |
Pen |
P |
P |
Zoom |
Enter zoom in mode: Z
To temporarily activate zoom in and zoom out:
|
Enter zoom in mode: Z
To temporarily activate zoom in:
|
Zoom to Selection |
⌘3 |
Ctrl + 3 |
Measure distances between an object and the artboard, or an object and other surrounding objects by clicking the object and pressing the Option key on Mac, or the Alt key on Windows.
If the selected object is not a square or a rectangle, then XD draws a bounding box around the object. It then displays the measurements from the boundaries of the bounding box.
To measure an object's distance from the edges of the artboard:
Simply click the object and press the Option key (on Mac), or Alt key (on Windows).
Adobe XD measures the distances and displays the measurements for as long as you press the Option or Alt key.
To measure an object's distance from other objects in the artboard:
Click the object, press the Option (on Mac) or Alt (on Windows) key, and hover the mouse over other objects.
Adobe XD measures the distances between the closest boundaries of both the objects and displays the measurements as long as you press the Option or Alt key.
Click the text tool and click at the location where you want the text to begin. Type the text and press Esc to commit your text changes, or Return to go to the next line.
When you type text by selecting a point on your canvas, you get a horizontal line of text that begins where you click and expands as you enter characters. Each line of text is independent—the line expands or shrinks as you edit it, but doesn’t wrap to the next line. Entering text this way is useful for adding a few words to your artwork.
You can type text over other objects and arrange the text to appear in the front using the Object > Arrange options.
Click the Text tool, click at the location you want the text on the canvas and drag to define the text area. Then, click inside the area to begin typing text.
When you define a text area, the boundaries of an object control the flow of characters, either horizontally or vertically. When the text reaches a boundary, it automatically wraps to fit inside the defined area. Entering text this way is useful when you want to create one or more paragraphs, such as for a brochure.
From the Edit menu, select Turn Spellcheck On. The spell check feature works only on the incorrect text in the text container. Misspelled words are underlined in red and auto-corrected words are underlined in blue. Grammatical errors are highlighted with a green underline.
Right-click the misspelled word and select the contextually accurate spelling from the suggested list.
To revert the auto-corrected spellings to the word you initially entered, press Cmd + Z on Mac OS and Ctrl + Z on Windows OS.
You can easily include pre-written text to your artboard using one of the following methods:
You can easily include pre-written text in your design by simply dragging a plain text file to your artboard. This action creates an area text on the artboard with the contents of the text file.
You can also drag a text file (with new lines) on to and drag that file over a text component on a repeating grid. All of the text elements are populated with the text from that file.
For more information, see Drag a return-separated text file to your text object in a Repeat Grid.
You can also copy and paste text on to the artboard, creating an area text element that you can easily move and edit in Adobe XD.
XD provides you with three text resizing options that lets you expand the width of the text box to fit content within a single line, dynamically adjust the height of the text box, and control the width and height of the text area.
Based on your design need, select a text object and choose between the Auto Width, Auto Height, and Fixed Size options in the Property Inspector.
When adding text within frames, images, and objects, you can expand the width of the text box to the maximum extent and fit your text within a single line.
To enable Auto Width, select the icon in the Property Inspector.
When designing an application having large amount of text or while creating responsive designs in combination with stacks, you can dynamically adjust the height of the area text without changing its width.
Auto Height text enables the area text to adjust its height automatically to fit the content. When you draw an area text, this option is enabled by default.
To manually enable auto height text, you can either double-click the south resize handle or select the icon in the Property Inspector.
When adding text within your designs such as brochures, websites, you may want to add one or paragraphs and control the width and height of your text area. Fixed Size lets you wrap the text to fit inside the text box and crop automatically when it exceeds the height.
To enable Fixed Size, select the icon in the Property Inspector. Click and drag the resize handles on all sides to resize an area text. When the text inside a text area does not fit, XD indicates this with a red bottom resize handle.
Double-click the bottom resize handle of the text box to quickly resize the text area to fit the content.
Click the text and then specify the type, font size, and text alignment for the text using the Property Inspector.
You can also select individual words or characters in a block of text and format those sections alone.
To change character spacing, click the text object and specify the character spacing using the Character Spacing option in the Property Inspector.
To change the character spacing in a subset of text, select the text and modify the character spacing in milli-ems using the Property Inspector.
To change the line spacing, click the text area, and then specify the line spacing using the Line Spacing option in the Property Inspector.
To reset the line height to the default, enter 0 in the Line Spacing option in the Property Inspector.
Similar to Photoshop and InDesign, Adobe XD allows you to change the space before and after paragraphs within the same text element.
To change the paragraph spacing, select a paragraph and click the paragraph icon in the Formatting panel. Change the spacing value as per requirement.
To apply any of the text transformations, select the text that you want to change. From the Property Inspector, select any of the following options:
To underline text, click the text area, and then click the Underline icon in the Property Inspector. XD draws a smooth underline that breaks around the descenders in text (creating a more aesthetic line).
To strikethrough text, select the text area, from the Property Inspector, click the Strikethrough icon. A smooth line is drawn right in the center of the text, making it appear like it has been struck over.
To make global style changes easily, apply text transformation or strikethrough to Character Styles.
In the Assets Panel, save a style that you use across the document as a character style. Then, right-click on the character style and select Edit option from the drop-down menu. Choose one of the uppercase, lowercase, title case or strikethrough options and the text using that character style will change across the document.
Use the math calculation to create designs with greater precision or move objects to a new location or modify the width and height.
Select one or more objects. In the Property Inspector, perform simple math in any box that accepts numeric values. Adobe XD supports +, -./, * math operations to calculate the changes.
For example, if you want to move selected object 3 units to the right using the current measurement units, enter +3 after the current value.
In the Property Inspector text box that accepts numerical values, do one of the following:
Adobe XD can only perform one operation at a time. That is, it can handle “4in+2p”, but it cannot handle “4in+2p-1p” because they are construed as two different operations.
"The auto-height text container automatically adjusts in height based on the amount of text you have inside. It also works beautifully with content-aware layout features like stacks and padding"- Dani Beaumont, Principal Product Manager, Adobe XD.
Watch this video to learn how to work with auto height text.
Viewing time: 3 minutes.
Увійдіть до облікового запису