Build Beautiful Buttons in Photoshop, Part I

Tweet

Nothing says Web 2.0 more than a shiny button. Of course, the "shiny plastic" look-and-feel is not for everyone, but good-looking navigation buttons are still integral to the design of a sexy web page. In this first instalment of a two-part article, I’ll show you how to create a wide variety of different buttons using Adobe Photoshop.

First we’ll look at how to create a basic button. Then you’ll apply to it all manner of effects: outlines, bevels, chisels, gradients, wet matte effects, and more!

This article has been excerpted from my book The Photoshop Anthology: 101 Web Design Tips, Tricks & Techniques, which is available for a limited time as a free PDF download, thanks to our sponsor, 99designs.

That’s right — the whole book can be downloaded for FREE.

The techniques you’ll learn here can be applied to any "button-like" object, including icons, bullets, title and navigation bars, and other page accents.

Even if you’re a graphics novice, this is fun stuff. Let’s get started!

Making a Simple, Flat Button

Solution

Rectangular Flat Button

First we’re going to draw a basic, rectangular button. Set the foreground color to a color of your choice, then draw a rectangle with the Rectangle Tool (U).

I told you it was basic! I’ve made mine more interesting by drawing another rectangle in a lighter color to give my button a thick border on its left-hand side, as shown here.

Rectangular button with thick border

Rounded Flat Button

You can also create basic, rectangular buttons with rounded corners using — you guessed it — the Rounded Rectangle Tool (U). Alter the "roundness" of your corners using the Radius field in the options bar, as shown here.

Rounded rectangular button with 10-pixel radius

Rounded rectangular button with 20-pixel radius

NOTE: Photoshop Doesn’t Replace CSS
On a web page, you’d probably use CSS instead of images to achieve this rectangular button effect. However, this technique is handy when it comes to drawing simple buttons for web comps in Photoshop.

Adding an Outline to a Button

In this solution, we’re going to be adding outlines to our basic buttons to make them look like the ones shown here.

Buttons with outlines

NOTE: Adding Layer Styles
In this chapter and beyond, we’ll be making heavy use of layer styles, which are applied by launching the Layer Style window. There are a few different ways to launch this window, but the one I use most often is to click on the little f button at the bottom of the layer palette, as shown here.

Launching layer styles window

Clicking this button will display a dialog listing all of the different layer styles available. Simply choose the one you want and the Layer Style window will launch, with the specific effect selected. It’s also possible to select the same styles from the menu bar (Layer > Layer Style), but using the icon saves you one mouse click!

Solution

Let’s add outlines to the basic buttons we created earlier. Select the layer that contains your button. Open the Layer Style dialog by clicking on the Add a layer style button at the bottom of the Layers palette and selecting Stroke… from the menu that appears. You’ll see that the Stroke style is checked and highlighted — this adds the outline to your button. Change the look of your stroke by adjusting the settings.

Adding an outline to a button by changing its stroke options

You can see from the dialog shown above that I gave mine a black outline by clicking on the color patch and setting the color to black, and gave it a thickness of one pixel by typing 1 into the Size field (you could also use the slider to adjust the size of the stroke).

Making a Smooth, Beveled Button

They’re getting fancier! Let’s have a go at creating the beveled buttons shown here.

Smooth, beveled buttons

Solution

By now, you should be an expert in creating basic, rectangular buttons. Just as well, because you’ll need one for this solution! Create or select your basic button. Open the Layer Style dialog by clicking on the Add a layer style button at the bottom of the Layers palette and selecting Bevel and Emboss… from the menu that appears. You’ve just added a bevel to your button. You can give the bevel a more rounded appearance by increasing the Size and Soften levels. I’m using 7px for Size and 8px for Soften, as shown in this image.

Bevel and Emboss options for smooth bevel

Make the effect more subtle by changing the Shadow Mode color. Since my button is blue, I’ve changed the Shadow Mode color from black to blue (a slightly darker shade than my button color).

Creating a Chiseled Button Effect

The Bevel and Emboss layer style is a versatile tool that can be used to create many different button effects. In this solution, we’ll use it to create hard-edged, chiseled buttons like the ones shown here.

Chiseled buttons

Solution

Create or select a basic button. Then, open the Layer Style dialog by clicking on the Add a layer style button at the bottom of the Layers palette and selecting Bevel and Emboss… from the menu that appears. From the Technique drop-down, select Chisel Hard and set the Soften field to 0px. Increase the Depth of the bevel to chisel "deeper" into the button.

Bevel and Emboss options for chiseled bevel

Creating an Embedded Button Effect

In this solution, I’ll show you a button effect that makes your buttons look like they’re embedded into the page, as shown here.

Embedded buttons

Solution

Select or create a basic button. Open the Layer Style dialog by clicking on the Add a layer style button at the bottom of the Layers palette and selecting Bevel and Emboss… from the menu that appears. From the Style drop-down, select Pillow Emboss — this will give your button an "embedded" effect.

Experiment with the settings to change the look of your effect. Both the buttons in the example shown above are pillow embossed, but they look different because I’ve set the Technique to Smooth for the top one, and Chisel Hard for the bottom one.

Pillow Emboss options for smooth embedded button

Making a Gradient Button

Two-toned gradient buttons like the ones shown here are the new black of graphic design. This effect has become increasingly popular — no doubt you’ll have seen it used on the buttons, menu rows, and heading backgrounds of trendy web sites. In this solution, I’ll show you how easy it is to create your very own gradient buttons.

Examples of gradient buttons

Solution

Raster Buttons

Using a selection tool, such as the Marquee Tool (M), create a rectangular selection for your button. Set the foreground and background colors to the two tones you want in your gradient, and create a new layer. With the Gradient Tool (G) selected, choose the Foreground to Background gradient option and click and drag the mouse to fill in your selection. (Holding down Shift will constrain the gradient direction to a horizontal or vertical line.)

We can achieve the same gradient button effect using the Lock Transparent Pixels option that’s provided for layers. This option is useful for rounded rectangles or other shapes for which we’re not provided with automatic selection tools.

Locking transparent pixels

Let’s use it to make a rounded rectangle button. Using the Rounded Rectangle Tool(U) with the Fill Pixels option selected, create a solid-colored raster button on a new layer. Click the Lock Transparent Pixels icon in the Layers palette, as shown in the example above. Then, set the foreground and background colors to your gradient tones and apply the gradient. Since you’ve locked the transparent pixels, the gradient will be applied only to non-transparent elements in the layer: your button, in this case.

WARNING: Useful, but Not Terribly Usable!
For all its power, the Layer Style dialog is amazingly unintuitive. What I find most confusing is the fact that you can apply a style without selecting it!
That’s right — once you’ve launched the Layer Style dialog, you can apply a style (with Photoshop’s default settings) by checking its checkbox. If you have the Preview checkbox ticked, you’ll see the effect this style has on your image. Fairly straightforward, right? But what’s confusing is that this doesn’t actually select the style, so you can’t change its settings! You need to highlight the name of the style to bring these up – simply checking the checkbox won’t do!

Applying a layer style

Selecting (and applying) a layer style

The example shown here demonstrates this: In the top image I’ve checked the Drop Shadow style, which has been applied, but the settings in the dialog box are for the layer’s Blending Options. This means I can’t make any changes to my drop shadow!If I click on the name of the layer style instead, my drop shadow is applied and its settings are displayed (as shown in the second image). Because of this, you might think that if I click on the name of another style that I’ve applied, it will be turned off in the document. That’s not the case — you’ll have to uncheck the checkbox for that! I’d suggest you spend a minute selecting and applying a few different layer styles until you get the hang of how it all works – it’ll save you from confusion later on!

Vector Buttons

If you’re not happy making raster buttons, you can create vector shapes and apply the gradient effect to them. Open the Layer Style dialog by clicking on the Add a layer style button at the bottom of the Layers palette and selecting Gradient Overlay… from the menu that appears. The gradient overlay options will be displayed.

Gradient overlay options

Adjust your gradient by clicking on the Gradient patch in the Layer Style dialog. This will bring up another dialog, the Gradient Editor, shown here, which you can use to set your gradient options.

The Gradient Editor dialog

The colors of your gradient are represented in tiny color patches underneath the gradient bar. Double-click on them to bring up the Color Picker — you can use this to change the color of the patch (and consequently, your gradient). Add more colors by clicking anywhere along the bottom of the gradient bar — a new color patch will be placed there.

Vector button with Gradient Overlay

Click OK in both dialogs, and voila! You’ve got your two-toned gradient button. And because we’ve "overlaid" our gradient onto our button, the original color of the button is inconsequential!

Making a Round Push-button

In this solution, we’ll call on the trusty gradient button-creating skills we learned in the solution "Making a Gradient Button" to make a round push-button like the one shown here.

Round push-button

Solution

  1. Create a circular gradient button on a new layer.
  2. On another layer, create a circular gradient button that’s a bit smaller than the first. The direction of the gradient on this button should be the opposite to that of the first button — in this example, my big circle has a white-to-gray diagonal gradient and my small circle has a dark-to-light diagonal gradient. (Don’t be too concerned about lining the shapes up just yet.)

Creating two circular gradient buttons

  • Select the layer for the smaller circle from the Layers palette. Hold down Ctrl (Command on a Mac) and click on the layer thumbnail for the larger circle to create a selection based on the pixels of that layer, as I’ve done here.
  • Creating a selection

  • After you’ve created the selection, select Layer > Align Layers To Selection > Vertical Centers as shown here. This will vertically align the center of the small circle with the center of the larger one.
  • Aligning vertical centers

  • Finally, select Layer > Align Layers To Selection > Horizontal Centers, and just as you suspected, the centers of both circles will align horizontally.
  • Your push-button is complete!

    Making a Metallic Button with a Matte Finish

    More buttons that use gradients! Just as well we brushed up on our gradient button-making skills in "Making a Gradient Button". We’re going to make matte-finish metallic buttons like the ones shown here.

    Solution

    Rectangular, Matte-finish, Metallic Button

    1. First, create a simple raster gradient button. I’m going to use two different shades of gray for mine.

    Creating a grayscale gradient button

  • Lock the layer by clicking on the Lock Transparent Pixels icon at the top of the Layers palette. Selecta light gray (I’ve used #ebeef0) and use the Pencil Tool (B) to draw left-hand and top borders on the rectangle button layer.
  • Select a dark gray (I’ve used #515a60) and draw bottom and right-hand borders onto the button layer, as shown in the example below. Remember to keep your lines straight by holding down Shift as you’re drawing them.
  • Drawing borders

  • Sure, we could use the button as is, but I’d like to do a few more things to it. First, we’re going to apply a noise filter to our button. Before we do this, make sure that you’re happy with the size, shape, and color of the button, as it’s hard to make changes to these properties after the filter has been applied. To add the matte finish, select Filter > Noise > Add Noise. This will give the button a grainy look and display the Add Noise dialog. Be sure to check the Monochromatic checkbox, and adjust the amount of noise that you want to introduce. I’ve set mine to 2%.
  • Adding noise

  • If you feel that the grainy effect is too pronounced, select Edit > Fade Add Noise to drop it back a bit. Change the opacity of the fade (in the example below, I set mine to 50%) and click OK.
  • Fading the noise effect

    NOTE: Use Fade Promptly!

    To use the Fade command on a filter, you’ll need to do so immediately after the filter has been applied — otherwise it won’t be available.

  • Let’s look at our button now. It’s certainly something we could use, but while we’re on a roll, let’s jazz it up a bit more with some lighting effects.
  • Rectangular matte metallic button

  • Select Filter > Render > Lighting Effects to bring up the Lighting Effects dialog, as shown. Select Spotlight from the Light type drop-down.
  • Changing direction of spotlight

  • In the preview graphic, you’ll see an ellipse with a line through it — this line indicates the direction of the light. Click on the direction handle at the end of the line and drag it to the upper left-hand corner of the preview window. You can then click and drag the handles on the ellipse outwards to increase the "spotlight" area, as shown here.
  • Applying lighting effect

  • Finally, drag the Gloss property slider towards its Matte side (shown at the bottom of the previous page). When you’re satisfied with your button preview, click OK.
  • Now we’re happy! Here’s our finished button.

    Our pride and joy

    Rounded, Matte-finish Metallic Button

    Creating a rounded matte-finish button is pretty much the same as creating a rectangular one. The main difference is that we’re going to use a stroke layer effect to add the borders, since it’s going to be difficult for us to draw the borders accurately by hand.

    1. Create a rounded gradient button. I used the same shades of gray I used for the rectangular button in the previous solution.

    Rounded gradient button

  • Now, instead of drawing a border as we did for the rectangular button, open the Layer Style dialog for Stroke and give your border the settings shown here:
    • Size: 1px
    • Position: Inside
    • Opacity: 75%

    Stroke layer style settings

  • Change the Fill Type to Gradient. Click on the Gradient swatch and set the gradient colors to white (#ffffff) and a darker gray (#384046). As the opacity of the stroke is lowered, you’ll want more contrast between the light and dark colors. (If you’re wondering why you need to lower the opacity, it’s so that the noise and lighting effects will show through.)
  • Adjust the Angle so that most of the gradient stroke is at a slight angle in relation to the button.
  • Click OK to apply the stroke effect. The figure shows the result of our stroke.
  • Applying stroke affect to button

  • Now, add noise and apply a lighting effect (steps 4-8 in the "Rectangular, Matte-finish Metallic Button" solution), and your rounded button is complete!
  • Completed rounded matte-finish metallic button

    Making a Shiny Metallic Button

    Here, I’m going to show you how to create shiny, metallic buttons like the ones shown here. I’ll also show you how you can vary their appearance using different settings.

    Shiny metallic buttons

    Solution

    1. Create a raster or vector button. I’ve created both a rounded and a rectangular button in this example. The color of the button is unimportant, as it won’t affect the final result.

    Basic buttons

  • The fun begins! Open the Layer Style dialog by clicking on the Add a layer style button at the bottom of the Layers palette and selecting Outer Glow from the menu that appears. In the dialog, change the Blend Mode to Normal, and click on the color swatch (light yellow by default) and change it to gray, as shown here.
  • Applying outer glow

  • Now, select Stroke from the styles list in the dialog to add a stroke layer effect. I used a dark gray 1px stroke.
  • Applying a stroke to button

  • We’re ready to add the gradient overlay (there go those gradients again!). Select Gradient Overlay from the Styles list in the dialog, and double-click on the gradient color swatch to open the Gradient Editor dialog. Set the colors of the gradient as I’ve done.
  • Add more color patches to the gradient bar by clicking anywhere along the bottom of it. Edit the color of a patch by double-clicking on it to bring up the Color Picker. You can also click and slide color patches to adjust the appearance of your gradient.
  • Adding gradient overlay

  • Click OK to apply all the layer styles. Your shiny, metallic button is complete! Turn off the Stroke style for a more subtle effect (uncheck its checkbox to do so) — I did this for the left button in the examples shown here.
  • Completed shiny, metallic buttons

    Variations

    You can vary the appearance of your shiny button by playing with the gradient editor settings. The examples below show how the look of our shiny button changed when different gradient configurations were applied.

    Variation 1

    Variation 2

    Summary

    And with this cliffhanger, I’ll leave you for the time being to keep playing with the navigation button solutions I’ve shown you. Watch this space! Further secrets of beautiful button creation will be revealed in Part II, to be published in this column in a couple of weeks. In the meantime, don’t forget to check out the free PDF download, courtesy of 99designs.com.

    Free book: Jump Start HTML5 Basics

    Grab a free copy of one our latest ebooks! Packed with hints and tips on HTML5's most powerful new features.

    • http://www.facebook.com/people/Mohammad-Yusuf/100000111830412 Mohammad Yusuf

      THANKS A LOT

    • http://primstitches-n-countrywares.com Violet

      This is the nices example of button making I have ever seen. Thank YOU so much for sharing this. I’m so happy I found it! I love the picture examples and the easy descriptions you wrote to go along with them. This is just great! Do you have more tutorials of photo shop that you have done? I would love to see them.
      Thank You so much! Great Job!
      Violet