Search code examples
office-js

Manage Office accent colors with Office Javascript API


I'm writing a PowerPoint enterprise plugin to manage our customer's color themes. I need to read / set Office color themes, including accent colors.

I see there is a Office.context.officeTheme property, but there are only 4 of a total of 12 colors. Also, when I change one of the colors, it creates a new color pallete rather than modify the current pallete.

Is there a better way to manage color themes with Office JS? Maybe a hacky way with XML?


Solution

  • Thank you for bringing this to our attention! Currently there is no direct API to operate PowerPoint themes, We track Office Add-in feature requests on our Microsoft 365 Developer Platform Ideas Forum, please add your request there.