4

In our new Modern Sites we can change the themes easily from a list of default ones. As shown below.

enter image description here

Now as per my assumptions the names of these default themes are Red, Blue, Orange etc.

I am provisioning new Modern Sites using PnP code. I have seen many articles mentioning easy to create a custom theme and set them. (PS cmd: Set-PnPWebTheme OR c#: Tenant.SetWebTheme)

But how can we set one of the default ones? Like while provisioning a modern site I want to set "Red" as a default theme for my site collection.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.