Error deploying new Sharepoint theme

Kerry Wilson 0 Reputation points
2024-07-16T11:02:50.53+00:00

I'm trying to create a new theme for a Sharepoint site. Entered this:

User's image

But got the above error, can you help me?

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,273 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Haoyan Xue_MSFT 22,381 Reputation points Microsoft Vendor
    2024-07-17T02:08:14.8266667+00:00

    Hi @Kerry Wilson ,

    Try using the following template deploy new Sharepoint theme, replacing the parameters in it with your own data.

    $themeName = "Corporate Blue"
    
    $corppalette = @{
    "themePrimary" = "#00547e";
    "themeLighterAlt" = "#000305";
    "themeLighter" = "#000d14";
    "themeLight" = "#001925";
    "themeTertiary" = "#00324b";
    "themeSecondary" = "#00496e";
    "themeDarkAlt" = "#0e618a";
    "themeDark" = "#25759c";
    "themeDarker" = "#5094b6";
    "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 -Name $themeName -Palette $corppalette -IsInverted:$false -Overwrite
    

    This can be execute successfully in my end as per my test, and the new theme can be apply to my tenant also. 76643-image.png 76578-image.png


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.