Compass can [do this for you](http://compass-style.org/reference/compass/css3/box_shadow/).