Quick Tutorial: Gradient Strokes

Tutorials | February 12th, 2009

Gradient Strokes

After reading Lensco’s comment “Cool tip, all we need now are gradients on strokes. Pretty please, Adobe?” on the previous tutorial Quick Tutorial: Adding Gradients to Text, I decided to write a quick tutorial about how I create gradient strokes. This super simple technique use the Appearance panel and effects to create editable gradient strokes in Illustrator.

The Problem

In Illustrator, you can’t apply a gradient to strokes the way you normally apply gradients to other objects. You can create a stroke on an object, go Object > Path > Outline Stroke, and then fill the stroke with a gradient, but you won’t be able to change the stroke weight later on. Moreover, you can’t use the Outline Stroke method on type while keeping the text still editable. With the following technique, you will be able to add gradient strokes to objects and text while keeping them still editable!

Adding Gradient Strokes to Objects

First let’s go over the steps for adding a gradient stroke to objects. I will go over adding gradient strokes to text following these steps because of the added extra steps when working with text.

Step 1

Select your object with the Selection tool, in my case an ellipse, and make sure it has no stroke applied. With the object selected, open the Appearance panel menu (top left menu button) in the Appearance panel and choose New Fill. Now you should see two fills in the Appearance panel.

Step 1

Step 2

Select the last fill in the Appearance panel and go Effect > Path > Offset Path and enter the size you want your stroke. You can use px, pts, or whatever you normally use for your stroke weight.

Step 2

Step 3

Now you can change the offset fill to a gradient and your done! The great part about using this technique is you can go to your Appearance panel, select the Offset, and change the Offset just like changing the stroke weight!

Step 3

Adding Gradient Strokes to Text

Creating gradient strokes for text while keeping the text still editable, is similar to the steps above, but with a couple extra steps.

Step 1

Create some text with the Type tool, with the font of your choosing. I am using my favorite font of the moment, Klavika Bold Condensed, just like in the previous tutorial Quick Tutorial: Adding Gradients to Text.

Step 1

Step 2

Set the fill and stroke of your text to none. If you don’t this, after you have applied new fills to the text in the following steps, you will sometimes see the original text color peeking out on the text edges.

Step 2

Step 3

Select the text with the Selection tool, open the Appearance panel menu (top left menu button) in the Appearance panel and choose New Fill. Once you have added a new fill, do it one more time, so you have a total of two fills in the Appearance panel.

Step 3

Step 4

Select the last fill in the Appearance panel and go Effect > Path > Offset Path and enter the size you want your stroke. You can use px, pts, or whatever you normally use for your stroke weight.

Step 4

Step 5

Now you can change the offset fill to a gradient and your done! Just like in the previous steps, you can change the stroke width (really not a stroke but an offset) as desired and you can also still edit the text!

Step 5

Experiment

I hope this quick tutorial makes some of you want to look into the Appearance panel more! It is quickly becoming my favorite panel because of the speed and flexibility it creates when working with Illustrator. I suggest everyone play around with the Appearance panel to see what they come up with! Below is an example type treatment with multiple transparent gradient strokes.

Experiment

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • StumbleUpon
  • Design Float
  • Facebook
  • Mixx
  • TwitThis

86 Responses to “Quick Tutorial: Gradient Strokes”

  1. This is really handy. Thanks for posting it!

  2. and of course another little bonus is that it can be applied as graphic style.

  3. Ryan this is AWESOME! I’ve always used Offset Path to create my stroked type, but 1) I didn’t know it could be an effect (I love Effects and the Appearances panel; I use that combo for rounded corners too!) 2) can’t edit a normal offset path like I used to do :)

  4. SundancerSEM says:

    Ohh I wish I had thought this up on my own sooner, and saved a lot of time and effort!

  5. Oscar says:

    Very cool. Different from the way I currently do things, but this seems a bit more intuitive.

  6. woofer says:

    Good tip always its so amazing

  7. dalia says:

    I’ve been looking for such a tuorial for quiet a while, so thanks a lot, Ryan.

    Keep them coming…

  8. Lensco says:

    Wow, impressed with your quick solution! Until Adobe adds real gradients to strokes, this will do. Thanks.

    Also, I need to upgrade to Illustrator CS4, if only for the new gradients tools and the appearance palette.

  9. devlim.com says:

    Really great tutorial

  10. Mr. Smith says:

    Simple and great tutorial. No doubt, I’ll be using this in the future. Thanks!

  11. Chris Shaddock says:

    So, for me, following the steps above, created a copy of the shape. I then for the life of me could not figure out why – when I changed the fill to a gradient – I couldn’t see it. For me I ended up with a smaller top shape that had fill stroke fill (like in your example) where the fills where the same colour. I also had a larger (offset) shape below with fill shape fill (like in the example). I then had to select the top fill of the bottom shape then apply the gradient to get effect. I can also move both shapes independently of each other. So how is this any different then copying the shape and applying a gradient? Or am I not understanding something?

  12. Rype says:

    @ Chris,

    You shouldn’t be able to move the object independent of each other when using this technique, I wonder why this could be? Sounds like you are using the Appearance panel, and I am assuming you are applying the New Fill to just one object. The only thing I saw in your description that was different than the lesson is that you need to apply the gradient to the last fill in the Appearance panel.

    The place were it might have gotten mixed up, is when you applied the offset effect.
    Make sure you have the last fill in the Appearance panel selected when you apply the offset, otherwise the offset effect will create a new shape.

    The real power of this techniques is being able to later adjust the offset, like being able to adjust a Stroke weight.

    Let me know if that helps at all.

  13. Chris Shaddock says:

    Hey, So I made a quick little screen cast of what I am doing in illustrator. I posted it on YT
    here
    .

    Lets hope that link worked.

  14. Rype says:

    @ Chris,

    I see where the trouble is. When you apply the Offset instead of going Object > Path > Offset, Go Effect > Path > Offset.

    Let me know if that works.

  15. Chris Shaddock says:

    WOOT! It worked. All because I can’t read the instructions properly. Thanks for the patients and the time. Love the site.

  16. Gen Kazak says:

    awesome tip once again! Oh how I love the appearance panel

  17. Gen Kazak says:

    awesome tip once again! Oh how I love the appearance panel

  18. chemist2dio says:

    wow thanks very much for this, amazing as always! ^_^

  19. Awesome! This can really help in my work! If I knew a few days ago that this was possible, could have saved much time!
    Thank you very much! This is only one more reason to love your work: awesome and very usefull, and I love it!
    Congratulations!…

  20. yass says:

    thank you verry much for this tuts

  21. T-Law says:

    Really nice look, thanks

  22. bars says:

    On your example the outer stroke seems colorful and transparent at the same time. My problem is that it becomes (actually seems) gray when it has low opacity. :(
    Where is the mistake?

  23. Rype says:

    @Bars,

    Are you changing the opacity on the object or in the Color Stops on the gradient in the gradient panel?

  24. Bateman says:

    I wonder how you fixed your effects in your example, it seems like that you have an different ofsett path for every individual letter, how did you do this?

    p.s. thanks for the tuturial, helped me a lot =)

  25. danny says:

    Hi Ryan,

    Nice tut,

    i am having the same problem as Bars, maybe it’s the version of illustrator that i’m using (CS2)? but i can’t seem to gain control of gradient transparency/ opacity

  26. Rype says:

    @ Danny

    Yeah, I think it is because you are using CS2. In the example, I changed the opacity in the gradients not the opacity of the overall text.

  27. Rype says:

    @ Bateman

    I actually just changed the offest for each individual fill in the Appearance panel. If you look at the Apperance panel in the example, I have a couple of other fills. These other fills I just set a larger offset than the previous one.

    Let me know if that helps!

  28. Bateman says:

    ok, and than you use the transparency panel for each added fill? if i do that, they change to grey, and yours look like transparent.and you can see the offset path trough the order offset for eact letter. how did you fixed that?

  29. Rype says:

    @Bateman

    I applied the transparency to the Color Stops in the gradient (the gradient swatches) from the Gradient panel. You will need CS4 for transparencies in gradients.

    Below is a link to an image with the Gradient panel open to see what it looks like.
    http://vectips.com/wp-content/uploads/2009/03/gradnt_strk.jpg

  30. Bateman says:

    alright, I think the problem is that I’m working in CS3, better get CS4, thanks for
    the help!

  31. JSand4325 says:

    Could you tell me the name of the font you used to label the instructions in your screenshots?

    i.e. the font used for “Select Second Fill”

    Thanks!

  32. JSand4325 says:

    thanks again!

  33. Jim says:

    Excellent post!

  34. Heyki says:

    good tutorial !
    thanks~

  35. Bateman says:

    dear rype,

    on the website of tutsplus you gave an tut about text effects, you give an tutorial about making text in an green leave content. You also draw an ladybug in this tutorial, however when i try to intersect the dots with the original ellipse i get the message that cs4 can’t intersect the dots with the original ellipse because they ain’t overlapping paths. How can i fix this?

    • Rype says:

      This caught me off guard when I started using the new CS4. Try holding the Option/Alt key when Intersecting. This will make the Pathfinder not automatically expand when you Intersect. Let me know if that helps.

      • Bateman says:

        if I hold down the alt/option key my dots dissapear. but should i copy an paste in front the original ellipse form as in the red ellipse, or does this also include the shiny effect? i tried several different time but it ain’t working, help!

        • Rype says:

          Just copy and paste the original ellipse, make sure all the dots are Grouped together before you Intersect them while holding down the Option / ALT key. Let me know if that works any better

  36. Bateman says:

    that helped! finally, i’m kinda new in working with CS4 and there is one more question remaining( i know it’s getting annoying isn’t it?) i also had problems with this when making the tut about your reflections, the question is , i now grouped the dots and want to select the top highlighted shape of the body, but if i want to select that, i select the dots instead of the highlighted shape. Is there an trick to select underlaying objects who are overlapped by other objects?

  37. Kate says:

    Hello,

    I would appreciate even more, if You could share your secrets how you create multiple transparent gradient strokes as shown in your experiment. Tried but didn´t manage. Any chance…?
    Thank you.

  38. sheen wells says:

    you can also use this tool to make double stokes

  39. Dai Hoang (VietNam) says:

    Mystery work!
    Thank you.

  40. Allan De Ramos says:

    Thanks for all these great tutorials – I learned a lot about Illustrator from these than from any other tutorials !! I hope you could post more !!

  41. Madmadman01 says:

    oh yeah. useful useful useful
    10x

  42. Ginger says:

    Ah, very helpful. Making friends with the Appearance panel right now!

  43. Quakeulf says:

    This is beautiful. :’3

  44. Imran Ali says:

    Great. I love the way you write your tutorials, they are easy to follow. Keep it up my friend.

  45. Oligo says:

    Merci beaucoup for your very helpful tuts and for sharing your knowledge.

  46. this, very thank you..

    Your site full professional and very beautiful…

  47. Zsuuli says:

    Is this working in CS3 too? …or only in CS4…? Cause I just can’t do this kind of “glowing” opacity. It becomes “gray” when it has low opacity. What should I do?

  48. Kyle Gallant says:

    Thanks for this one, learned a few new things. Keep up the excellent work.

  49. Necati says:

    I wonder how I could do this in Flash…

  50. ononja says:

    Greate tutoial, thanks for sharing

  51. standardhype says:

    Fantastic thanks for the tip

  52. Matt89fe says:

    Hi, nice tut!
    Could you tell me the name of the font you used here http://vectips.com/wp-content/uploads/2009/02/stkgrd_05.jpg ? thank you :)

  53. legalcrash says:

    hello Rype, could we make transparent gradient on CS3? I do not find the opacity options like it has on CS4, thanks

Trackbacks/Pingbacks

  1. [...] vectips.com VN:F [1.1.4_465]Rating: 0.0/5 (0 votes cast) Tags: illustrator, tutorial [...]

  2. [...] Quick Tutorial: Gradient Strokes [...]

  3. [...] – 18+ Sources of Inspiration from Coffee, Ink, Blood and other Stains VecTips – Quick Tutorial: Gradient Strokes BlogPerfume – Theme: Irresistible For Visually-Rich Personal [...]

  4. [...] Gradient Strokes via Vectips [...]

  5. [...] – 18+ Sources of Inspiration from Coffee, Ink, Blood and other Stains VecTips – Quick Tutorial: Gradient Strokes BlogPerfume – Theme: Irresistible For Visually-Rich [...]

  6. [...] Quick Tutorial: Gradient Strokes [...]

  7. [...] These tuts don’t necessarily be silly, but since I’m just running through them hastily to learn some new tricks, I’m not really putting my all into making these into nice designs (maybe I should be?). Here’s a gradient strokes tut. : [...]

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

Leave a Reply