SharePoint custom theme toggles to a default Blue after a published site page refresh.

%3CLINGO-SUB%20id%3D%22lingo-sub-3200870%22%20slang%3D%22en-US%22%3ESharePoint%20custom%20theme%20toggles%20to%20a%20default%20Blue%20after%20a%20published%20site%20page%20refresh.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3200870%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20created%20a%20SharePoint%20subsite%20and%20applied%20a%20custom%20theme%20to%20it.%20The%20page%20looks%20good%20until%20I%20publish%20it.%20After%20it%20is%20published%2C%20once%20I%20refresh%20the%20page%2C%20it%20quickly%20toggles%20to%20a%20default%20blue%20theme.%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Smriti_Abbey_0-1645561417674.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F350468i1C28555E4CDB30EF%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Smriti_Abbey_0-1645561417674.png%22%20alt%3D%22Smriti_Abbey_0-1645561417674.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThe%20theme%20was%20created%20using%20the%20custom%20PowerShell%20script%20as%20below%2C%3C%2FP%3E%3CP%3E%24themepalette%20%3D%20%40%7B%3CBR%20%2F%3E%22themePrimary%22%20%3D%20%22%23e81a2b%22%3B%3CBR%20%2F%3E%22themeLighterAlt%22%20%3D%20%22%23fef5f6%22%3B%3CBR%20%2F%3E%22themeLighter%22%20%3D%20%22%23fbd8db%22%3B%3CBR%20%2F%3E%22themeLight%22%20%3D%20%22%23f8b6bb%22%3B%3CBR%20%2F%3E%22themeTertiary%22%20%3D%20%22%23f1707b%22%3B%3CBR%20%2F%3E%22themeSecondary%22%20%3D%20%22%23eb3342%22%3B%3CBR%20%2F%3E%22themeDarkAlt%22%20%3D%20%22%23d11726%22%3B%3CBR%20%2F%3E%22themeDark%22%20%3D%20%22%23b01320%22%3B%3CBR%20%2F%3E%22themeDarker%22%20%3D%20%22%23820e18%22%3B%3CBR%20%2F%3E%22neutralLighterAlt%22%20%3D%20%22%23f8f8f8%22%3B%3CBR%20%2F%3E%22neutralLighter%22%20%3D%20%22%23f4f4f4%22%3B%3CBR%20%2F%3E%22neutralLight%22%20%3D%20%22%23eaeaea%22%3B%3CBR%20%2F%3E%22neutralQuaternaryAlt%22%20%3D%20%22%23dadada%22%3B%3CBR%20%2F%3E%22neutralQuaternary%22%20%3D%20%22%23d0d0d0%22%3B%3CBR%20%2F%3E%22neutralTertiaryAlt%22%20%3D%20%22%23c8c8c8%22%3B%3CBR%20%2F%3E%22neutralTertiary%22%20%3D%20%22%23595959%22%3B%3CBR%20%2F%3E%22neutralSecondary%22%20%3D%20%22%23373737%22%3B%3CBR%20%2F%3E%22neutralPrimaryAlt%22%20%3D%20%22%232f2f2f%22%3B%3CBR%20%2F%3E%22neutralPrimary%22%20%3D%20%22%23000000%22%3B%3CBR%20%2F%3E%22neutralDark%22%20%3D%20%22%23151515%22%3B%3CBR%20%2F%3E%22black%22%20%3D%20%22%230b0b0b%22%3B%3CBR%20%2F%3E%22white%22%20%3D%20%22%23ffffff%22%3B%3CBR%20%2F%3E%7D%3C%2FP%3E%3CP%3EAdd-SPOTheme%20-Identity%20%22ThemeName%22%20-Palette%20%24themepalette%20-IsInverted%20%24false%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3200870%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ECustom%20Theme%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EModern%20Site%20Pages%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharepoint%20and%20Teams%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Designer%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Developer%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Modern%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%20Management%20Shell%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%20Office%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%20Powershell%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharepointOnline%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

I have created a SharePoint subsite and applied a custom theme to it. The page looks good until I publish it. After it is published, once I refresh the page, it quickly toggles to a default blue theme. 

Smriti_Abbey_0-1645561417674.png

The theme was created using the custom PowerShell script as below,

$themepalette = @{
"themePrimary" = "#e81a2b";
"themeLighterAlt" = "#fef5f6";
"themeLighter" = "#fbd8db";
"themeLight" = "#f8b6bb";
"themeTertiary" = "#f1707b";
"themeSecondary" = "#eb3342";
"themeDarkAlt" = "#d11726";
"themeDark" = "#b01320";
"themeDarker" = "#820e18";
"neutralLighterAlt" = "#f8f8f8";
"neutralLighter" = "#f4f4f4";
"neutralLight" = "#eaeaea";
"neutralQuaternaryAlt" = "#dadada";
"neutralQuaternary" = "#d0d0d0";
"neutralTertiaryAlt" = "#c8c8c8";
"neutralTertiary" = "#595959";
"neutralSecondary" = "#373737";
"neutralPrimaryAlt" = "#2f2f2f";
"neutralPrimary" = "#000000";
"neutralDark" = "#151515";
"black" = "#0b0b0b";
"white" = "#ffffff";
}

Add-SPOTheme -Identity "ThemeName" -Palette $themepalette -IsInverted $false

0 Replies