Several of these variables could be replaced with better use of classes/CSS. 

e.g. Add a class indicating the type of node (i.e. isApp) on the root span. Then `.app .entityIconSize { .. }` and `.entity .entityIconSize { .. }` in CSS files. Has the benefit of making the source of particular styles obvious.