Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The light effect in tailwind

Tags:

tailwind-css

How to implement the light effect in tailwind? Need the icon to shine.

Example (watch first icon):

enter image description here

Tried to make it through "box-shadow" changing the color of the shadow to white. The effect is not like i wanted: a shadow is formed on the borders of the icon.

Currently implemented via css:

.box-shadow-hover:hover {
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.50));
 }

Is this possible in tailwind ?

like image 981
DEN TRE Avatar asked Sep 12 '25 22:09

DEN TRE


1 Answers

For anyone want just quick copy here is add this to tailwind config

-> https://tailwindcss.com/docs/theme

extend: {
  dropShadow: {
    glow: [
      "0 0px 20px rgba(255,255, 255, 0.35)",
      "0 0px 65px rgba(255, 255,255, 0.2)"
    ]
  }
}
like image 121
Saif Tarek Avatar answered Sep 14 '25 15:09

Saif Tarek



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!