Impossible to change color icon inconify

I apologize for calling on your knowledge once again:
here it is: I loaded this example of green apple icon, but when I try I have an apple of color of the "title" at the top of the band of node red is petrol blue. yet the color is specified in the script? No matter how much I change, it doesn't change anything.
where can it come from? thank you

[
    {
        "id": "5d7e2e4c.5ef6b",
        "type": "ui_template",
        "z": "4ab3cb90.f07ccc",
        "group": "11d854fd.c64afb",
        "name": "icon image",
        "order": 1,
        "width": "2",
        "height": "2",
        "format": "<iconify-icon data-icon=\"mdi:food-apple\" style=\"font-size: 64px; color: #3C8A3F;\"></iconify-icon>",
        "storeOutMessages": false,
        "fwdInMessages": true,
        "resendOnRefresh": false,
        "templateScope": "local",
        "x": 310,
        "y": 200,
        "wires": [
            []
        ]
    },
    {
        "id": "11d854fd.c64afb",
        "type": "ui_group",
        "z": "",
        "name": "heure",
        "tab": "9f36b601.175468",
        "order": 1,
        "disp": false,
        "width": 25,
        "collapse": false
    },
    {
        "id": "9f36b601.175468",
        "type": "ui_tab",
        "z": "",
        "name": "Station Météo",
        "icon": "dashboard",
        "order": 1,
        "disabled": false,
        "hidden": false
    }
]

Thing is, the element where color needs to be changed is the <path> in svg icon. And there is dashboard default which affects in the way
.nr-dashboard-theme .nr-dashboard-template path { fill: #09771b; }

But you can make your own rule for icon

<iconify-icon id="myIcon" data-icon="mdi:food-apple" style="font-size: 64px;"></iconify-icon>
<style>
    #myIcon > path{
        fill: red;
    }
</style>

ok is GOOD ! !

Or slightly less complicated you can use the Dashboard SIte tab to set
image

which turn off the Node-RED theme just in templates so then you are ok...

image

thank you all!
without you, I will not succeed!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.