Put this in a ui template node and set msg.className
to widget (the widget bit can be whatever you like)
<style>
.nr-dashboard-text.widget > p.value {
font-weight:initial;
}
</style
This perhaps explains it better How to use pay load in one text output trigger color applied to another? - Dashboard - Node-RED Forum (nodered.org)