# Request: Add a option on UI nodes to add a CSS class

**URL:** <https://discourse.nodered.org/t/request-add-a-option-on-ui-nodes-to-add-a-css-class/18918>\
**Category:** Core Development\
**Created:** [8 December 2019 16:31 UTC](https://discourse.nodered.org/t/request-add-a-option-on-ui-nodes-to-add-a-css-class/18918 "2019-12-08T16:31:19Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [8 December 2019 19:15 UTC](https://discourse.nodered.org/t/request-add-a-option-on-ui-nodes-to-add-a-css-class/18918/2 "2019-12-08T19:15:42Z")

</div>

Did you spot this thread a day or so ago ?

> [@How to change ui-text background color?](https://discourse.nodered.org/t/how-to-change-ui-text-background-color/18854/10):
>
> If I make the CSS more targetable you could do this by adding a style template like \<style\> .nr-dashboard-widget-Test\_text { background-color:red !important; } \</style\> (by using the label to help set the class...) Any good ?

---

_[View the full topic](https://discourse.nodered.org/t/request-add-a-option-on-ui-nodes-to-add-a-css-class/18918)._
