Ah right - so the theme responsible is set to
p, h1, h2, h3, h4 {
color: @widgetTextColor !important;
background-color : @widgetBorderColor !important;
}
So they are forced to the theme colours to try to make everything behave
However the easy way out is to use the setting in the Site settings tab
which turns off the Node-RED theme inside the template - so you can then override more easily...