Change icon color based on API key/value response

Hello low/no coders :slight_smile:

I need some help for changing the color of and icon, or even the text color, based on an page variable that I am using to store a code color based on api response…
the api responde looks like this:

{“Shape”: “Circle”,
“Size”: “small”,
“Color”: “#CC0000”}

so I am storing the “color” key inside a page variable and using this variable to define the color of an icon.
But it is not working



You can set on page variable type color with that value and then edit the icon style and bind that page variable to the color property of the style