Get updates and news:
Want to get Lullabot article, videocast, and podcast announcements delivered right to your in-box? Let us know your email address (we won't share it) and we'll let you know when anything exciting happens.

Creating Awesome New Icons

Create, Explore, Expand! Learn how to create new, great-looking icons for your web project! We take a look at the Lullacons Icon Pack and detail how you can modify the free source files or create new icons of your own!

The Icon Challenge

We've all been there before. You've checked Google images for a small sized images. You just need a simple icon; maybe an arrow, file, or bullet and you don't have one that will fit just right. So you fire up Gimp, Photoshop, and yes... even Microsoft Paint to crank out that 16 pixel masterpiece.

Route 1 - Pencil Masterpiece

The canvas is small, but working with that pencil tool at 1600% you think you know what's going on. Obviously you start with a black outline and then fill in with color. After slaving away for a few minutes you zoom out, and your icon looks... like crap. The edges are hard and the details are hard to discern. Move on to route 2.

Route 2 - The Image Scale

Another common attempt is taking a larger icon or picture, popping it into your favorite image editor and scaling it down. The result is often the opposite of route 1, instead of harsh lines and colors, you have a completely blurry image. The outline is fuzzed around the edges, which makes it difficult to use on different colored backgrounds. Worse, it looks just like what it is: a scaled down image.

All About the Vectors (Route 3)

To solve the problems of the previous methods, there is a happy medium. Using vector-based tools, you can add a lot of detail and let the computer handle the scale issue. Your icons come out looking sharp and the way you expect. Best of all, you can scale an image smaller and larger without sacrificing image quality. In the Lullacons Icons Pack, the small icons were created first. Then we decided a larger version of the 'info', 'warning', and 'alert' icons might be useful. Because the icons are assembled using vectors, up scaling was a trivial matter.

Original 16x16 Icon Scaled Raster (Bitmap) Icon Scaled Vector Icon
Info Icon Info Icon Bad Info Icon Good

Raster images are based on pixel information, and your image editor needs to estimate what other pixels need to be created to scale an image up or down. Vector images are based on entirely mathematics, making such estimations unnecessary. If you're not familiar with the difference between vector and raster images, this introduction to vectors by Mike Doughty might help you get up to speed.

Layer Styles

Now we're going to get into some vendor-specific methods. Although other applications may provide similar functionality, I'll focus on Photoshop for this tutorial. Layer styles provide a very easy way to add otherwise difficult effects to your icons. Letting Photoshop handle the rendering also makes it to create reproducible effects, which you can use throughout a series of icons. Watch the video below for an example of setting up a vector graphic with a few layer styles.


Creating a Vector Based Icon and Applying Layer Styles

Pixel Masking and Saving for Web

Vector based icons get us most of the way to where we want to be. Unfortunately, vector icons still need a little bit of final cleanup before they're ready for the web. Oftentimes you'll want your icons to have a transparent background, so you can use them on any color site. The PNG format will soon become the premier image format for layout when Microsoft adds support for alpha channel transparency in IE7. Until then we're stuck with just one-bit transparency, like you can create with the 8-bit PNG format or a GIF.

Unmasked Icon Masked Icon Masked Icons Example
Unmasked icon on a color background
Masked icon on a color background
Unmasked icon with alpha transparency
   

 

There are two tricks to getting your icons to work on a variety of backgrounds. The first is cleaning up unnecessary pixels from the outside of your image. Use a layer mask to hide these unnecessary pixels. The second trick is applying a neutral color as your background matte when you save the image for web.


Applying a Mask and Saving the Icon for Web

The Lullacon Pack Style

The Lullacon Icons have a certain 'look-and-feel' across the board. If you're interested in contributing your own icons, here are a few guidelines for creating new icons.

Icon Creation Guidelines:

  • Create all shapes as vector paths
  • Use color or gradient overlays for all color
  • 110° is the magic number, use it for the angle of all bevels and shadows
  • Use Vectors! Try to avoid using the pencil and brush tools whenever possible.

Borders:

  • All icons use a 1px gray border
  • Use 'stroke' style to apply border around the icon
  • Stroke should only apply to the outside of the icon, no gray lines inside the icon
  • The final border around icons should be 'approximately' 40% brightness. (Saturation and Hue should be 0)
  • The bevel of the icon should NOT apply to the border, this is usually accomplished by creating a copy of the icon shape and applying the border to it, then set the opacity of the fill down to 0%

Shadows:

  • No shadows

Bevel:

  • 16x16 icons use a 2px bevel (use 1px if the total icon size is appropriately small)
  • A larger bevel may to achieve a 'round' look, such as in the user icon
  • 110° lighting angle, 30° (default) altitude angle
  • Highlight mode screen (default) 75% opacity (default)
  • Shadow mode multiply (default) 20% opacity

Color:

  • There are very few regulations on color, just be consistent with your choices :)
  • The 'Color Palette.psd' file included lists 5 common colors in the Lullacons Pack. Feel free to add new colors for your own reference.
  • Tiny icons (10x10 pixels) usually are white-background based

Gradients:

  • Subtle gradients may optional be used for visual appeal, though use should be limited
  • Use linear gradients for 2D surfaces (calendar, document, envelope, etc)
  • Use circular gradients for rounded surfaces (spheres, user bodies, etc)

Cleanup and Exporting:

  • The most efficient method for creating an icon that works universally on any background is masking the entire icon in Photoshop to reduce unwanted edges. Then export with a 50% gray matte on the icon to eliminate the white 'halo' that occurs when you save an image with 1 bit transparency.

Playing with the Source

Let's reap the benefits of a well designed icon. Check out how easy it is to create new color variation in this video.


Creating a New Color Variation

The Lullacons Icon Pack is licensed under the GNU General Public License. This means that you can use the icons for any purpose, so long as you leave the copyright intact. If you make any modifications to the icon source files, you must also make those files available.

Download

Comments

Pixel pushing with CS2

Two little tricks :
- In Photoshop you can open new windows for the same document. So when you work at the pixel level you can have a windows at 800 or 1600% and another tiny one at 100%, and you won't need to zoom in/out anymore.
- In Illustrator the "pixel preview" is very useful when you work on icons. Oh and by the way, setting a 1px magnetic grid also helps a lot.

sell your icons

Sell your icons at
http://www.regimages.com

icon

I was asked to create an "ICO" icon that is round with transparent edges. The bit map versions I'm doing look like crap thanks to the rough-edges the 1 bit mask produces.

In my search for a tutorial for Vector Based Icons I found you. What you're saying sounds good but ... what now. I know how to create vector circles and vector masks in Photoshop but now what? Once greated how do I get my client his ICO icons to test on Windws or to test in general?

Thanks for your help.
JJ
In two rooms full of people, two of whom are Art Center educated, nowone knows how to create these icons.... Amazing! HELP!!!

To Just Jim

Hey - I know this is probably too late - but I have a couple notes...

JUST JIM - Once you design your icons - you will need a program that will create the ICON file that your computer platform uses. I'm on an Apple and I use IconFactory's IconBuilder. BUT there are many other for the PC platform.

TO NATE: THANKS! I have been struggling with my first icon project - been switching between Illustrator and Photoshop and have invested about $250 in various plug ins to help. It's been frustrating as I did exactly what you explained at the top of the page - that various methods.

However - after watching your tutorial and not knowing what the hell all those vector shape tools did at the bottom of the PS tools menu - I now seem to have a decent method for creating a consistant set of icons in my own style - and the easy ability to go from 16x16 to 32x32 in the blink of an eye.

This tutorial is really one of the better on the net.

Thanks!
Just Tom

tag icon

Thanks for these icons, they're incredibly useful. i'm using them in wordpress, so i needed a tag icon. you can see it here:
http://wp-iodiir.sourceforge.net/2007/04/05/tag-icons/

and grab the PSD source if you want it.

Please Help With Magic Wand

I'm about ready to pull my hair out.

I'm trying to use the magic wand to select the stray pixels using the exact setting you have esp. tolarance of 0 and i can NOT select just one pixel at a time!!! The net result is i can never just isolate my icon.

It's as if tolerance doesn't work!!

What can i do to make sure my magic wand only selects one pixel at a time because whatever it's doing now doesn't work.

fyi, i brought my initial path over from illustrator as a smart object. Thought that might be the problem so i rasterized it and it still doesn't work.. arggh!

Please post a reply if you have any suggestions eventhough i know this article was made a couple months ago.

thanks

CS3?

A couple things to try: tolerance at 0 (like you said) and sample all layers should be checked. Antialias should be unchecked.

Are you using CS2? CS3 (brand spankin' new) has a new tool in the place of the Magic Wand called the "Quick Select Tool". This demonstrates some of the behaviors you're describing. It shares the same toolspace as the Magic Wand, so you'd click on the tool and hold, and there are options for Magic Wand or Quick Select Tool. This option is only in CS3. Just a guess.

Naw.. I tried

both tolerance 0 and sample all layers with anti alias off.

it's bizarre.. when you're zoomed in at 1600% you can see and select pixels. It's almost as if the magic wand is acting like the eyedrop sampler where it's set to sample 3x3 pixles or something. It just won't sample a single pixel!!!???

btw i'm using cs2..

I think i'm going to reboot this sucker tomorrow and see what happens. maybe it just got in a funky state or something.

Selection

Be sure you have the correct layer or group selectd when you use the magic wand.

creating icons

I like to design icons by first thinking exactly the main message that I need to get across... the main action, and then try to think of the most obvious (cultural) real-world example of how that happens which most people would be familiar with. That's the hardest part, but eventually when it comes to the actual designing, illustrator is a must, but there's almost always pixel-level edits at final size. great article!

Nice

Hey
nice tutorial :)
I'm not webdesigner... just webmaster with no graphical skills...
It's big problem form me..
so thx for this tutorial and SOURCE :D

greetings, Ogrzewanie Pod?ogowe

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <h2> <h3>
  • Lines and paragraphs break automatically.
  • Use <!--pagebreak--> to create page breaks.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options