Shape tools are essential to any Sketch workflow. In this video, learn how to add shapes to the canvas, work with fills and borders, and change the colors and opacity of shapes using the color picker.
- [Narrator] We can start creating wireframes in Sketch using nothing more than a few basic shapes. So, let's start taking a look at how the Shape tools work. You'll find the Shape tools here under the Insert menu in the toolbar. For a wireframe, let's start out with a rectangle. We can either select Rectangle from the list here, or use the keyboard shortcut, which is the letter R. Let's go back to our Canvas and type R, and then click-and-drag to create a rectangle over this entire Artboard. We'll start at the top-left and then keep going until we see the Snapping Guides down at the bottom.
Now that we've added our shape, we'll see a layer for it over in the Layers list. And over on the right, in the Inspector panel, because our rectangle is selected, we can see all the different options we have for working with that rectangle. Let's look at the opacity setting first. Whenever we have a shape selected, typing a number will change the opacity of the shape. So, typing five will change it to 50%, six to 60, and so on. If we type quickly, we can even change it to a specific value, like 85. This keyboard shortcut is handy, but occasionally gets triggered by accident, so it's nice to know about it when we start working with shapes.
Next, let's take a look at the Fill and Border settings on our shape. We can change the Fill color by clicking on the color tile here, and typing in a new HEX code. I'll type 999 and hit enter to turn it into a darker gray color. These RGB input fields here are for the Red, Green, and Blue values of our shape. And we can click-and-drag either to the left or to the right to change those values. If we click once on this entire button, it will switch over to HSB.
That's the Hue, Saturation and Brightness. And we can do the same thing to change the color of our shape by clicking-and-dragging either to the left or the right. For any of these input fields here, we can use the Up and Down Arrow keys to adjust them by one, or we can hold Shift and use the Up and Down Arrow keys to adjust by 10. These arrow shortcuts also work inside most of the other input fields on the Inspector panel. Over here, next to the HSB, we have a field for A. This is our Alpha channel.
That's the opacity of our color. And it's the same as the opacity setting on our Fill that we see here. So, as we drag our Alpha channel down, we can see that those two numbers are changing at the same time. Let's go back to that dark gray color, now, by typing 999 in the HEX field again, and dragging our Alpha channel all the way back to 100. We can switch the overall opacity of our shape back to 100, as well. And let's also click on the Canvas, now, to get out of our Color Picker.
For Fills and Borders, we can toggle them on-and-off by using the check boxes, or by using the F and B keys. This will hide a Fill or a Border temporarily. If we want to get rid of one of these completely, like if we don't want this Border anymore, we can uncheck it and then hit the Trash icon, or -- I'll hit command Z to undo that, another way that we can get rid of a Fill or a Border is by clicking right in this space in-between, in the gray area, and dragging it off of the panel.
Let's now add another rectangle to our wireframe. There will be a placeholder for our logo. We can use the R key again, and then click-and-drag to create a rectangle. For this one, let's change the size of the rectangle to 255 by 185. That'll be the right size for our logo. We're not going to need a Border on this rectangle either, so let's click-and-drag to remove this one as well. Now, we'll be creating shapes all the time, and by default they all come along with the one Fill and one Border.
If we want to change that default style, we can change the style of our shape to whatever we want and then come up to the Layer menu, and under Style, we can select this option that says, "Set as Default Style". Now, whenever we create a new rectangle, we won't have Borders on it anymore. I'll delete that one, since we don't need it. We can always add a Border back again by clicking on the Plus icon, and then selecting a color for it.
This gives us back another Border. So, I'll click-and-drag to delete that again, and then drag our rectangle to the center of the Canvas. Now, this is going to look a little too low if it's exactly center, so I'll use the Shift and Arrow keys to nudge it up by 10 pixels at a time, until it looks a little better. And that's how easy it is to start working with shapes in Sketch. We can create them easily using keyboard shortcuts, or the Insert menu, change Fills and Borders, and start moving them around our Canvas and Artboards.
- Navigating the canvas
- Creating wireframes
- Working with shapes, text, images, and masks
- Managing layers
- Creating and nesting symbols
- Using the Vector tool
- Extending Sketch with design plugins
- Creating, sharing, and managing libraries
- Collaborating with Sketch Cloud
- Exporting assets
- Creating style guides and design systems