# Turning Styles on/off Perspective

**URL:** <https://forum.inductiveautomation.com/t/turning-styles-on-off-perspective/70437>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [February 28, 2023, 8:07pm UTC](https://forum.inductiveautomation.com/t/turning-styles-on-off-perspective/70437 "2023-02-28T20:07:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gerry\_Dion](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@Gerry\_Dion](https://forum.inductiveautomation.com/u/Gerry_Dion)\
**Post date:** [February 28, 2023, 8:07pm UTC](https://forum.inductiveautomation.com/t/turning-styles-on-off-perspective/70437/1 "2023-02-28T20:07:25Z")

</div>

I'm trying to tie fill colors and styling to labels based on a boolean. For example an opc tag "pump\_run status" = true ... I'd like the background fill color of a label to go green.

I'm not able to turn the style on/off or tie this condition to background-color.

Any help would be appreciated!

Thanks

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [February 28, 2023, 8:15pm UTC](https://forum.inductiveautomation.com/t/turning-styles-on-off-perspective/70437/2 "2023-02-28T20:15:30Z")

</div>

Add `backgroundColor` to your style class, then bind a tag expression to it with a map transform.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/4/b40f58d60f827644aac0bbf897aff9105d678cae.png)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/6/e66580c9c308965e928f7c1412dde7c429c08f53.png)

---

<div class="post-metadata">

**Author:** ![andrew.budaiev](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/andrew.budaiev/32/72921_2.png) [@andrew.budaiev](https://forum.inductiveautomation.com/u/andrew.budaiev)\
**Post date:** [March 1, 2023, 3:38am UTC](https://forum.inductiveautomation.com/t/turning-styles-on-off-perspective/70437/3 "2023-03-01T03:38:08Z")

</div>

A lot of useful information here.  
[Creating dynamic colors - Ignition - Inductive Automation Forum](https://forum.inductiveautomation.com/t/creating-dynamic-colors/70146/15)
