Skip to main content
Aritra_Banerjee
September 11, 2023
Solved

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

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!

This topic has been closed for replies.
James_Yang
James_YangSolution
Figmate
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

4 replies

James_Yang
Figmate
James_YangSolution
Figmate
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
September 12, 2023

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

June 9, 2024

How do you do it with non text nodes?

Gleb
Power Member
June 9, 2024

For vector nodes you can use vector network:

figma.com