๐Ÿ”ฒ

CSS Box Shadow Generator

Design CSS box shadows visually with offset, blur, spread, color and inset, then copy the code.

Built and maintained by Abdur Rehman ยท Free, no sign-up

Loading CSS Box Shadow Generatorโ€ฆ
๐Ÿ”’PrivateRuns in your browser โ€” nothing is uploaded.
โšกFastInstant results, no waiting in queues.
๐Ÿ’ธFreeNo sign-up, no watermark, no limits.
๐Ÿ“ฑAnywhereWorks on phone, tablet and desktop.

How to use the CSS Box Shadow Generator

  1. Move the sliders
  2. See the live preview
  3. Copy the CSS

Build a shadow visually

Drag the sliders for horizontal offset, vertical offset, blur, spread and opacity, pick the shadow, box and background colours, and tick Inset for an inner shadow. The preview updates live and the CSS is ready to copy.

Syntax and examples

The syntax is box-shadow: [inset] x y blur spread color;. Some starting points:

  • Card: 0 4px 12px rgba(0, 0, 0, 0.1)
  • Button: 0 2px 4px rgba(0, 0, 0, 0.2)
  • Bottom edge only: 0 8px 6px -6px rgba(0, 0, 0, 0.3) โ€” the negative spread hides the sides. For the top edge only, use a negative y offset.
  • Even glow on all sides: 0 0 12px rgba(0, 0, 0, 0.2)
  • Inner shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25)

For a smoother, more realistic look, combine two or three soft shadows separated by commas. On dark themes shadows barely show, so a lighter border or a soft glow often works better.

Tailwind, drop-shadow and React Native

  • Tailwind CSS โ€” use an arbitrary value: shadow-[0_4px_12px_rgba(0,0,0,0.1)].
  • drop-shadow โ€” filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)) follows the shape of transparent PNGs and SVGs, but has no spread or inset.
  • React Native 0.76+ (New Architecture) accepts the same boxShadow string.

Shadow not showing?

Check that the parent doesn't have overflow: hidden (it clips shadows), that the colour isn't fully transparent, and that the element actually has a width and height.

๐Ÿ’ป Keep exploring Developer Tools

See all Developer Tools