Skip to main content

How to Edit variables code syntax based on current mode


When I edit code syntax for variables, I want to set default value based on the current layer
For Example, I have a blue-1 variable, when I change to dev mode, I want this code syntax change to:

  • var(blue-1, #e6f4ff) for Light mode;
  • var(blue-1, #111a2c) for Dark mode
    How I can achieve this ? Is there any api to get the current mode value ? Thanks

2 replies

George_B1
  • New Participant
  • 7 replies
  • August 3, 2024

Hey, found an answer to this issue?
The more I explore Variables, the more I see that Figma dropped the ball on this feature, which is very limited.


y_toku
Figmate
  • Community Support
  • 2487 replies
  • August 6, 2024

Hi all,

Thanks for the great feedback! Unfortunately, this feature isn’t available at the moment. I’ll move the category to “Share an Idea” so we can see how much community support it gets.

Thanks,
Toku


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings