Making More Attractive Shadows

—  Posted on July 4, 2013  —

A different way to think about shadows

I used to think of shadows as these blobs that were always just a faded percentages of black. In reality, shadows change color all of the time based on their different light sources. When we create an object like a button or text, we’re trying to put it in an environment that looks natural which can include creating realistic light and shadows.

When “lighting” an object, I like to start by asking a couple of basic questions: How far off is the light source, and what color would the shadow be given its current environment?

fancy1

Here is the default shadow Photoshop creates.

default-shadow

fancy-default

Realism aside, this shadow just doesn’t look all that great to me. To get the type looking more natural, I start by changing the color of the shadow by using Photoshop’s Eyedropper Tool and sampling the background.

sample

4fcdee

Here is the shadow using the color I grabbed from the top corner of the gradient background. This looks good, but in most other cases, I like to assume there is a little more black in them. Let’s take down the brightness to 35% (adding black) and see how it looks.

1c4c59

fancy-brightness

Okay, we have a good blend of black and our base color now, but it’s still a little strong so I’m going to take the opacity down from the default of 75% to 15%.

fancy-finished

I know this is a round-about tutorial for something so simple as a shadow, but you’ll be amazed at how your interfaces come to life when you start thinking more about lighting. Here is the code if I wanted to use this drop shadow in CSS:


.fancy {
    font-family: 'MetroScript';
    color: #FFF;
    text-shadow: 2px 2px 3px rgba(28, 76, 89, 0.15);
    }

Caleb McGuire

I'm a father, husband and musician living just a little east of the Twin Cities. I've been designing awesome experiences professionally for over 15 years.

View Resume Get in Touch