Quick Tutorial: Gradient Strokes

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

115 thoughts on “Quick Tutorial: Gradient Strokes

      • What’s ‘called’ “You’re done” exactly? The phrase “You’re done”?

        “What’s that phrase called? Ah yes, ‘You’re done’, that’s what it’s called.”

        You’re an idiot. Next time, make sure you have even the feeblest grasp of English before you criticise others’ use of it.

        And yes I know, my post if full of grammatical errors. I have no idea how it all works.

      • This is really the lest friendly or constructive response to someone who’s just put so much effort into a tutorial for you. Clearly, if you got to “your done” then you have some interest in what this tutorial is showing. It’s cool that you want to help the author to correct a grammar mistake but come on – at least make an effort to say one nice thing before you go all pompously and rudely critical. You’re lucky to have received a nice comment from the author on this (probably because you embarrassed him – well done). I would have told you to take a class on the art of critique.

  1. 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 :)

  2. 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.

  3. 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?

  4. @ 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.

  5. @ 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.

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

  7. 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!…

  8. 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?

  9. 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 =)

  10. 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

  11. @ 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.

  12. @ 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!

  13. 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?

  14. 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!

  15. 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?

    • 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.

      • 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!

        • 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

  16. 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?

  17. 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.

  18. 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 !!

  19. 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?

  20. hay :) Great tut love it..although ive only got cs3/windows and that make this tut really confusing :S do anybody know the same tut but for cs3 instead? that would be really helpful :D

  21. Great tutorial!
    One problem I’m having is that I want a black background to bring out the colour. I’ve tried creating a rectangle in he layer behind and also tried creating a fill and converting to shape. What happens then is that all the gradients disappear and I’m left with the white fill of the text.
    Any suggestions?

  22. Wow, This one things has been my biggest pet peeve with learning illustrator. This tut was amazing, simple, and easy to understand. Thank you So much!!!

  23. Nice Tutorial. I have a issue when i resize the object. The offset path mentioned(Effect > Path > Offset) is not resizing relativly. I guess we should use (Object > Path > Offset) and Group the new object ;ayer created with the base.

  24. Yeah, this is good except when you want a transparent fill with just the stroke as the gradient (like a picture frame. The only way I’ve found to do this so far is the outline stroke technique. Please do let me know if there is a workaround for this!!

  25. You explain the steps on how it can be created, but not the steps on how you created YOUR logo, with the transparent gradient.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>