VforVectors

All about Illustrator

bookmark
my banner
Andrei Marius On May - 6 - 2010

Hi there. In this tutorial I will show how to create one of the most common buttons. I made three buttons with similar design but different icon and text. Follow this fast tutorial and you will learn to create an add to cart, basket or bag button.

Difficulty: Intermediate
Estimated Completion Time: 45 minutes
Number of Steps: 10


This is what you’ll be creating:

preview

Step 01

Create a 760 by 140px document. Turn on the Grid (View > Grid) and the Snap to Grid (View > Snap to Grid). Now, you need a grid every 10px. Go to Edit > Preferences > Guides & Grid, enter “10″ in the “Gridline every :” box and “1″ in the “Subdivisions” box. These option will help you create the button shapes faster.

Step 02

Select the Rectangle Tool(M), create a 720x100px shape (for the moment fill it with any color you want) add a 50px Rounded Corners effect then go to Object > Expand Appearance. Fill the resulting shape with R=206 G=228 B=242 and add a 1px aligned to outside stroke. Next, add two new fills (from the flyout menu of the Appearance pallete) and use the linear gradients shown in images #3 and #4.

Step 03

Pick the Ellipse Tool, hold Shift and create a 80x80px shape. Next, select the Rounded Rectangle Tool, click&drag, hit the the up arrow to increase the roundness of the shape to maximum and create a 120×80 shape. Fill both shape with R=105 G=160 B=193 then add a 0.5px aligned to center stroke (R=255 G=255 B=255) and the Inner Glow shown below. Place these shape as shown in the following images.

Step 04

Now, let’s create the icon of the basket. Select the Pen Tool(P) and create a shape like the one shown in image #1. Pay attention at the grid to understand the exact size of this shape (the Snap to Grid will ease your work). Fill this shape with none but add a 5px aligned to center stroke (choose any color you want). Also, select this shape, go to the Appearance pallete, click on Stroke (the text) and click on the the Round Cap and Round Join buttons. Reselect the Pen Tool(P) and create a vertical line (image #2) and two horizontal line (images #3 and #4). Now, select all these paths and go to Object > Expand. Select the resulting shapes and click on the Unite button from the Pathfinder pallete.

Step 05

Turn off the Snap to Grid. Fill the basket shape with white, resize it, rotate it and place it as shown in image #1 then add the Drop Shadow effect. Next, create a copy of the left blue shape. Select the Ellipse Tool(L) and create a squeezed shape like the red one shown in image #2. Select this new shape along with the copy and click on the Intersect button from the Pathfinder pallete. Fill the resulting shape with the gradient shown in image #3, lower it’s opacity to 50% and move it above the basket icon.

Step 06

Select the Ploygon Tool, click&drag, hit the down arrow (to decrease the number of sides) and create a triangle like the one shown in image #1. Fill it with white, add a 5px Rounded Corners effect then go to Object > Expand Appearance. Select the resulting shape and add the Drop Shadow effect shown below image #3. Next, create a copy of the right blue shape. Select the Ellipse Tool(L) and create a shape like the red one shown in image #4. Select this shape along with the previously created copy and click on the Intersect button from the Pathfinder pallete. Fill the resulting shape with the gradient shown in image #5, lower it’s opacity to 50% and move it above the arrow.

Step 07

Select the Type Tool(T) and add the “Add to basket” text. Use the Impact font with a size of 80px. Select this text and go to Object > Expand. Fill all the shapes from the resulting group with none. Select this group and add a new fill and stroke (from the flyout menu of the Appearance pallete). Use the colors shown in image #2. Reselect this group, add a new fill and use the radial gradient shown in the final picture.

Step 08

You can replace the basket icon with the cart icon or with the bag icon. First, here’s how you can create the cart icon. Turn back on the Grid and the Snap to Grid then select the Pen Tool(P) and create a shape like the one shown in image #1 (use the same properties from the basket icon). Continue with the Pen Tool(P) and create the shape shown in image #2. For the wheels select the Ellipse Tool(L) and create two circles (as shown in image #3). Turn off the Snap to Grid, select the Pen Tool(P) and create a horizontal path like the one shown in image #4. Next, select all these paths and go to Object > Expand. Select the resulting shapes and click on the Unite button from the Pathfinder pallte. Fill this newly created shape with white, resize it and place it as shown in image #7 then add the drop shadow effect used for the basket icon.

Step 09

If you prefer the bag icon turn back on the Grid and the Snap to Grid. Select the Rectangle Tool(M) and create a shape like the one shown in image #1 (use the same properties from the basket icon). Duplicate this rectangle and move it 10px up and 10px to the right. Select this copy, pick the Add Anchor Point Tool(+) and add two new anchor points in the points highlighted with yellow (image #3). Next, Pick the Direct Selection Tool(A), select the anchor point highlighted with red (image #3) and hit the delete key (you should get a shape like the one shown in image #4). Reselect the Pen Tool(P) and create a simple vertical path. Continue with the Rounded Rectangle Tool. Create a shape like the one shown in image #6. Select this new shape, add two new anchor points (highlighted with yellow in image #7) then select the anchor points highlighted with red and hit the delete key (you should get a shape like the one shown in image #8). Create a copy of this shape and move it as shown in image #9. Now, select all these paths and go to Object > Expand. Select the resulting shapes and click on the Unite button from the Pathfinder pallete. Fill this newly created shape with white, resize it and place it as shown in image #13 then add the drop shadow effect used for the basket icon.

Step 10

Finally, once you change the icon, you also need to change the text and the size of the button. To resize the button properly , pick the Direct Selection Tool(A) select the anchor points highlighted in image #1 (hold Shift to select several anchor points) and move them to the left (if you want to make it smaller). Next you’ll have to move circle and the arrow (turn on the Snap to Grid to ease your work). For the text, just follow the same properties (from the add do basket text) and you’ll have no problems.

Final

Now your work is done. Here is how it should look like.

Categories: Web Graphics

4 Responses

  1. Madalin says:

    Great Tutorial…clean and simple…thanks!

  2. alex says:

    find this very helpfull

Leave your comment

    preview
    Finder Logo
    BMW Logo
    Flask Illustration
    Cube