# How to add css as per the login?

**URL:** <https://discourse.nodered.org/t/how-to-add-css-as-per-the-login/52360>\
**Category:** Developing Nodes\
**Created:** [18 October 2021 11:03 UTC](https://discourse.nodered.org/t/how-to-add-css-as-per-the-login/52360 "2021-10-18T11:03:47Z")\
**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:** [18 October 2021 13:08 UTC](https://discourse.nodered.org/t/how-to-add-css-as-per-the-login/52360/2 "2021-10-18T13:08:04Z")

</div>

Assuming that your Dashboard nodes are up to date, you can pass msg.className to a dashboard widget to change the widget class and so apply custom CSS.

You might get some tips from [this post](https://discourse.nodered.org/t/dynamic-css-changes-in-dashboard-v3beta/50866) where widgets' appearance is changed by clicking buttons.

---

_[View the full topic](https://discourse.nodered.org/t/how-to-add-css-as-per-the-login/52360)._
