SOLVED

SharePoint Online Custom Theme No Customize

%3CLINGO-SUB%20id%3D%22lingo-sub-303710%22%20slang%3D%22en-US%22%3ESharePoint%20Online%20Custom%20Theme%20No%20Customize%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-303710%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20trying%20to%20create%20a%20custom%20theme%20with%20the%20%22strong%22%20background%20type.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%20There%20is%20no%20customize%20button%20on%20custom%20theme%20and%20I%20do%20not%20see%20any%20json%20schema%20property%20for%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDoes%20anyone%20know%20if%20this%20is%20possible%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20345px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F63119i98F1698BE8B5981C%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22strong.png%22%20title%3D%22strong.png%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20394px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F63120iC483FF18D7B0C4D8%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22strong2.png%22%20title%3D%22strong2.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-304276%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20Online%20Custom%20Theme%20No%20Customize%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-304276%22%20slang%3D%22en-US%22%3E%3CP%3EIf%20anyone%20is%20interested%2C%20there%20is%20a%20new%20web%20property%20in%20the%20latest%20version%20of%20csom%3C%2FP%3E%3CUL%3E%3CLI%3Epublic%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Eproperty%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3EMicrosoft.SharePoint.Client.Web.HeaderEmphasis%3C%2FLI%3E%3C%2FUL%3E%3CP%3ESo%20setting%20this%20via%20code%20allows%20a%20custom%20theme%20to%20be%20used%20with%20a%20strong%20background%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ee.g.%20context.Web.HeaderEmphasis%20%3D%20SPVariantThemeType.Strong%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

I am trying to create a custom theme with the "strong" background type.

 

However There is no customize button on custom theme and I do not see any json schema property for it.

 

 

Does anyone know if this is possible?

 

Thanks

strong.pngstrong2.png

1 Reply
Highlighted
Best Response confirmed by NotAlex (Contributor)
Solution

If anyone is interested, there is a new web property in the latest version of csom

  • public property Microsoft.SharePoint.Client.Web.HeaderEmphasis

So setting this via code allows a custom theme to be used with a strong background

 

e.g. context.Web.HeaderEmphasis = SPVariantThemeType.Strong;