Skip to main content
Solved

How to use Drop Shadow Effect as variable?

  • August 22, 2023
  • 3 replies
  • 2795 views

I’ve use all the colors by using hex code and made another set for dark mode.So when I change local varriable light mode to dark mode the black text turns to white. Absolutely working as expected. But I have some shadow in light mode using #000 and 25%… this is actually black shadow. So when I go into dark mode I want to make it as white shadow like #fff and 25%. How can I do that?

Best answer by Pavel_Kiselev

Layer effects are not supported. The only way you can workaround this is to create shadow component. Place a rectangle inside it, give it offset you need, apply layer blur, opacity and a colour you want.

Here is mine, these are outlines so you can see internals

And actual result

This topic has been closed for replies.

3 replies

Pavel_Kiselev
  • Power Member
  • 438 replies
  • Answer
  • August 23, 2023

Layer effects are not supported. The only way you can workaround this is to create shadow component. Place a rectangle inside it, give it offset you need, apply layer blur, opacity and a colour you want.

Here is mine, these are outlines so you can see internals

And actual result


  • Author
  • 1 reply
  • August 23, 2023

can you share this component?


Pavel_Kiselev
  • Power Member
  • 438 replies
  • August 23, 2023

Pard me? Where are your manners young man