As promised, a working example. I have changed the name of the tab and group to NewTab and NewGroup. So in the CSS the selector has to change to #NewTab_NewGroup p.nr-dashboard-cardtitle
[
{
"id": "1e42289fcf94667f",
"type": "tab",
"label": "NewFlow",
"disabled": false,
"info": "",
"env": []
},
{
"id": "d2958868e553c501",
"type": "ui_text",
"z": "1e42289fcf94667f",
"group": "3ea1fadd3bc0aaf2",
"order": 0,
"width": 0,
"height": 0,
"name": "Some more text",
"label": "Some widgets here",
"format": "Some widgets here",
"layout": "col-center",
"className": "",
"x": 600,
"y": 140,
"wires": []
},
{
"id": "e653c4b8419a952d",
"type": "ui_text",
"z": "1e42289fcf94667f",
"group": "3ea1fadd3bc0aaf2",
"order": 0,
"width": 0,
"height": 0,
"name": "Some text",
"label": "Some widgets here",
"format": "Some widgets here",
"layout": "col-center",
"className": "",
"x": 580,
"y": 100,
"wires": []
},
{
"id": "17c75cbb5ea47c46",
"type": "ui_template",
"z": "1e42289fcf94667f",
"group": "3ea1fadd3bc0aaf2",
"name": "CSS",
"order": 7,
"width": 0,
"height": 0,
"format": "<style>\n #NewTab_NewGroup p.nr-dashboard-cardtitle {\n color: {{msg.payload}};\n }\n</style>",
"storeOutMessages": true,
"fwdInMessages": true,
"resendOnRefresh": true,
"templateScope": "local",
"className": "",
"x": 390,
"y": 120,
"wires": [
[]
]
},
{
"id": "7cf179c8871e23dd",
"type": "inject",
"z": "1e42289fcf94667f",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "red",
"payloadType": "str",
"x": 210,
"y": 100,
"wires": [
[
"17c75cbb5ea47c46"
]
]
},
{
"id": "266e1c32d5c1b971",
"type": "inject",
"z": "1e42289fcf94667f",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "lime",
"payloadType": "str",
"x": 210,
"y": 140,
"wires": [
[
"17c75cbb5ea47c46"
]
]
},
{
"id": "3ea1fadd3bc0aaf2",
"type": "ui_group",
"name": "NewGroup",
"tab": "0c98b713961b07d2",
"order": 1,
"disp": true,
"width": "6",
"collapse": false,
"className": ""
},
{
"id": "0c98b713961b07d2",
"type": "ui_tab",
"name": "NewTab",
"icon": "dashboard",
"disabled": false,
"hidden": false
}
]
Edit - I just noticed the template node has an info: section copied from the original post and not relevant, so I reposted the code without it