# Changing switch foreground color dynamicly

**URL:** <https://discourse.nodered.org/t/changing-switch-foreground-color-dynamicly/92257>\
**Category:** Dashboard\
**Created:** [9 October 2024 09:14 UTC](https://discourse.nodered.org/t/changing-switch-foreground-color-dynamicly/92257 "2024-10-09T09:14:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [9 October 2024 09:18 UTC](https://discourse.nodered.org/t/changing-switch-foreground-color-dynamicly/92257/2 "2024-10-09T09:18:58Z")

</div>

I posted an example flow at [https://discourse.nodered.org/t/css-styling-ui-button-widgets-on-dashboard-2/90969](https://discourse.nodered.org/t/css-styling-ui-button-widgets-on-dashboard-2/90969) showing some examples of styling ui-buttons on dashboard 2, including changing the button label colour (see the Bilge Pump button)

ps your picture shows a switch and 4 buttons. I assume, despite the title, that you are referring to the buttons?

---

_[View the full topic](https://discourse.nodered.org/t/changing-switch-foreground-color-dynamicly/92257)._
