Skip to main content
Solved

No appropriate data in API response for fills - figma.mixed

  • September 11, 2023
  • 4 replies
  • 745 views

Aritra_Banerjee

There is no data in API response by which I can determine the exact color of a design if fills is Figma.mixed. I am working on a plugin and this seems to be an issue that has been bothering me for a very long time.

Need your help guys!

Best answer by James_Yang

If you’re referring to mixed fills from a text node, then that means some characters have different fills from other characters. There are text-node-specific APIs that let you get more information:

figma.com
View original
This topic has been closed for replies.

4 replies

James_Yang
Figmate
  • Figmate
  • 82 replies
  • Answer
  • September 11, 2023

If you’re referring to mixed fills from a text node, then that means some characters have different fills from other characters. There are text-node-specific APIs that let you get more information:

figma.com

Gleb
  • Power Member
  • 4708 replies
  • September 12, 2023

Mixed fills can exist not only on text. Here is a more extensive answer with a code example.


  • 1 reply
  • June 9, 2024

How do you do it with non text nodes?


Gleb
  • Power Member
  • 4708 replies
  • June 9, 2024

For vector nodes you can use vector network:

figma.com

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