Display Status of Boolean Tag

What is the best way to display the status of a boolean tag?
Think of it as a diagnostic screen for a digital input module on a PLC. I’m looking for a shape to change color from gray at value 0 or false to yellow at value 1 or true.
Apologies if this has been discussed before but I’ve been searching for days and can’t find the answer.

I’m away from the computer so can’t give a more detailed solution, however it basically looks like this.

  1. Configure a tag binding on property which controls the fill color you want to change.
  2. Add a map transform to the binding, mapping true to your true color, and false to your false color.

This works best if you use CSS variables or style classes but can work with hard coded colors as well.

That worked perfectly, thank you!