# Perspective Gauge needle doesn't follow theme color

**URL:** <https://forum.inductiveautomation.com/t/perspective-gauge-needle-doesnt-follow-theme-color/98997>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [November 22, 2024, 2:42pm UTC](https://forum.inductiveautomation.com/t/perspective-gauge-needle-doesnt-follow-theme-color/98997 "2024-11-22T14:42:57Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [November 22, 2024, 3:00pm UTC](https://forum.inductiveautomation.com/t/perspective-gauge-needle-doesnt-follow-theme-color/98997/2 "2024-11-22T15:00:21Z")

</div>

See here:

> [@Simple Gauge is not accepting color variables](https://forum.inductiveautomation.com/t/simple-gauge-is-not-accepting-color-variables/83560/3):
>
> Yes, unfortunately. Most of the chart components are based on AMCharts (but I'm not sure if that includes the Simple Gauge) and they don't understand the CSS variables. I solved the problem by creating a folder of session variables with the same names as the built-in themes and assigned the hex RGB values to those. Then you can bind the color property to the session variables. It became a bit more of a nuisance when the project had a light and dark theme and I had to create an expression bindin…

and

> [@Change PowerChart background colour depending on session theme](https://forum.inductiveautomation.com/t/change-powerchart-background-colour-depending-on-session-theme/77186/2):
>
> The background color is set by plots.0.color, etc. Unfortunately the Perspective chart components are all third-party (mostly AM Charts) and don't know about the Perspective themes so we can't use theme variables such as --neutral-20, etc. My workaround has been to create a session custom variables for any colors I want and then create an expression binding on those. For example, if(left({this.props.theme}, 4) = 'dark', '#333333', '#dddddd' ) Then bind plots.0.color to that session prop. A…

---

_[View the full topic](https://forum.inductiveautomation.com/t/perspective-gauge-needle-doesnt-follow-theme-color/98997)._
