I have card components which use smadows in Light mode, but can I disable them in Dark mode using Variables? Can’t figure it out. Thanks 🙂
Page 1 / 1
I don’t think it’s possible at the moment, but Figma plans to add support for variables in other places soon (some are described on the link bellow). You might need to wait a little bit
Figma Help CenterHi @Stanislav_Knopp,
As Harrol mentioned it is not possible directly, but you can work with boolean properties for variants in combination with boolean variables per mode. Added screenshot for explanation.
@Edwart Thank you very much 🙂
Great solution, unfortunately if you try to nest an instance of that card into another component that relationship gets stripped out.
As long as you don’t nest it - that solution will work 🙂
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.