Skip to main content
Aaron_Xu
Active Member
August 7, 2024
Solved

What is the tail in SolidPaint's boundVariables.color.id

  • August 7, 2024
  • 1 reply
  • 68 views

I am develop a plugin that can apply variable colors by some rule.
I found I need to assign the value like this:


I know that “e1b04111db373f08ec909607224cbaf0ff8aa032” is the variable’s id, but what is the “/2671:40” , and how do I acquire it?

I am using

const tokensCollection = libraryVariableCollections.find(collection => collection.name === "Tokens");
  if (tokensCollection) {
    const libraryVariables = await figma.teamLibrary.getVariablesInLibraryCollectionAsync(tokensCollection.key);

    const hoverlibraryVariable = libraryVariables.find(variable => variable.name.includes("Hover"));
    console.log(hoverlibraryVariable.key)
}

but it only get “e1b04111db373f08ec909607224cbaf0ff8aa032” part

This topic has been closed for replies.
Best answer by tank666
figma.com

1 reply

tank666
tank666Answer
August 8, 2024
UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank