Add -SPOTheme not using colours (Help!!!)

Copper Contributor

Hello,

 

using the SharePoint Online Management Tool I'm trying to add a theme as below.

 

@{
"themePrimary" = "#8ec63f";
"themeLighterAlt" = "#fafdf6";
"themeLighter" = "#ebf6db";
"themeLight" = "#daeebe";
"themeTertiary" = "#b8dd83";
"themeSecondary" = "#9ace53";
"themeDarkAlt" = "#80b339";
"themeDark" = "#6c9730";
"themeDarker" = "#506f24";
"neutralLighterAlt" = "#f8f8f8";
"neutralLighter" = "#f4f4f4";
"neutralLight" = "#eaeaea";
"neutralQuaternaryAlt" = "#dadada";
"neutralQuaternary" = "#d0d0d0";
"neutralTertiaryAlt" = "#c8c8c8";
"neutralTertiary" = "#c2c2c2";
"neutralSecondary" = "#858585";
"neutralPrimaryAlt" = "#4b4b4b";
"neutralPrimary" = "#333333";
"neutralDark" = "#272727";
"black" = "#1d1d1d";
"white" = "#ffffff";
"primaryBackground" = "#ffffff";
"primaryText" = "#333333";
"bodyBackground" = "#ffffff";
"bodyText" = "#333333";
"disabledBackground" = "#f4f4f4";
"disabledText" = "#c8c8c8";
}
Add-SPOTheme -Identity "Green" -Palette $themepalette -IsInverted $false -Overwrite

 

While the process itself works and I can add a theme it isn't using the correct colors.  Once the theme is added and I do a Get-SPOTheme -Name "Green" | ConvertTo-Json it comes back as below.  For some reason its using different colours...

 

PS C:\WINDOWS\system32> Get-SPOTheme -Name "Green" | ConvertTo-Json
{
"Name": "Green",
"Palette": {
"themeLight": "#affefe",
"themeTertiary": "#76ffff",
"black": "#000000",
"neutralSecondary": "#666666",
"neutralTertiaryAlt": "#c8c8c8",
"themeSecondary": "#39ffff",
"themeDarker": "#005252",
"primaryBackground": "#fff",
"neutralQuaternary": "#d0d0d0",
"neutralPrimaryAlt": "#3c3c3c",
"neutralPrimary": "#333",
"themeDark": "#009090",
"themeLighter": "#daffff",
"neutralTertiary": "#a6a6a6",
"neutralQuaternaryAlt": "#dadada",
"themeLighterAlt": "#f3fcfc",
"white": "#fff",
"neutralSecondaryAlt": "#767676",
"neutralLighter": "#f4f4f4",
"neutralLight": "#eaeaea",
"neutralDark": "#212121",
"themeDarkAlt": "#00c4c4",
"neutralLighterAlt": "#f8f8f8",
"primaryText": "#333",
"themePrimary": "#00ffff"
},
"IsInverted": false
}
PS C:\WINDOWS\system32>

 

 

Thanks

1 Reply

Help!!!!!

 

:)