# Simple Gauge is not accepting color variables

**URL:** <https://forum.inductiveautomation.com/t/simple-gauge-is-not-accepting-color-variables/83560>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [December 27, 2023, 10:26pm UTC](https://forum.inductiveautomation.com/t/simple-gauge-is-not-accepting-color-variables/83560 "2023-12-27T22:26:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Torsten\_Giesbrecht1](https://avatars.discourse-cdn.com/v4/letter/t/f17d59/32.png) [@Torsten\_Giesbrecht1](https://forum.inductiveautomation.com/u/Torsten_Giesbrecht1)\
**Post date:** [December 27, 2023, 10:26pm UTC](https://forum.inductiveautomation.com/t/simple-gauge-is-not-accepting-color-variables/83560/1 "2023-12-27T22:26:11Z")

</div>

Seems like the simple gauge is not accepting color variables? Is this normal? Other components like the icon seem to work.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/0/c0d0bde182013e8f9d5b6e716da8fd954d267e24.png)

---

<div class="post-metadata">

**Author:** ![David\_Stone](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/david_stone/32/79749_2.png) [@David\_Stone](https://forum.inductiveautomation.com/u/David_Stone)\
**Post date:** [December 27, 2023, 10:31pm UTC](https://forum.inductiveautomation.com/t/simple-gauge-is-not-accepting-color-variables/83560/2 "2023-12-27T22:31:39Z")

</div>

Use `var(--seq-5)` instead.  
Also sometimes the inbuilt designer preview won't show it, so load it in a browser to test.

---

<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:** [December 27, 2023, 10:32pm UTC](https://forum.inductiveautomation.com/t/simple-gauge-is-not-accepting-color-variables/83560/3 "2023-12-27T22:32:22Z")

</div>

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 binding on each of the session color variables.

---

<div class="post-metadata">

**Author:** ![Torsten\_Giesbrecht1](https://avatars.discourse-cdn.com/v4/letter/t/f17d59/32.png) [@Torsten\_Giesbrecht1](https://forum.inductiveautomation.com/u/Torsten_Giesbrecht1)\
**Post date:** [December 27, 2023, 11:58pm UTC](https://forum.inductiveautomation.com/t/simple-gauge-is-not-accepting-color-variables/83560/4 "2023-12-27T23:58:01Z")

</div>

I tried that, didn't work either.
