CSS Box-Shadow Generator

Design soft shadows for cards and buttons with a live preview: offset, blur, spread and opacity, with layered shadows that look more natural, then copy the code.

Design a shadow
box-shadow: 0 18px 36px -8px …

Generator

Secrets of a natural shadow

Several layers

Three light layers look more real than one heavy shadow.

A colour from your brand

A translucent navy or deep violet shadow looks better than grey black.

One light source

Keep every shadow on the page in the same direction.

Using shadows in the interface

Do

  • Light shadows for cards, stronger ones for pop-ups
  • Raise the shadow slightly on hover for a lift effect

Avoid

  • Heavy shadows on every element
  • Very dark shadows on dark backgrounds where they vanish

Example: service cards that lift on hover

Give the card a soft one or two layer shadow normally and a slightly stronger one on :hover, plus transition: box-shadow .2s. Visitors feel the card is clickable with no extra images.

Key terms

Short definitions of what you meet along the way.

box-shadow
A CSS property that draws a shadow with offset, blur, spread and colour.
Blur
The higher it is, the softer and wider the shadow.
Spread
Grows or shrinks the shadow before blurring.

Frequently asked questions

Did not find your answer? Ask us on WhatsApp

Do shadows slow the site?

Normal shadows do not. Huge shadows on many animated elements can strain phones, so use them sparingly.

How do I add it in Elementor?

In the element: Advanced, then Custom CSS, or the Box Shadow option in the Style tab.

Why several layers?

They mimic real shadows, sharper near the object and softer further away.

Want a fast, beautiful WordPress site?

We design Arabic WordPress themes that are easy to edit.

Contact us on WhatsApp