# How to retrieve "Site Sizes" from my custom node source code

**URL:** <https://discourse.nodered.org/t/how-to-retrieve-site-sizes-from-my-custom-node-source-code/9681>\
**Category:** Dashboard\
**Created:** [2 April 2019 07:41 UTC](https://discourse.nodered.org/t/how-to-retrieve-site-sizes-from-my-custom-node-source-code/9681 "2019-04-02T07:41:25Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![drmibell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/drmibell/32/8424_2.png) [@drmibell](https://discourse.nodered.org/u/drmibell)\
**Post date:** [3 April 2019 17:10 UTC](https://discourse.nodered.org/t/how-to-retrieve-site-sizes-from-my-custom-node-source-code/9681/15 "2019-04-03T17:10:57Z")

</div>

> [@hotNipi](#):
>
> Tried it and it's working very well
> 
> ```auto
> if (ui === undefined) {
> ui = RED.require("node-red-dashboard")(RED);
> }			
> console.log("sizes -> ",ui.getSizes());
> console.log("theme -> ",ui.getTheme());
> 
> ```

@dceejay, is this going to work inside a `function` node? It could answer the question I raised in [Custom icon color in dashboard switch widget](https://discourse.nodered.org/t/custom-icon-color-in-dashboard-switch-widget/9508).

---

_[View the full topic](https://discourse.nodered.org/t/how-to-retrieve-site-sizes-from-my-custom-node-source-code/9681)._
