MKTG-419: moved the theming function from mktg to base as it is used in docs as well