Is there any way to get the custom modern theme being used by a site collection? I'm trying to reproduce a bunch of site collections and I'd rather not have to do this by hand.

There is an ApplyTheme method but no get theme? ThemeInfo only seems to be classic themes.

1 Answer 1


I would suggest to check out the property


When a site's theme has been customized, a new folder will be generated and stored under _catalogs/theme/Themed/XXX and this property contains the reference to to it.

If I'm not mistaken this stands true for both classic and modern themes.

You should be able to get and set this properly rather than ApplyTheme() which could potentially generate unwanted instances of the same theme.

More on this here,


  • Thanks, I did see that but it never clicked what it was for.
    – Bunzab
    Nov 12, 2019 at 8:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.