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

Hi,
as long as you have the ui object you should be able to both

    var sizes = ui.getSizes();
    var theme = ui.getTheme();