Skip to content

ppt theme

zmworm edited this page Apr 4, 2026 · 26 revisions

PowerPoint: Theme

Access and modify the presentation theme colors and fonts.

Path: /theme

Operations

  • get - Returns theme colors and fonts
  • set - Modify theme color values

Get Attributes

Key Type Description
name string Theme name
dk1 string Dark 1 color (#RRGGBB)
dk2 string Dark 2 color (#RRGGBB)
lt1 string Light 1 color (#RRGGBB)
lt2 string Light 2 color (#RRGGBB)
accent1 string Accent 1 color (#RRGGBB)
accent2 string Accent 2 color (#RRGGBB)
accent3 string Accent 3 color (#RRGGBB)
accent4 string Accent 4 color (#RRGGBB)
accent5 string Accent 5 color (#RRGGBB)
accent6 string Accent 6 color (#RRGGBB)
hyperlink string Hyperlink color (#RRGGBB)
followedhyperlink string Followed hyperlink color (#RRGGBB)
headingFont string Heading font family
bodyFont string Body font family

Set Properties

Property Aliases Description
dk1 dark1 Dark 1 color
dk2 dark2 Dark 2 color
lt1 light1 Light 1 color
lt2 light2 Light 2 color
accent1 - Accent 1 color
accent2 - Accent 2 color
accent3 - Accent 3 color
accent4 - Accent 4 color
accent5 - Accent 5 color
accent6 - Accent 6 color
hyperlink hlink Hyperlink color
followedhyperlink folhlink Followed hyperlink color

Examples

# Get theme
officecli get pres.pptx /theme

# Set accent color
officecli set pres.pptx /theme --prop accent1=FF6B35

# Set multiple theme colors
officecli set pres.pptx /theme --prop dk1=1A1A2E --prop accent1=4472C4 --prop accent2=ED7D31

# Set hyperlink color
officecli set pres.pptx /theme --prop hyperlink=0563C1

Based on OfficeCLI v1.0.33

Clone this wiki locally