Freemium

Beautiful CSS box shadow examples

A CSS shadow adds depth to elements using the box-shadow or text-shadow property. It creates a visual
effect by applying an offset, blur, and color to simulate a shadow, making elements like buttons or
cards stand out and look more interactive.

1

Gallery Icon

Click to copy shadow

box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;

2

Gallery Icon

Click to copy shadow

box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;

3

Gallery Icon

Click to copy shadow

box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;

4

Gallery Icon

Click to copy shadow

box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;

5

Gallery Icon

Click to copy shadow

box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;

6

Gallery Icon

Click to copy shadow

box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;

7

Gallery Icon

Click to copy shadow

box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;

8

Gallery Icon

Click to copy shadow

box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;

9

Gallery Icon

Click to copy shadow

box-shadow: rgba(255, 255, 255, 0.1) 0px 1px 1px 0px inset, rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;

10

Gallery Icon

Click to copy shadow

box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px;

11

Gallery Icon

Click to copy shadow

box-shadow: rgba(6, 24, 44, 0.4) 0px 0px 0px 2px, rgba(6, 24, 44, 0.65) 0px 4px 6px -1px, rgba(255, 255, 255, 0.08) 0px 1px 0px inset;

12

Gallery Icon

Click to copy shadow

box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;

13

Gallery Icon

Click to copy shadow

box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px;

14

Gallery Icon

Click to copy shadow

box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;

15

Gallery Icon

Click to copy shadow

box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;

16

Gallery Icon

Click to copy shadow

box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;

17

Gallery Icon

Click to copy shadow

box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;

18

Gallery Icon

Click to copy shadow

box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;

19

Gallery Icon

Click to copy shadow

box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;

20

Gallery Icon

Click to copy shadow

box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;

21

Gallery Icon

Click to copy shadow

box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;

22

Gallery Icon

Click to copy shadow

box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;

23

Gallery Icon

Click to copy shadow

box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;

24

Gallery Icon

Click to copy shadow

box-shadow: rgba(0, 0, 0, 0.25) 0px 25px 50px -12px;

25

Gallery Icon

Click to copy shadow

box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 5px 0px, rgba(0, 0, 0, 0.1) 0px 0px 1px 0px;

26

Gallery Icon

Click to copy shadow

box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 2px, rgba(0, 0, 0, 0.07) 0px 2px 4px, rgba(0, 0, 0, 0.07) 0px 4px 8px, rgba(0, 0, 0, 0.07) 0px 8px 16px, rgba(0, 0, 0, 0.07) 0px 16px 32px, rgba(0, 0, 0, 0.07) 0px 32px 64px;

27

Gallery Icon

Click to copy shadow

box-shadow: rgba(0, 0, 0, 0.09) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px;

28

Gallery Icon

Click to copy shadow

box-shadow: rgba(0, 0, 0, 0.2) 0px 18px 50px -10px;

29

Gallery Icon

Click to copy shadow

box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 50px;

30

Gallery Icon

Click to copy shadow

box-shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px;

31

Gallery Icon

Click to copy shadow

box-shadow: rgba(240, 46, 170, 0.4) -5px 5px, rgba(240, 46, 170, 0.3) -10px 10px, rgba(240, 46, 170, 0.2) -15px 15px, rgba(240, 46, 170, 0.1) -20px 20px, rgba(240, 46, 170, 0.05) -25px 25px;

32

Gallery Icon

Click to copy shadow

box-shadow: rgba(240, 46, 170, 0.4) 0px 5px, rgba(240, 46, 170, 0.3) 0px 10px, rgba(240, 46, 170, 0.2) 0px 15px, rgba(240, 46, 170, 0.1) 0px 20px, rgba(240, 46, 170, 0.05) 0px 25px;

33

Gallery Icon

Click to copy shadow

box-shadow: rgba(240, 46, 170, 0.4) 5px 5px, rgba(240, 46, 170, 0.3) 10px 10px, rgba(240, 46, 170, 0.2) 15px 15px, rgba(240, 46, 170, 0.1) 20px 20px, rgba(240, 46, 170, 0.05) 25px 25px;

34

Gallery Icon

Click to copy shadow

box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px, rgba(0, 0, 0, 0.07) 0px 4px 4px, rgba(0, 0, 0, 0.07) 0px 8px 8px, rgba(0, 0, 0, 0.07) 0px 16px 16px;

35

Gallery Icon

Click to copy shadow

box-shadow: rgba(67, 71, 85, 0.27) 0px 0px 0.25em, rgba(90, 125, 188, 0.05) 0px 0.25em 1em;

36

Gallery Icon

Click to copy shadow

box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px 0px;

37

Gallery Icon

Click to copy shadow

box-shadow: rgba(27, 31, 35, 0.04) 0px 1px 0px, rgba(255, 255, 255, 0.25) 0px 1px 0px inset;

38

Gallery Icon

Click to copy shadow

box-shadow: rgba(3, 102, 214, 0.3) 0px 0px 0px 3px;

39

Gallery Icon

Click to copy shadow

box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;

40

Gallery Icon

Click to copy shadow

box-shadow: rgba(0, 0, 0, 0.2) 0px 12px 28px 0px, rgba(0, 0, 0, 0.1) 0px 2px 4px 0px, rgba(255, 255, 255, 0.05) 0px 0px 0px 1px inset;

41

Gallery Icon

Click to copy shadow

box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;

42

Gallery Icon

Click to copy shadow

box-shadow: rgba(33, 35, 38, 0.1) 0px 10px 10px -10px;

43

Gallery Icon

Click to copy shadow

box-shadow: blue 0px 0px 0px 2px inset, rgb(255, 255, 255) 10px -10px 0px -3px, rgb(31, 193, 27) 10px -10px, rgb(255, 255, 255) 20px -20px 0px -3px, rgb(255, 217, 19) 20px -20px, rgb(255, 255, 255) 30px -30px 0px -3px, rgb(255, 156, 85) 30px -30px, rgb(255, 255, 255) 40px -40px 0px -3px, rgb(255, 85, 85) 40px -40px;

44

Gallery Icon

Click to copy shadow

box-shadow: rgb(85, 91, 255) 0px 0px 0px 3px, rgb(31, 193, 27) 0px 0px 0px 6px, rgb(255, 217, 19) 0px 0px 0px 9px, rgb(255, 156, 85) 0px 0px 0px 12px, rgb(255, 85, 85) 0px 0px 0px 15px;

45

Gallery Icon

Click to copy shadow

box-shadow: rgb(204, 219, 232) 3px 3px 6px 0px inset, rgba(255, 255, 255, 0.5) -3px -3px 6px 1px inset;

46

Gallery Icon

Click to copy shadow

box-shadow: rgba(136, 165, 191, 0.48) 6px 2px 16px 0px, rgba(255, 255, 255, 0.8) -6px -2px 16px 0px;

47

Gallery Icon

Click to copy shadow

box-shadow: rgba(17, 17, 26, 0.1) 0px 1px 0px;

48

Gallery Icon

Click to copy shadow

box-shadow: rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px;

49

Gallery Icon

Click to copy shadow

box-shadow: rgba(17, 17, 26, 0.1) 0px 0px 16px;

50

Gallery Icon

Click to copy shadow

box-shadow: rgba(17, 17, 26, 0.05) 0px 4px 16px, rgba(17, 17, 26, 0.05) 0px 8px 32px;

51

Gallery Icon

Click to copy shadow

box-shadow: rgba(17, 17, 26, 0.1) 0px 4px 16px, rgba(17, 17, 26, 0.05) 0px 8px 32px;

52

Gallery Icon

Click to copy shadow

box-shadow: rgba(17, 17, 26, 0.1) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 8px 24px, rgba(17, 17, 26, 0.1) 0px 16px 48px;

53

Gallery Icon

Click to copy shadow

box-shadow: rgba(17, 17, 26, 0.1) 0px 4px 16px, rgba(17, 17, 26, 0.1) 0px 8px 24px, rgba(17, 17, 26, 0.1) 0px 16px 56px;

54

Gallery Icon

Click to copy shadow

box-shadow: rgba(17, 17, 26, 0.1) 0px 8px 24px, rgba(17, 17, 26, 0.1) 0px 16px 56px, rgba(17, 17, 26, 0.1) 0px 24px 80px;

55

Gallery Icon

Click to copy shadow

box-shadow: rgba(50, 50, 105, 0.15) 0px 2px 5px 0px, rgba(0, 0, 0, 0.05) 0px 1px 1px 0px;

56

Gallery Icon

Click to copy shadow

box-shadow: rgba(0, 0, 0, 0.15) 0px 15px 25px, rgba(0, 0, 0, 0.05) 0px 5px 10px;

57

Gallery Icon

Click to copy shadow

box-shadow: rgba(0, 0, 0, 0.15) 2.4px 2.4px 3.2px;

58

Gallery Icon

Click to copy shadow

box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 3px 0px;

59

Gallery Icon

Click to copy shadow

box-shadow: rgba(0, 0, 0, 0.08) 0px 4px 12px;

60

Gallery Icon

Click to copy shadow

box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 8px;

61

Gallery Icon

Click to copy shadow

box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;

62

Gallery Icon

Click to copy shadow

box-shadow: rgba(0, 0, 0, 0.1) -4px 9px 25px -6px;

63

Gallery Icon

Click to copy shadow

box-shadow: rgba(0, 0, 0, 0.2) 0px 60px 40px -7px;

64

Gallery Icon

Click to copy shadow

box-shadow: rgba(0, 0, 0, 0.4) 0px 30px 90px;

65

Gallery Icon

Click to copy shadow

box-shadow: rgba(0, 0, 0, 0.2) 0px 20px 30px;

66

Gallery Icon

Click to copy shadow

box-shadow: rgba(0, 0, 0, 0.25) 0px 0.0625em 0.0625em, rgba(0, 0, 0, 0.25) 0px 0.125em 0.5em, rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset;

67

Gallery Icon

Click to copy shadow

box-shadow: rgba(0, 0, 0, 0.09) 0px 3px 12px;

68

Gallery Icon

Click to copy shadow

box-shadow: rgba(14, 63, 126, 0.04) 0px 0px 0px 1px, rgba(42, 51, 69, 0.04) 0px 1px 1px -0.5px, rgba(42, 51, 70, 0.04) 0px 3px 3px -1.5px, rgba(42, 51, 70, 0.04) 0px 6px 6px -3px, rgba(14, 63, 126, 0.04) 0px 12px 12px -6px, rgba(14, 63, 126, 0.04) 0px 24px 24px -12px;

WhatsappWhatsApp Now