illustrator tutorial: create a yummy vector cupcake

18/02/10

Some time ago I posted two similar cupcakes as vector freebies. Now it is the time to share my recipe (with a special dedication to Janna Hiromasa ;):)).

You may download the source file. I use the CS4 version but the file is back-saved to CS2.

Step 1

Create an irregular shape as in the image below. You can either use the Pen Tool (P) or start with an ellipse (L) and then move the anchor points and adjust the handles with the Direct Selection Tool (A) and the Convert Anchor Point Tool (Shift+C).
Fill the shape with a solid color, R = 255 G = 174 B = 209 and set the stroke to none.
Copy Cmd/Ctrl+C and paste in back Cmd/Ctrl+B then drag it a little bit down and to the right as in the image.

Fill the bottom shape with the pink gradient as in the image. The numbers in the image represent the RGB values of the the gradient colors.

Step 2

With the Pen Tool (P) create a simple irregular shape as in the image

Fill it with the gradient as in the image, no stroke.

Copy Cmd/Ctrl+C and paste the yellow shape in the back Cmd/Ctrl+B.

Keep it selected, enlarge just a little bit and shift a bit down. Adjust the gradient so that the beneath copy was a bit darker.

Step 3

It is the time for our chocolate coating. First with the Pen Tool (P) create an irregular shape as in the image. Fill it with the dark chocolate color, mine is R = 48 G = 35 B = 19.

Deselect, set the fill color to R = 98 G = 69 B = 35 and choose the Gradient Mesh Tool (U).
Add (just by clicking) a mesh point as shown in the image.

Deselect, set the fill color to R = 73 G = 54 B = 31 and add another mesh point as shown below.

And once more with the milk chocolate brown R = 123 G = 84 B = 39.

Step 4

Now we will put our cupcake into a brown paper liner.
With the Rectangle Tool create a rectangle. Fill it with some light brown R = 143 G = 108 B = 86. With the Gradient Mesh Tool (U) add a mesh point in the middle of the bottom edge of the rectangle. Now with the Direct Selection Tool (A) reshape the bottom part of the rectangle so that to obtain the shape of the liner (you will have to replace the mesh points and to add some curviness by dragging the handles).
Send the liner shape to back the liner shape – select and go to Object > Arrange > Send to Back or use the shortcut Shift+Cmd/Ctrl+[.

(1) We will have 19 mesh points on the horizontal edges of the liner. The middle and the two extreme ones are already there.
First add two more in the middles of each half. Then try to distribute uniformly four in each quarter.
(2) Still with the Gradient Mesh Tool (U) click somewhere in the bottom part of the liner (make sure you click on the mesh line) to get some more mesh points as in the image.
(3) Select all the mesh points on the bottom edge and change their fill to some darker brown, mine is R = 58 G = 30 B = 18.
(4) Starting from one of the extreme points select every second mesh point on the top edge and every second mesh point on the mesh line inside the liner and change its fill to the same color as used in (3).

Step 5

We will add some shadow that comes from the cupcake.
In Step 1 we created two pink shapes. Select the bottom one, copy Cmd/Ctrl+C and paste it to back Cmd/Ctrl+B, still selected enlarge it a little, drag and rotate just a little bit. Change the fill color to black.

Next select the liner. We aim to intersect the just created shadow shape with the liner shape. The problem is that the liner is not a path but a mesh object and the Pathfinder won’t work in such case.
Don’t panic. Go to Object > Path > Offset path and set the Offset size to 0px. This way you’ve just created a path that has the exact shape of the outline of our mesh object.

Keep it selected. Press the Shift key and select the shadow shape.
Go to Pathfinder Panel and choose Intersect.

Go to the Appearance Panel, change the blending mode to Multiply and decrease the Opacity to 18%.

Step 5

For your convenience block the cupcake (to do that select it and hit Cmd/Ctrl+2).
Choose the Star Tool (You will find it under the Rectangle Tool in the Tools Panel). Double click and in the dialog box set the values as: Radius 1: 200 px, Radius 2: 210 px (I increase the Radius 1 by 5%) and Points: 36.

This will give you the napkin with the right proportions. Send it to back, Shift+Cmd/Ctrl+[. Select (V) and rescale the napkin.
Fill it with a light blue gray R = 236 G = 240 B = 242 , no stroke.

Step 6

Create an ellipse (L) and place it symmetrically under the cupcake. Set its fill to black with no stroke, change the blending mode to Multiply and decrease the Opacity to 12%.

Step 7

Create another ellipse (L) and put it between the napkin and the cupcake shadow that was created in the previous step. Make sure it is entirely within the napkin. Fill it with the black to white gradient as in the image.

Change the blending mode to Multiply and decrease the opacity a little (I set it to 80%).

Step 8

It’s the time for a cherry.
Create a simple shape of a cherry and bring it to front Shift+Cmd/Ctrl+]. To do that either go to Object > Arrange > Bring to Front or use the shortcut Shift + Cmd/Ctrl+].
Fill it with the solid color, R = 139 G = 0 B = 55, no stroke.

Copy Cmd/Ctrl+C and paste the cherry to front Cmd/Ctrl+F. With the Gradient Mesh Tool (U) add two mesh points as in the image.

With the Direct Selection Tool A, change the fill colors of some of the mesh points as in the image (the numbers correspond to the RGB values)

Decrease the opacity a bit (71%).

Group the two cherry shapes, select both and press Cmd/Ctrl+G.
Copy Cmd/Ctrl+C and paste Cmd/Ctrl+V the gradient shadow we used for the napkin. In the Layer panel place it above the cupcake group and below the cherry group. Position it and resize so that to obtain a nice shadow of the cherry on the chocolate cover.

Step 9

Now we will create the cherry stem.
(1) With the Pen Tool (P) create a simple two-points path. Set fill to none and stroke to R = 198 G = 221 B = 124. (2) Use the built-in Illustrator brushes from the Brushes panel (go to Window > Brushes). I chose the 3pt Round Calligraphic brush and set the stroke to 1,5 pt.
(3) Go to Object > Path > Outline Stroke.
(4) Copy the stem to front Cmd/Ctrl+C, Cmd/Ctrl+F, with the Option/Alt key on drag the stem copy a bit to the right. You should now have three copies of the stem, select the two of them that do not overlap.

(5) Go to the Pathfinder Panel and choose Intersect.
(6) Apply the gradient fill as in image to the beyond (larger) part of the stem.

(7) Create a tiny ellipse as in the image. In the Layer Panel put it below the two parts of the stem.
(8) With the Shift key on select the small ellipse shape and the larger part of the stem (the one with gradient fill). Co to the Pathfinder Panel and choose Unite.

(9) Create a small ellipse (L) and in the Layer Panel put it between the cherry and the twi parts of the stem. Set the fill to R = 73 G = 54 B = 31, no stroke.

Your cupcake is ready!

25 Responses to “illustrator tutorial: create a yummy vector cupcake”

  1. Janna

    Feb 18th, 2010

    Pehaa is the best!!! :) Thank you very much!

  2. Lin Pearson

    Feb 18th, 2010

    As a learner in Illustrator , I stand in awe. The attention to detail is amazing. Thanks PeHaa for taking the trouble to break it all down. Some great skills here for me to aspire to.

  3. A u d e e

    Feb 20th, 2010

    Hiya!
    This tutorial is detailed written!
    I’ve subscribed ;)
    Keep posting nice quality content and tutorial please.

  4. PeHaa

    Feb 22nd, 2010

    Thank you all for the comments! Feedback like that makes me … smile .. then work hard! Thanks!

  5. Hian Battiston

    Feb 23rd, 2010

    Thanks! Great tutorial!

  6. Ferg

    Feb 25th, 2010

    Great tutorial! Thanks :)

  7. KSL

    Feb 26th, 2010

    l like this bec easy and done three already. well done

  8. […] 5. Illustrator tutorial: create a yummy vector cupcake […]

  9. […] Click on the picture or here to see the tutorial!!! 0 Comment […]

  10. ARK

    Mar 15th, 2010

    WOW, this is fantastic.
    I’m not even halfway done yet, (doesn’t quite look like yours), but still not too shabby.
    Can’t wait for the finished product.
    Thanks!

  11. […] original tutorial here using […]

  12. ARY

    Apr 6th, 2010

    AFTER 6 HOURS I DID IIIITTTT!!!!!!! *head slams on pillow and starts snoring and drooling*

  13. […] Create a yummy vector cupcake in Illustrator […]

  14. […] illustrator tutorial: create a yummy vector cupcake […]

  15. Dustin

    Jul 28th, 2010

    Hey! Really well written, I will be coming back for more articles.

  16. […] illustrator tutorial: create a yummy vector cupcake Some time ago I posted two similar cupcakes as vector freebies. Now it is the time to share my recipe (with a special dedication to Janna Hiromasa ). […]

  17. hecko

    Sep 27th, 2010

    great work!

    its a little difficult but interesting, thanks!

  18. Chris Guimarin

    Nov 23rd, 2010

    Love it!! Thanks!!

  19. Tutorial Lounge

    Jan 21st, 2011

    you did excellent job in this tutorial.

  20. Dominique

    Mar 12th, 2011

    Thank you for this great tutorial! I love it!

  21. New Homes Hull

    Apr 5th, 2011

    An excellent tutorial, thank you for this. I do tend to struggle with vectors so a good walk through like this certainly does help.

  22. Graham

    Mar 1st, 2013

    Thanks for the great tutorial PeHaa.
    I think the cupcake really turned out great – thanks for sharing the source file with us as well :)

Leave a Reply