Find file
Fetching contributors…
Cannot retrieve contributors at this time
55 lines (32 sloc) 2.38 KB
title tags updated
Creating 'Material Design' shadows in Photoshop

Somebody over on Designer News asked how to re-create the various z-height shadow effects from Google's Material Design in Photoshop.

This is something I've been playing with a bit lately, so I dove in to the CSS from the Polymer Project documentation, found the z-height styles, and then whipped up a .psd to demonstrate how to achieve the effect:

Preview of psd

Download the PSD

An explanation of the styles

The Material Design shadows are actually comprised of two shadows on each element, as you can see below. This example shows the z-height: 5 shadow. First the 'top shadow', then the 'bottom shadow', then the effect caused by composing them together:

Example of z5 shadow

You'd use something like this to create the z-height: 5 shadow effect using CSS:

.paper-shadow-z-5 {
        0 40px 77px 0 rgba(0,0,0,.22),
        0 27px 24px 0 rgba(0,0,0,.2);

And in Photoshop... bottom on the left, top on the right:

Settings in Photoshop

Updated for Adobe Photoshop CC 2015

Today Adobe Photoshop CC 2015 was released, with support for multiple (up to 10) instances of each layer style per layer. This coupled with the ability to 'Copy CSS' for a layer means that we can do this a lot more easily.

Here's a preview of the same effect, but using the new functionality:

Here is an updated version of the PSD that will only work in CC2015+:

Download the PSD for CC2015

Update 2

For even easier use you can just import this CC Library and apply the layer styles with one-click. – via dbox

Use Sass? Try this handy mixin – via dbox