I use hotNip`s gauge and I need to change the color of the needle and the value text according to the value of gauge.
if (v< 50) {
//change needle and text color to #FFFF99
} else if (time < 80) {
//change needle and text color to #0000FF
} else {
//change needle and text color to #EC173A
}
Be aware, if you use more than one gauge on your dashboard and you change this in one gauge - it still affects for all gauges. There is more than one ways to prevent this happening.
You also wanted that same color to be applied as text color for the value field
That takes to change that g-val class rule to have