Skip to main content
Question

Change node variable mode "colors" (dark/light)


i don’t understand how to get/change the Variable Colors ( attachments ).

I have tried with:
node.explicitVariableModes

returns

  1. VariableCollectionId:40c5f4548782159b892edfd652d27d35b5f9081c/615:36: “44:7”
  2. VariableCollectionId:b93b2bafcb7f84578fad5e994cf74df004d34dff/163:227: “22:1”

node.resolvedVariableModes
returns

  1. VariableCollectionId:2fa18f0d2c75c27375296186fbd6bacb02e6a4f2/44:320: “30:1”
  2. VariableCollectionId:20:16028: “20:0”
  3. VariableCollectionId:40c5f4548782159b892edfd652d27d35b5f9081c/615:36: “44:7”
  4. VariableCollectionId:40c5f4548782159b892edfd652d27d35b5f9081c/655:10: “44:7”
  5. VariableCollectionId:19772dd791691e7d36f7691aba81518885124d94/44:415: “44:4”
  6. VariableCollectionId:b93b2bafcb7f84578fad5e994cf74df004d34dff/163:227: “22:1”

With this data i can’t know which is which or the actual value.

This topic has been closed for replies.

2 replies

tank666
  • 4873 replies
  • January 15, 2024

To get variable modes for a node:

node.explicitVariableModes

To set variable mode for a node:

figma.com

Thank you so much!


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