Perspective Gauge needle doesn't follow theme color

I've created a gauge and I'm trying to change the needle color based on the theme. I tried setting the color to --neutral-20, but the needle stays black, no errors on the component. I tried var(--needle-20) and I get an error that it's not a valid color.

I ended up writing a script to change the color manually based on the theme, and that got it to work, but is there a better solution or is this a bug?

See here:

and

1 Like