Design A Coffee Mug Icon

By   |  Stashed in Design & Drawing

I’ve recently decided to dive head first into the world of vector art using Adobe Illustrator. It’s not that I’ve never used it before, or don’t know the basics; it’s just, usually my first instinct is to open up Photoshop. However, there are so many projects that Illustrator is so much better suited for. The most obvious advantage in using Illustator is the ability to create scalable, vector objects.

This tutorial is the result of some of my experimentation in the Illustrator realm. It will go through the steps to creating a typical web icon. In this case, a pretty nifty coffee mug.

Step 1

Start by pulling up Illustrator and creating a new document. Grab the pen tool and draw out the shape of the mug, something like what you see below. You will have the best results if you use just 4 anchor points. Don’t worry about the colors yet; you can just use a black stroke if that helps you see what the shape looks like.

Step 2

Begin adding the colors you are going to use to your swatches palette. If it’s not open click Window->Swatches. The first thing I did to help me organize my swatches was add a ‘new color group’ I called mine coffee. For the reds of the mug, I used 3 variations (#E3D8BA, #B52025, #4A141A). For the blues of the saucer and inside of the cup I used these 3 (#D0C7DA, #5067B0, #100E19). For the coffee itself I used (#87604C, #553827, #0D090C). The colors of course are merely suggestions, you can use whichever colors suit your needs.

Step 3

Click on the coffee mug shape you created. Set it’s stroke to none and change the fill to a radial gradient going from the dark red to the medium red. You set that using the gradient palette. Then select the gradient tool to skew the highlight slightly to the top left, by clicking in the top left area and dragging toward the bottom right.

Step 4

Grab the ellipse tool and draw an oval at the top of your mug shape, something like below.

Step 5

Add a linear gradient to the ellipse that goes from the lightest blue to the mid blue and back to the light blue. Use the image below as a reference. Note: you can drag you color swatches into the gradient palette to use them as the color stops.

Step 6

With the ellipse you just created selected hit ‘ctrl, c’ to copy it and then hit ‘ctrl, f’ to paste it in the same spot in the front. Hold down shift and alt, click and drag one of the corners inward until your copied ellipse is slightly smaller than the original. Change the fill to a linear gradient that goes from dark blue, to mid-blue, to light blue, back to the mid-blue.

Step 7

Now we’ll make the coffee in the cup. Hold down alt and click and drag the top ellipse. This will copy and paste the ellipse; you can drag it into place. Once you have it positioned, change the color to the lightest brown.

Step 8

Select the new coffee ellipse, hold down shift and also click to select the inner ellipse of the cup. Open up the pathfinder palette (if it’s not visible click window->pathfinder). Click the divide icon to separate the coffee fill where it meets up with the lip of the cup.

Step 9

Right click on the coffee fill ellipse and choose ungroup. Click somewhere else on the canvas to deselect the shapes. Click back on the lower shape and then click delete, leaving just the coffee fill shape above the bottom of the lip.

Step 10

Now we are going to make the shadow on the coffee. Select the coffee fill you just created, copy and paste it to the front (using ctrl, c and ctrl, f). Fill the new ellipse with a linear gradient that goes from the darkest brown to the mid-brown.

Step 11

Grab the pen tool and make a curved line where you want to separate the shadow. Use the image below as a reference.

Step 12

Select both the line and dark coffee ellipse, click to divide the two using the pathfinder pallete option just like before. Ungroup the objects and delete the bottom shape.

Step 13

In this step we are going to create the highlight on the mug. Grab the pen tool yet again and draw something like the shape below, fill it with the lightest brown.

Step 14

Add a blur effect to smooth out the highlight. Click Effect->Blur->Gaussian Blur. Change the amount to 16px.

Step 15

These next few steps will deal with creating the handle of the mug. They are the trickiest of this tut. First off, grab the pen tool and draw an ear shape like below, fill it with the medium red and send it to the back (Object->Arrange->Send to Back).

Step 16

Use the pen tool to draw the inside part of the handle. Then use the divide tool in the pathfinder palette just like in previous steps. Delete the inside part of the handle. You should now have a shape like below.

Step 17

With the pen tool draw a shape like the one below for the shadow on the handle.

Step 18

Give your shadow shape a light gaussian blur (I used 12px). Open up the transparency palette change the mode to multiply and the opacity to 90%.

Step 19

Repeat these steps to add a second shadow on the right side of the handle. This time I used darken for the blend mode in the transparency panel.

Step 20

Next up is the highlight on the handle. With the pen tool draw a white shape like the one below.

Step 21

Add a light gaussian blur (I used 8px). Change the transparency blend mode to lighten at 75% opacity.

Step 22

Now we are going to make a drop shadow underneath the mug. With the ellipse tool draw out an oval slightly wider than the width of the mug. Fill it with a gray to black radial gradient. Change the blend mode in the transparency panel to multiply. Send the shadow to the back and place it to the bottom right of mug. Your shadow should look like the one below.

Step 23

Using the same steps as before add another shadow. This one for the handle. This time use a gray to white linear gradient, and place it behind the mug but above the other shadow so that they overlap and help with the illusion of depth.

Step 24

Draw an ellipse for the saucer underneath the mug. Fill it with a radial gradient from light blue to medium-blue. Change the stroke to the lightest blue and set it to 5px. Send the saucer to the back.

Step 25

Add another drop shadow using similar techniques, drop it behind the saucer.

Step 26

Now we will create the line on the saucer. Add an ellipse with no fill and a light blue 3 px stroke. Place it behind the mug and the mug shadows, but above the saucer. Change the blend to overlay in the transparency palette.

Step 27

Now we are going to make the steam coming off the coffee. With the pen tool draw an ‘s’ shape above the coffee. Make sure the fill is set to none and the stroke is 1px. Change the stroke color to a medium brown. In the transparency panel change it to multiply at 58% opacity. Within the brush palette click on the small arrow to bring up the brush options. Hover over Open Brush Library->Artistic->Artistic_Watercolor. Choose the third one from the top, or play around with some of the other brush options.

Here’s My Final Result

That’s A Wrap

That turned out to be a longer tutorial than I anticipated. But I think it was well worth the effort. I learned a bunch, and I hope you did as well. Let me know what you think, I love comments! Also if you follow along or come up with an interesting variation, I’d love to see your work. Please consider joining and then posting it at My Ink Blog Flickr group.

About the Author

Andrew is a primary contributer for MyInkBlog. He is a full time web developer for Niagara University. When he's not working there, he's a blogger, twitter'er, wordpress'er, silverstripe advocate, blessed father and husband.

More posts by


  • John Campbell

    Great tutorial, I really like tutorials for simple icons. Thanks!

    – John

  • blogciniorg

    thanks good explanation… :)

  • Max | Design Shard

    i love how you got it to look like there is something in side the mug with the depth, great tutorial.

    Max | Design Shard

  • Andrew Houle

    Thanks for the great comments! I’m thrilled this came out as well as it did, and the response is really encouraging. I can’t wait to learn more and write more Illustrator tuts!

  • Fox

    Wonderful tutorial.

    Foxs last blog post..Create Web 2.0 Progress Bars: jQuery, DHTML, JS, CSS, Photoshop

  • D.A.T.
  • J

    I can’t wait to try this tomorrow! These simple techniques will go a long way. thank you!

  • Junaid

    Great tutorial this! Well done and Thank you very much

  • Nifal

    Wonderfull creative realy nice, great “VECTORIAL” web site

  • Masum

    Very Good. Thanks

  • Ginger

    This was great! Thank you so much!

    Ginger´s last post was… Tiny Plastic Containers

  • Naufan

    This tutorial is very helpful for me. Thank you very much !

    Naufan´s last post was… Coffee Mug is Best Gift Idea for your Customer

  • Nionios

    Hello, can you give me the psd ready please?


  • Andrew Houle

    @Nionios – Sorry, but I don’t have a psd file for this tutorial. It’s actually done completely in Illustrator and unfortunately I don’t have the original file any more.

  • Nionios

    I need it very much my friend.. please if you have time make it on photoshop..

  • Andrew Houle

    @Nionios – I can’t do that right now. But you may find this compilation of coffee icon related things helpful.

  • saoo

    Nice Tut. :)

  • Duncan

    Simple and easy.

  • Jon

    perfect. I was looking for a site just like this one. You cant imagine what rediculus advice for designing a coffe mug picture is in the net. Thanks again, very good job

  • Joe

    I helped a student with a project thanks to this tutorial. Much thanks.