[#7802] make it easier for a custom theme to extend macros
[#7802] make it possible for a child theme to re-use all the resources from the parent