Sign In

CSS Shadow Generator

Visually generate drop shadows and export code for CSS.

Preview
box-shadow: 10px 10px 25px -5px rgba(0, 0, 0, 0.20);

Shadow Properties

10px
10px
25px
-5px
20%
HEX

The Ultimate CSS Shadow Generator

Drop shadows add depth, hierarchy, and realism to user interfaces. However, implementing the exact same visual shadow across web, iOS, and Android applications is incredibly difficult due to the different rendering engines and APIs each platform uses. With CSS, you have full control over X, Y, Blur, Spread, and Opacity.

Understanding Shadow Properties

  • X & Y Offsets: Controls the direction of the light source. Positive X moves the shadow right, positive Y moves it down.
  • Blur Radius: Determines how soft or sharp the shadow edge is. Higher numbers create a softer, more diffused shadow simulating distance from the background.
  • Spread Radius: Expands or contracts the overall size of the shadow before it begins to blur. Note that many native mobile platforms (like React Native and iOS) do not support spread natively without complex custom rendering.
  • Opacity: The transparency of the shadow color. Shadows are typically rendered with a pure black color (`#000000`) and a low opacity (10-20%) rather than picking a light gray color.

Related Tools