# Dashboard - set background color of text node

**URL:** <https://discourse.nodered.org/t/dashboard-set-background-color-of-text-node/3357>\
**Category:** FAQs\
**Created:** [22 September 2018 08:06 UTC](https://discourse.nodered.org/t/dashboard-set-background-color-of-text-node/3357 "2018-09-22T08:06:27Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Andrei](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrei/32/10446_2.png) [@Andrei](https://discourse.nodered.org/u/Andrei)\
**Post date:** [22 September 2018 13:49 UTC](https://discourse.nodered.org/t/dashboard-set-background-color-of-text-node/3357/3 "2018-09-22T13:49:59Z")

</div>

> [@RogierQ](#):
>
> make the background color of a text node dynamic.

I don´t know what you mean by "dynamic". If you want to change the text color based on a msg property (that you can change dynamically) then flow below will do the trick. You can even change the color of the label.

```auto
[{"id":"e0f0c459.bbf218","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"976557a0.10d4d8","type":"ui_text","z":"e0f0c459.bbf218","group":"9e2bac96.b321b","order":0,"width":"6","height":"1","name":"Colored text","label":"<font color= {{msg.strongcolor}} > Display </font>","format":"<font color= {{msg.color}} > {{msg.payload}} </font>","layout":"row-spread","x":590,"y":140,"wires":[]},{"id":"c6bcdbe4.6822b8","type":"inject","z":"e0f0c459.bbf218","name":"","topic":"","payload":"Your payload","payloadType":"str","repeat":"","crontab":"","once":true,"onceDelay":"","x":210,"y":140,"wires":[["94c95548.2b6ae8"]]},{"id":"94c95548.2b6ae8","type":"change","z":"e0f0c459.bbf218","name":"Set colors","rules":[{"t":"set","p":"color","pt":"msg","to":"lime","tot":"str"},{"t":"set","p":"strongcolor","pt":"msg","to":"red","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":400,"y":140,"wires":[["976557a0.10d4d8"]]},{"id":"9e2bac96.b321b","type":"ui_group","z":"","name":"S1","tab":"62712bbf.888b94","disp":false,"width":"6","collapse":false},{"id":"62712bbf.888b94","type":"ui_tab","z":"","name":"Home","icon":"dashboard"}]

```

![r-01](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/9/91e79fce8ac1eb13bc3194403a7b51f31baa35ea.png)

---

_[View the full topic](https://discourse.nodered.org/t/dashboard-set-background-color-of-text-node/3357)._
