Get an overview of the primary options for fills and effects as well as learn how to use lines to create custom toolbar dividers in Sketch.
- [Instructor] So in this video let's look at some of the advanced gradient fills and effects. I've opened up the template that we're using for the tool bar, and it does have some advanced gradients and effects already built into it. So I'd like to show those to you. First I'm gonna select the icon tool bar. So let's take a look at some of these. I'm gonna go to the Inspectors panel and look at the options that are set. Under Fills, I'm going to click the Fill button, and as you can see, there's an advanced gradient in here. If you can see these different points along the scale, these correlate to different transparencies.
You can see as I select them, it's selecting the point. So if you were to go in and select this point and move it, it's very subtle, it doesn't make much difference, but if you look closely, it's actually moving the gradient all the way up to where it's actually just a line. So I'll move that back down. You can add additional points. I'll undo this, but I'll show it for you. I'm gonna add an additional point, and I'm going to darken it just for an example, we're gonna add a little bit more yellow.
And then I'll move it down, you can see the difference. So I'll press the Delete key just to delete that point and go back to where we were. And so there are other options in here such as a radio gradient, this often works great on circles and other objects, not so much on a rectangular bar. I'll reset that back to where it was. Actually I'll just use Control + Z and go backward to where we were, which is a good option if you do something, decide you don't like it.
You can also do an Angular Gradient, which works well with a square or a rectangle. But it's the same options, you can do advanced gradients here. So now that we've looked at some of the advanced gradients, let's add some dividers on our tool bar, that's gonna divide our icons that we're creating, 'cause right now we just have a tool bar and we're making icons, but we want some visual marker. I'm gonna show you how to do that, very simply, with just line objects.
So on the Insert menu, I'll go to Shape, and Line, and I'll draw a line from the top of the tool bar, hold the Shift key, all the way to the bottom, and we can adjust it later if it's not right at the bottom. And under Borders, I'm gonna change this to almost white. If I make it white it's a little too bright, so just almost white, and then I'll click outside to deselect it, and make sure it looks the way I want, and select it again, and instead of drawing another line, I'm just gonna duplicate this, I'm gonna use Command + D, duplicated it right on top of itself, so I'll move the second one over.
For this one I'll go to the Inspector and click Color under Borders, and we're gonna make it a coffee dark brown color. So I'm going to enter 80, 70, 65, and 100. Now, if you're not wanting to be that exact with the hex values, there is another way you can do this. Say if you've already got your design, you can click the eyedropper and come over and say, I want to stick with the same theme, I know the colors in here, and I want this color.
You just click that, and you can see, it's actually pretty close, I mean, it's the color from up here. But I would like it to be a little bit darker. So I'm just gonna Control + Z and back up to where I typed in my hex values, and let's zoom in on these two lines so that we can see 'em better. I'll select both of 'em and use Command + 2 to zoom in. So you can see from a distance, it was hard to tell, but these actually go a little outside. I'll click the end point, hold down the Shift key so that it doesn't do this, holding the Shift key pops it to vertical position, and there the top matches, and do the same for the bottom, and I'll do the same for the other one.
And like I said, sometimes if you have a hard time finding the line to select, select something else, come back to it, you'll see it highlighted, then you can select it. It looks like I've almost got it. I'm maybe being a perfectionist, but there I have it, so now what we want to do is we want to move these just next to each other. Just like this, up close it doesn't look like anything special, just looks like a brown line and a white line. Watch what happens when we zoom out to more of an icon level, you can see we have a divider.
So we want more than one divider, and rather than recreating that every time, what we'll do is we'll select both, and this time instead of zooming in and finding and clicking 'em, I'm gonna go over to the Pages panel and look at the layers and select both of these lines. I'm gonna right click and make a group out of it. Right click, Group the Selection, and it got a group. The next thing I want to do is create a symbol, and symbols are something that most people may not be familiar with, but what it does, it makes it a reusable object and it actually makes it a menu item in the Insert menu so that you can reuse it over and over.
So let's say you have a design with a lot of devices for a lot of platforms, and you know that this particular divider is gonna be reused everywhere, you don't want to recreate it. There's two advantages to using symbols. One is you get to just insert it and it'll be exactly like that, the other is if you change the master symbol, it will change everywhere, and the third option is you can override the settings by changing an individual symbol that's not on the master symbol page, but by itself, and it won't change all of them.
So you have a lot of flexibility, so let's go ahead and make this into a symbol. So to group, I'll right click, and at the very bottom, Create Symbol. So it gives us the option to name it, and I recommend doing this, you can send it to a Symbols page. What that does, it's gonna create a page in the Pages panel that just says Symbols, and essentially that is your master symbols page where you can go in and edit the masters, then we'll edit all of them simultaneously. And there is a trick to naming symbols, and it organizes the menu by doing this.
So I'm gonna organize this by theme. I'm gonna call it Coffee Theme, and here's the special trick, forward slash, and I'll call it Dividers, and I'll click OK, and you can see, here's our master page, and right now we just have one object on there, this group. And you can also see that there's arrows here that indicate this is now a symbol. So we want to insert another one of these, but we're gonna insert it as a symbol.
So if you go to the Insert menu, and now I'll go down to Symbols, you can see that by adding that forward slash, it added it to the menu Coffee Theme, and I had added a forward slash between that and Dividers, and made that a sub-menu. So if you have a lot of symbols, so you can have Coffee Theme, as many themes as you want, and each one has elements under it. You could also do it as dividers, and then themes, it's however you want to organize it, but the point is, this is very powerful. I'm looking over here in the Pages panel, to use that forward slash when you're naming things.
So let me go back to Insert, Symbols, Coffee Theme, Dividers, and it just places it on the cursor, and I'll come place it approximately where I want it, we're gonna align it in just a second, and I'll repeat that several times. Symbols, Coffee Theme, Dividers. Dividers, and I'm just gonna say we need about seven of these, can always add more later.
You can see I'm not being too exact about where to place them because in just a second I'm going to go over to the Pages panel and look at all of the symbols and just select them all by holding the Shift key from the bottom, and then select the top one, and now I have them all selected. And I'm going to go to the Arrange menu and I'm gonna distribute the objects horizontally. What that does is it spreads them out horizontally based on their distances. And sometimes it'll tell you that it can't be an exact match, it's gonna have to place it on sub-pixels, which is in between the pixels, and that's okay, unless you have a specific reason not to.
And let's space this out a little bit, and you could play around with it if you think there's too much space on either end. Spread a few of them out and then redo the same Arrange, Distribute, that we just did. But I think that's fairly close enough. I think the other thing to do is if you look at the top, they're not all aligned on the top, so we'll do another Arrange. This time instead of Distribute Objects I'm gonna say Align Objects, to the Top. You may have noticed they moved a little bit, and then I'm gonna use my arrow key and bring them down to where they're right where I want 'em to be, and then let's zoom out, Command + - and see what that looks like.
And now we have a tool bar divided by dividers for our icons.
- Creating vector objects
- Creating vector icons
- Applying fills, effects, and custom dividers
- Using blending and masking
- Creating symbols
- Editing with Bezier points and Boolean operations
- Exporting to JPG, PDF, SVG, and other formats