Forum Discussion
Unable to add custom theme to modern site
Adding a custom theme to SharePoint online is not new for me. However, for the past couple of days I have been trying to add a new theme to a new GCC tenant. I run the PS script in the SPO Management Shell and nothing happens. No errors and no new theme is available in any communication site nor any team site.
I have done the following so far:
- Updated the SharePoint Online Management Shell
- Reformatted my code 3 different ways to attempt to get it to work (all code is done in Notepad to eliminate any encoding issues)
- Tried loading this theme also into my Dev Tenant (E5 - Targeted Release) and it would not load there either
- Cleared my browser cache
- Tried using an in-Private browser to be sure I wasn't seeing pre-theme updates
Here is the code that I used after connecting to the SPOService for the tenant:
$themepalette = @{
"themePrimary" = "#03626b";
"themeLighterAlt" = "#eff8f9";
"themeLighter" = "#c3e4e7";
"themeLight" = "#95ced3";
"themeTertiary" = "#459ea6";
"themeSecondary" = "#12747d";
"themeDarkAlt" = "#035960";
"themeDark" = "#024b51";
"themeDarker" = "#02373c";
"neutralLighterAlt" = "#faf9f8";
"neutralLighter" = "#f3f2f1";
"neutralLight" = "#edebe9";
"neutralQuaternaryAlt" = "#e1dfdd";
"neutralQuaternary" = "#d0d0d0";
"neutralTertiaryAlt" = "#c8c6c4";
"neutralTertiary" = "#a19f9d";
"neutralSecondary" = "#605e5c";
"neutralSecondaryAlt" = "#8a8886";
"neutralPrimaryAlt" = "#3b3a39";
"neutralPrimary" = "#323130";
"neutralDark" = "#201f1e";
"black" = "#000000";
"white" = "#ffffff";
"primaryBackground" = "#fff";
"primaryText" = "#000"
}
Add-SPOTheme -Identity "CoM2" -Palette $themepalette -IsInverted $false
I also tried this version:
$themepalette = @{"themePrimary" = "#03626b";"themeLighterAlt" = "#eff8f9";"themeLighter" = "#c3e4e7";"themeLight" = "#95ced3";"themeTertiary" = "#459ea6";"themeSecondary" = "#12747d";"themeDarkAlt" = "#035960";"themeDark" = "#024b51";"themeDarker" = "#02373c";"neutralLighterAlt" = "#faf9f8";"neutralLighter" = "#f3f2f1";"neutralLight" = "#edebe9";"neutralQuaternaryAlt" = "#e1dfdd";"neutralQuaternary" = "#d0d0d0";"neutralTertiaryAlt" = "#c8c6c4";"neutralTertiary" = "#a19f9d";"neutralSecondary" = "#605e5c";"neutralSecondaryAlt" = "#8a8886";"neutralPrimaryAlt" = "#3b3a39";"neutralPrimary" = "#323130";"neutralDark" = "#201f1e";"black" = "#000000";"white" = "#ffffff"}
Add-SPOTheme -Identity "CoM2" -Palette $themepalette -IsInverted $false
I was just reading about a content type issue that is going on which hasn't been reported as an issue and I'm wondering if there is something bigger afoot here at Microsoft? Is anyone else having any issues with custom theme setup? I know none of us do them that often - although this is probably the 5th one I've setup this year so far for my clients.
Thanks in advance.