Everything Photoshop Subscribe

Create a Shiny Lock Icon Design

In Designing by Václav Krejčí

Another popular icon that you can find on the internet is (no doubt) the lock icon. It is widely used to identify secure web pages. It often indicates password fields for secure files. Wherever you wish to place a lock icon, this tutorial will show you how to create an attractive one for you to use!

Editor's Note: This tutorial was originally published in the Czech language at Grafika Online. Grafika have kindly given permission for Vaclav to republish here on PSDTUTS for those of us who haven't quite mastered Czech...

Final Image Preview

Before we get started, let's take a look at the image we'll be creating. As always, the full Photoshop file is available via our PSDTUTS Plus membership.

Step 1

Let's start with a new document, filled with a light grey color (#D5D5D5). Choose the Rounded Rectangle Tool. Then draw the basic shape of a lock. Set the Radius how you feel is right. Then fill it with a light grey color (#DDDDDD).

Step 2

Let's add the upper part. Use the Ellipse Tool to draw a circle. Choose it with the Path Selection Tool, then copy, paste, and make it a little smaller using (Ctrl + T). Then Subtract the smaller circle from the larger one by punching a hole in it.

Step 3

Change your tool to the Rectangle Tool, and with the Alt Key pressed (subtracting) draw a rectangle as shown below. Then with the same tool, but with the Shift Key pressed (adding), finish the left and right side.

Make the left end rounded by drawing an ellipse with the Ellipse Tool. Again, with the Shift key pressed. If you want to make it pixel-accurate, you will need to turn on the grid.

Step 4

Let's start adding some effects to make the lock look realistic. We will start with the bottom part and use some layer effects. Create a little darkening around the edges with the Inner Shadow effect.

Step 5

Some effects must be done manually. Let's add a strong shadow by copying the layer (Ctrl + J). Choose the Select path tool (A). Then select copy (Ctrl + C) and insert (Ctrl + V). Then move a few pixels upwards and set subtract style. Fill the shape we just created with a dark grey color (#505050). The shadow (bottom outline) is done.

Now you may be wondering why we used this technique and didn't simply apply an inner shadow effect? Well that is because we do not want the shadow to be applied to the whole lock. That is why we add the layer mask. Pick up a Brush Tool (black soft brush) and draw in the middle of a shape. That will make the shadow less visible and add a little bit more plasticity to our final image. As you can see in the last image below, the shadow disappears as we proceed to the middle.

Step 6

Ok, let's darken our lock more. Above the shape layer (of a bottom part), create a new layer (Ctrl + Alt + Shift + N). Set the layer as a cutting mask of the previous layer by pressing (Ctrl + Alt + G). Pick up the Brush Tool (big soft black). Set the Opacity to let's say 30%. Then draw on the left and right sides. That will create soft shadows.

You can draw lighter parts just like you drew the shadows. Use a light colored brush with a similar opacity. Draw them into either new or the very same layer. Follow the images below for guidance.

Step 7

Let's create reflections on the top edge next. Select all of the bottom layer (Ctrl + click on the layer). Go to Select > Modify > Contract. Then fill the selection (in a new layer) with a white color (Alt + backspace). Move the selection two pixels down (just press the down arrow two times). Then hit the Delete key to delete this part of the layer. Don't forget to deselect with Ctrl+D!

Step 8

After that, start defining the plasticity of a lock using bigger reflections. Use the Rectangle selection tool to create a rectangle in a new layer. Draw a linear gradient (Gradient tool) from white to transparent.

Step 9

Select a 2 pixels line on the top with the (rectangle selection tool), as shown below. Then Skew it, as in the second image below. This is how the reflection copies the shape of the lock.

Step 10

Just like that create reflections on the other side, but much bigger.

Step 11

We make it bigger so it doesn't look too similar. We are almost done with the bottom part. Below is how our lock should look so far.

Step 12

Next we add a strip! Again create selection a selection. Then draw a gradient into this selection from yellow (#F5E02F) to orange (#F3BB2A).

Step 13

After that choose the Single Row Marquee Tool. Then select the first and last line of the previous selection (select both lines with Shift pressed).

Use a Brush Tool and a dark color to satisfy your needs. That is how you make the difference between the background and the strip.

Step 14

Make a selection by pressing (Ctrl + click) on a new layer. Then from the Layers menu add a new Pattern Fill. Use this pattern, just change the Scale to 50% to match the icon size. Then set the layer style to Multiply. Then only black stripes will be visible.

Step 15

To make the pattern smaller near the edges, make the mask bigger on the right and on the left side. Then rasterize the layer (Layer > Rasterize > Fill Content).

Step 16

Next, narrow down the left and right sides. Cut out portions and resize as needed. This will make the sides appear to taper and cut at an angle. This can be done a few times to maximize the effect.

Step 17

Add another layer. Draw some to darken the sides of the strip. Again, use the Brush Tool with a black color, soft, and lowered opacity.

Step 18

The bottom part of the lock is done, great! Let's work on the upper part. Start with a new upper part layer and begin coloring and defining the edges. Use a grey color (#D5D5D5). Then give it an Inner Glow with effect (1px size, grey color #848484). That should do it just fine. Set the Blend Mode to Multiply.

Step 19

As we learned before, another important part of metallic surface is reflection. So let's create a reflection that will only be applied to half of the upper part. Another shape could help us. Copy the one we have (Ctrl + J), and color it black - so we see exactly where the edges are. Then grab the Path Selection Tool and use it to select the inner circle. Then make it bigger with Ctrl + T.

Step 20

Over the left and right side draw two rectangles with the Alt key pressed (subtraction).

Step 21

Lower the Opacity of this shape down to 30 %. Create a new layer between this and the original shape. Then draw a linear gradient from white to transparent. Press Ctrl + Alt + G (cutting the mask of the previous layer) to make the reflection visible only on our icon.

Step 22

Like on the bottom part, we will add two bigger reflections here. They just have to be formed like the shape they are on, so it will not be rectangles, but ellipses. Draw an ellipse using the Ellipse Tool, as in the image below.

Step 23

Rotate it with Ctrl + T about 45 degrees.

Step 24

Finally, use the Direct Selection Tool (A) to select two points in the middle of the ellipse. Then move them until the ellipse emulates the curve of the upper portion of the lock.

Step 25

Duplicate this layer (Ctrl + J). Then flip it horizontally, and move it to the right side.

Step 26

The lock is almost done. We just want to darken the edges on some places, so the icon is fully separated from the background.

First, make a layer selection of the lower part of the lock icon (Ctrl + Click on a layer). Create a new layer. Then draw into that new layer. Use our familiar dark soft brush to draw spots where you want to make the lock darker. When done, make the selection 1 pixel smaller by going to Select > Modify > Contract. Then hit the Delete key. The following image shows the stage just before deleting.

Step 27

Below is the 100% view after deleting. We're almost done.

Step 28

Exactly the same technique can be used to achieve a high level of detail on the upper part of a lock. The arrows show you where to darken.

Step 29

Whenever you decide to put the icon into your design, don't forget to add to the grey color a little bit from a color style of the background it will be placed on. In the following image, more purple was added to fit into the application design.

Conclusion

And that's all. I hope you learned something new. The final image is below.

If you enjoyed this post, your vote is always highly appreciated!! Delicious StumbleUpon Float Reddit Mixx

Comments

Leave a Comment
  1. Gravatar

    Kim Dolleris

    Beautiful!! :D

  2. Gravatar

    Kim Dolleris

    *First* ;)

  3. Gravatar

    xcarpatti

    exellent design!!

  4. More like this!:) Its sweet!

  5. second

  6. Me Likey Shiney Things! :)

  7. Quality finished product. Very polished. This is what PSDTuts is about and hopefully shuts up those complaining.

  8. awesome. this guys creates some amzing tuts.

  9. Pretty neat! Thanks for the awesome tutorial.

  10. Awesome work. I love the way the top of the lock came out. Very realistic looking chrome.

  11. realy nice would love to see more icon design here :D

  12. Nice , nice :)

    But if the icon is for a _secure_ login, shoudn’t the lock be, you know, locked ;-)

  13. Excellent tutorial, thanks!

  14. I like, I like.

  15. WOW thats a killer icon design. I think it more than exceeds the expectations of this site. I can definitely see myself using that technique right away. Thank you very much. :)

  16. Gravatar

    Colin Stein

    yea very nice

  17. Very clean, very nice.

  18. now that sure is SHINYYYYYYYYY

  19. Love it. More like this.

  20. cool

  21. Great Job. Thanks for showing a demo of how it could be used.

  22. That’s hot.

  23. Love the small details. Sexy!

  24. Another great work.

  25. Love this lock here! It’s great.

  26. Icon looks great! thanks

  27. nice clean icon, looks great

  28. Damn it, that’s really cool… I will definitely use that ;) thank you very much.

  29. Thanks so much! This had some amazing techniques I’ve never tried before.

  30. Great tut and well written, thanks!

  31. GREAT tutorial ! Thanks !

  32. ahhh this dude here again with his tutorials from another site

    dawg come up with something new!

  33. Very Useful - a tutorial for manipulating shapes!

  34. Realy nice, it give’s me some ideea’s.

  35. very nice. although a closed lock would indicate a more secure site. i think the tut is awesome

  36. Another quality tutorial. Thanks!

  37. You officially have a new biggest fan. I absolutely love your work and I would love to learn more from you. :)

  38. I love it and will keep checking back for more, great icons.

  39. Cool Icon.

  40. Wow! this is great tutorial. The lock icon is very detailed. Thanks for sharing!

  41. no more of this :-D I dont really have time to translate it all , muhaha :)

    Upir rulezz, to vime uz davno :-P

  42. Nice tut!

  43. what the hell? raster or vector? pick one and stick to it!

  44. Thanks this is great!

  45. THANKS!!! Nice icon..)

  46. just perfect

  47. Wow. I see nothing wrong with that at all! It is very professional looking! Thank you!

  48. very well done! great! thanks a lot !

  49. Great! Thanks for sharing this!

    David Carreira

  50. Well made, and good looking result!

  51. Very nice!

  52. Yeah it’s really cool..

  53. See the pathtool is always your friend :) Killerwork there, exactly the stuff we need here :)

  54. Very nice tutorial, I would have thought Illustrator for this 100%, but seeing it done so well in Photoshop might make me reconsider in the future!

  55. Wow, nice. I always like such a shiny thing

  56. Way cool! I love how you did the shiny on the sides! Very nice - thank you!

  57. Very nice sleek design.

  58. Gravatar

    Filipe M

    :o sick!!! Trully that is nice to see, more icons please :>

  59. Were is PSDtuts based? I’ll from Ireland and I noticed there seems to be a big time difference.

  60. Gravatar

    Arnaud Alves

    Really quality !

  61. great one!!! more like this please! :-)

  62. Cool.

  63. Gravatar

    Ariful Khan

    Final result is cool. Thanks.

  64. really nice ;)

  65. Cool design…

    Daniel

  66. Great, thank you!

  67. Its great to see more icon tutorials.
    I hope you make some VISTA or LEOPARD icon tutorials next.
    Thanks.

  68. I love this tutorial, and this is exactly the kind of stuff I love. I want to see more.

    However, I recognized the icon design, I want this to be legit, so please tell me there is no copyright infringement going on.
    yellowicon.com/stockicon/view/16/itoolbar_icons

  69. Nice icon! Helpfull tutorial :)

  70. pretty cool, I try this when I have time :)

  71. Dear Jimmy Xander, WHAT THE F**K are you talking about ?! What do you think, you think that reproduction of a simple lock can be under any type of copyright ? You are (no doubt) sick and totally should read any local laws before using your mouth to create excrements.

    On the site you talk about - oh look, there is red circle ! Does this mean I cant use red circles without any sick permission ? You are totally sick.

    To psdtuts - dont bother with that, you have better things to do.

  72. I’m not trying to cause any upset. I love these tutorials, I just don’t want this to be removed because an artist decides to cause some trouble and complain. I thought I had made that clear in my previous post, I guess I did not.

  73. Well done!! Thanks for the great tutorial, and well explained pen functions.

  74. BTW, Jimmy Xander: the issue with the copyright violation from a couple weeks ago wasn’t the final product. It was the fact that the entire tutorial was copied from another source, and posted as original. Photoshop is great because it gives so many different ways to create the same thing. You shouldn’t be afraid to create a tutorial of a common item or technique, just make sure it’s an original tutorial with a fresh approach.

  75. Nice tutorial, could really use those techniques in my own icon designing. thanks.

  76. Gravatar

    Andrew D

    Great techniques

  77. Wow… looks really nice. ;)

    Very good Job!

  78. woah, this is cooooooooooooool.
    great tut. ;)

  79. It really reminds me of something out of a Joomla backend.

  80. cool. more icon design!

  81. Gravatar

    The Mafalian

    i’m tiered to say it but it worth :
    “thank you very much”
    “you’re the best guy’s”
    “awesome work”
    ………………………………………………………….
    viva psdtuts

  82. Well, I just finished the PSDtuts Traffic cone tutorial, learning about 20 things along the way. So I’m really looking forward to giving this one a go. It looks brilliant.

  83. Gravatar

    dEcadEnt

    Shouldnt a secure login be locked? As in: the padlock should be locked not unlocked..
    Apart from this little flaw, very well explained tut, thanks alot.

  84. Which font did u use to write “psdtuts” in the last image?+

    Bye

  85. Good.

  86. Gravatar

    RedLine RedApple

    This is CCCOOOOOOOOOOOOOOOOOOOOOOLLLLLLLLLLLLl

    thank you very much

  87. wow! nice and shiny… i like it.

  88. Even if you aren’t making a shiny lock, this tutorial has a good amount of elements that can be applied elsewhere. I also learned of a few more tools in Photoshop that I thought exclusive to Illustrator. Yay!

  89. Gravatar

    gerard porio

    Wow this tutorial is really great! Thanks for sharing!

    By the way, what font face did you use for this tutorial?

    Thanks!

  90. Am i the only one htat is dumb here? am stuck on step 5 :( and ended up having ot create the open lock the white bit with the pen tool because i dont understand step 3, would anyone be willing ot help me please, i always seem to get stuck with tutorials with a lack of understanding but everyone else seems to grasp them so it must just be my lack of intellegence, thanks in advance

  91. stunning !!!!!!!!!

  92. Phenomenal! Couldn’t get some of the gloss working (I’m a bit of a n00b), but I’ve got myself a pretty darn slick design all the same. :P

  93. Beautiful. Nice one guys, I’m going to make me one of those ;D

  94. great job…!! lovely tutorial..!!
    keep ‘em coming.

  95. very simple,very nice!

  96. Gravatar

    Eris Discordia

    Ian, I found step 5 to be confusing as well, and I’ve been using Photoshop for 8 years. I’m still not sure what’s going on in that step. If anyone could elucidate or rephrase step 5 it would be appreciated!

    Thanks!
    Er.

  97. Very good tut

  98. wow dis is amazing
    you can’t possibily of creted dis on photoshop version. 7
    i really commend your work

Add a Comment

Note: We use Gravatars on PSDTUTS, they are little icons that appear next to your name on this site and on many others. You can get a Gravatar account for free and any other site that supports it will show your avatar too!

 

Trackbacks

Leave a Trackback