# Dashboard 2: Setting the side navigation bar color and font

**URL:** https://discourse.nodered.org/t/dashboard-2-setting-the-side-navigation-bar-color-and-font/98131
**Category:** Dashboard
**Tags:** dashboard-2
**Created:** [14 July 2025 12:23 UTC](https://discourse.nodered.org/t/dashboard-2-setting-the-side-navigation-bar-color-and-font/98131 "2025-07-14T12:23:28Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![rakgupta](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rakgupta/32/42535_2.png) [@rakgupta](https://discourse.nodered.org/u/rakgupta)
#### Post date: [14 July 2025 12:23 UTC](https://discourse.nodered.org/t/dashboard-2-setting-the-side-navigation-bar-color-and-font/98131/1 "2025-07-14T12:23:28Z")

</div>

Hello:

Experimenting with moving from DB1 to DB2. I've gotten one page to work (almost) but I'm trying to figure out how to replicate the "dark" theme from DB1 for the side navigation panel.

**DB1 Example:**

 ![Screenshot 2025-07-14 at 6.55.41 AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/6/2686b4ad8f5e9a51be4b16f20e862b100ebd186e.png)

**DB2 Example:**

 ![Screenshot 2025-07-14 at 6.56.40 AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/a/0ae403ab444bd31442b33a7c8047f3f712a2f181.png)

**ui-theme node**

 ![Screenshot 2025-07-14 at 7.11.01 AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/9/5954f20a8afddde57bf8aab5a0921428af453217.png)

What I would like to do is have the background color on the navigation panel be black, the text size to be larger (it looks squished).

I don't have any CSS experience to please be gentle. Thanks for your help 🙏🏼

Also, does anyone know why the outline of the text boxes in the DB2 example (date picker - "Select Date" and drop downs - "Devices (All)" and "Event Type") are different sizes?

---

<div class="post-metadata">

### Author: ![gerrybartley](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerrybartley/32/67495_2.png) [@gerrybartley](https://discourse.nodered.org/u/gerrybartley)
#### Post date: [14 July 2025 12:54 UTC](https://discourse.nodered.org/t/dashboard-2-setting-the-side-navigation-bar-color-and-font/98131/2 "2025-07-14T12:54:42Z")

</div>

For the sidebar although this changes header too.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/5/85c2f4215501f624e73a77f0a622b72e4c5380cc.png)

Or with css

```auto
.v-list-item {
    background-color: teal!important;
  }

```

For the menu items text size

```auto
.v-list-item-title {
    font-size: 1.2rem!important;
  }

```

---

<div class="post-metadata">

### Author: ![rakgupta](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rakgupta/32/42535_2.png) [@rakgupta](https://discourse.nodered.org/u/rakgupta)
#### Post date: [14 July 2025 13:28 UTC](https://discourse.nodered.org/t/dashboard-2-setting-the-side-navigation-bar-color-and-font/98131/3 "2025-07-14T13:28:51Z")

</div>

> [@gerrybartley](#):
>
> Or with css

Thanks so much for the quick response. I’m assuming that if I put those in a template node and make the scope “CSS (All Pages)” that will work? Or do I need to do something different?

**EDIT:** That fixed the colors/size for the list items, but the background for the panel is still "green".

 ![Screenshot 2025-07-14 at 8.40.07 AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/c/fca989d602ef75d429b70538ab2d3879256ba88f.png)

I think I need to be doing something with .v-navigation-drawer but not certain what property I should be setting

---

<div class="post-metadata">

### Author: ![gerrybartley](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerrybartley/32/67495_2.png) [@gerrybartley](https://discourse.nodered.org/u/gerrybartley)
#### Post date: [14 July 2025 13:43 UTC](https://discourse.nodered.org/t/dashboard-2-setting-the-side-navigation-bar-color-and-font/98131/4 "2025-07-14T13:43:25Z")

</div>

Yes ui-template Widget ui-scoped should do the trick  
Wrap in `<style> </style>`

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/2/42cde4b4becb5f6d3ddf3764564a3f79293915eb.png)

---

<div class="post-metadata">

### Author: ![rakgupta](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rakgupta/32/42535_2.png) [@rakgupta](https://discourse.nodered.org/u/rakgupta)
#### Post date: [14 July 2025 13:55 UTC](https://discourse.nodered.org/t/dashboard-2-setting-the-side-navigation-bar-color-and-font/98131/5 "2025-07-14T13:55:41Z")

</div>

> [@gerrybartley](#):
>
> Yes ui-template Widget ui-scoped should do the trick  
> Wrap in `<style> </style>`

Unfortunately, that did not change the color for the background of the navigation panel (still looks the same as the screenshot I posted above (black background on menu items and text is larger). Below is the configuration of ui-template

 ![Screenshot 2025-07-14 at 8.53.20 AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/c/ec0f4e2aff96b49c3b6131f5ea50557c0f4a4ded.png)

---

<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: [14 July 2025 13:58 UTC](https://discourse.nodered.org/t/dashboard-2-setting-the-side-navigation-bar-color-and-font/98131/6 "2025-07-14T13:58:57Z")

</div>

You can style the header independently with

```auto
.v-app-bar.v-toolbar {
background: aliceblue;
color: darkslategrey;
}

```

and the sidebar with

```auto
.v-navigation-drawer__content {
    background: #9900ff;
    color: aliceblue;
}

```

And IMHO a template to define CSS should be type CSS (Single page) or (All pages), in which case `<style> ... </style>` tags are forbidden 🤔

Is there a difference between type widget and type CSS? I dunno. Maybe a CSS template does not occupy any space on the dashboard. I wouldn't bet on it though.

---

<div class="post-metadata">

### Author: ![gerrybartley](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerrybartley/32/67495_2.png) [@gerrybartley](https://discourse.nodered.org/u/gerrybartley)
#### Post date: [14 July 2025 14:02 UTC](https://discourse.nodered.org/t/dashboard-2-setting-the-side-navigation-bar-color-and-font/98131/7 "2025-07-14T14:02:43Z")

</div>

@jbudd That is definitely the way to go

---

<div class="post-metadata">

### Author: ![rakgupta](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rakgupta/32/42535_2.png) [@rakgupta](https://discourse.nodered.org/u/rakgupta)
#### Post date: [14 July 2025 14:06 UTC](https://discourse.nodered.org/t/dashboard-2-setting-the-side-navigation-bar-color-and-font/98131/8 "2025-07-14T14:06:55Z")

</div>

> [@jbudd](#):
>
> and the sidebar with
> 
> ```auto
> .v-navigation-drawer__content {
> background: #9900ff;
> color: aliceblue;
> }
> 
> ```

Thanks so much! That did it. I did change it to CSS (All Pages) and removed the "" tags.

This is what it the template node config is now:

```auto
.v-list-item {
    background-color: black !important;
}
.v-list-item-title {
    font-size: 1.1rem !important;
}
.v-navigation-drawer__content {
background: black;
color: aliceblue;
}

```

And this is what it looks like:

 ![Screenshot 2025-07-14 at 9.03.30 AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/b/5b914e6484149f2c02fd04c690212be8beeb8e24.png)

@gerrybartley @jbudd - Thanks again for all your help 🙏🏼

---

<div class="post-metadata">

### Author: ![joepavitt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/joepavitt/32/59722_2.png) [@joepavitt](https://discourse.nodered.org/u/joepavitt)
#### Post date: [14 July 2025 15:48 UTC](https://discourse.nodered.org/t/dashboard-2-setting-the-side-navigation-bar-color-and-font/98131/9 "2025-07-14T15:48:11Z")

</div>

> [@jbudd](#):
>
> Maybe a CSS template does not occupy any space on the dashboard. I wouldn't bet on it though.

That is the correct assumption

---

<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: [28 July 2025 15:48 UTC](https://discourse.nodered.org/t/dashboard-2-setting-the-side-navigation-bar-color-and-font/98131/10 "2025-07-28T15:48:30Z")

</div>

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