# Dashboard 2.0 dynamic entries in ui-text

**URL:** https://discourse.nodered.org/t/dashboard-2-0-dynamic-entries-in-ui-text/85837
**Category:** Dashboard
**Tags:** dashboard-2
**Created:** [23 February 2024 23:23 UTC](https://discourse.nodered.org/t/dashboard-2-0-dynamic-entries-in-ui-text/85837 "2024-02-23T23:23:33Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![antiguasky](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/antiguasky/32/37605_2.png) [@antiguasky](https://discourse.nodered.org/u/antiguasky)
#### Post date: [23 February 2024 23:23 UTC](https://discourse.nodered.org/t/dashboard-2-0-dynamic-entries-in-ui-text/85837/1 "2024-02-23T23:23:33Z")

</div>

I'm just getting started with Dashboard 2.0 and have run in to a hurdle. I use the switch node fairly often in Dashboard 1.0 to dynamically change the color of the ui-text node as values change. I'm trying to apply a template node to the new ui-text node. The css in the template is below. All of the formatting works in Dashboard 1.0. In Dashboard 2.0 only the background-color is being picked up. Are .label and . value no longer accepted?

```auto
<style>

.num1 {

background-color: #66ccff;

}

.num1 > .label {

color: green !important;

font-size: 24px !important;

font-weight: 800 !important;

}

.num1 > .value {

color: blue !important;

font-size: 24px !important;

font-weight: 800 !important;

}

</style>

```

---

<div class="post-metadata">

### Author: ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)
#### Post date: [24 February 2024 07:37 UTC](https://discourse.nodered.org/t/dashboard-2-0-dynamic-entries-in-ui-text/85837/2 "2024-02-24T07:37:17Z")

</div>

Discussed lately here [Really basic problem trying to set CSS for a text box in Dashboard 2](https://discourse.nodered.org/t/really-basic-problem-trying-to-set-css-for-a-text-box-in-dashboard-2/85470)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [25 March 2024 07:37 UTC](https://discourse.nodered.org/t/dashboard-2-0-dynamic-entries-in-ui-text/85837/3 "2024-03-25T07:37:25Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
