First of all thanks to Pawe艂 for developing the spo theme apply command.
As we know it supports applying the custom themes created. I was wondering if it is worth extending that command to support the out of the box themes as well? If yes, then I am happy to work on it based on one of my blogs.
Seems like a very nice addition indeed. Is there a way to retrieve the standard themes' colors dynamically instead of hard-coding them to avoid inconsistencies should they change in the future?
I'm not able to find an API which returns the standard themes' colours. The GetTenantThemingOptions endpoint returns all the custom themes. I will keep looking for other options. Any help is appreciated. Thank you.
If there is no API for it at this moment, then let's use hard-coded values for the time being and adjust in the future, if things change.
Ok @waldekmastykarz . I will start working on it. Would the command be something like spo theme apply --isOutOfTheBox --name Blue --webUrl https://contoso.sharepoint.com/sites/project-x
Let's use --sharePointTheme instead of --isOutOfTheBox to make it consistent with the UI.
Most helpful comment
Seems like a very nice addition indeed. Is there a way to retrieve the standard themes' colors dynamically instead of hard-coding them to avoid inconsistencies should they change in the future?