PowerPoint Custom Color Theme Saved as XML: How to Edit Manually
🔍 WiseChecker

PowerPoint Custom Color Theme Saved as XML: How to Edit Manually

When you create a custom color theme in PowerPoint, the program saves it as an XML file inside the theme file. This XML file defines every color used in your presentation, from background fills to hyperlink text. You might need to edit this XML file directly when PowerPoint does not let you set a specific RGB value through the standard interface or when you want to batch-update colors across multiple themes without reapplying them one by one. This article explains how to locate, open, and edit the color theme XML file in PowerPoint on Windows 11 and Windows 10.

Key Takeaways: Editing PowerPoint Color Theme XML Files

  • File > Save As > .thmx format: Saves your current color theme as a standalone file you can open with a ZIP utility.
  • Rename .thmx to .zip: Lets you browse the internal XML files, including the color theme XML.
  • theme1.xml inside the theme folder: Contains all color mapping tags such as a:dk1, a:lt1, a:accent1 through a:accent6.

ADVERTISEMENT

Why PowerPoint Stores Color Themes as XML

PowerPoint uses the Office Open XML format for all theme files. A color theme is not stored as a simple list of hex codes inside the program. Instead, PowerPoint writes the color definitions into an XML file that follows a strict schema defined by Microsoft. This XML file lives inside a .thmx file, which is essentially a ZIP archive that contains several XML documents.

The color theme XML defines twelve color slots: two dark colors, two light colors, six accent colors, and two hyperlink colors. Each slot expects a specific RGB value expressed as a hex string with an alpha channel prefix. For example, a solid red is written as FF000000 where FF is the alpha value and 000000 is the RGB hex. When you edit colors through the PowerPoint interface, the program writes these values into the XML automatically. But when you need a color that is not available in the standard picker, or when you want to replace an entire palette at once, editing the XML directly is faster and more precise.

The XML schema also supports tint and shade transformations, but the base color is always an absolute hex value. If you only change the hex value in the XML, PowerPoint will apply that exact color everywhere that slot is used in your presentation.

Prerequisites Before You Edit the Color Theme XML

You need three things before you start editing the XML file:

  • A .thmx file: Create one by applying your custom color theme to a blank presentation, then go to File > Save As and choose the Office Theme (.thmx) format.
  • A file extraction tool: 7-Zip, WinRAR, or the built-in ZIP extraction in Windows 11 and Windows 10 all work.
  • A plain text editor: Notepad works, but Notepad++ or Visual Studio Code is better because they show XML syntax highlighting.

Do not edit the XML file inside the original .pptx file. Always work on a copy of the .thmx file. If you break the XML, PowerPoint will not load the theme and you will have to recreate it from scratch.

ADVERTISEMENT

Steps to Extract and Edit the Color Theme XML

  1. Save your custom color theme as a .thmx file
    Open a blank presentation in PowerPoint. Go to the Design tab, click the More arrow in the Variants group, select Colors, then Customize Colors. Set your desired colors in the dialog and name the theme. Click Save. Then go to File > Save As, choose a location, and in the Save as type dropdown select Office Theme (.thmx). Click Save.
  2. Change the file extension from .thmx to .zip
    Open File Explorer and navigate to the folder where you saved the .thmx file. Right-click the file and choose Rename. Replace .thmx with .zip. Click Yes when Windows warns you about changing the extension.
  3. Extract the ZIP archive
    Right-click the renamed .zip file and select Extract All. Choose a destination folder and click Extract. Alternatively, open the file with 7-Zip and extract the contents manually.
  4. Locate the color theme XML file
    Inside the extracted folder, open the folder named theme. You will see one or more XML files. The main color theme file is usually named theme1.xml. Open this file in Notepad or your preferred text editor.
  5. Find the color mapping section
    Search for the tag <a:clrScheme>. This tag contains all twelve color slots. Each slot is defined by a tag like <a:dk1>, <a:lt1>, <a:accent1> through <a:accent6>, <a:hlink>, and <a:folHlink>. Below each tag you will see an <a:srgbClr val="RRGGBB"/> element where RRGGBB is the hex color value.
  6. Edit the hex values
    Change the value inside the val attribute to your desired hex color. For example, change val="4472C4" to val="FF5733" for a bright orange. Save the file after editing.
  7. Recompress the files back into a .thmx file
    Select all the extracted files and folders inside your extraction folder. Right-click and choose Send to > Compressed (zipped) folder. Name the new ZIP file with a .thmx extension, for example mycustomtheme.thmx. Windows may warn you again about the extension—click Yes.
  8. Apply the edited theme in PowerPoint
    Open PowerPoint and go to Design > More arrow in the Themes group > Browse for Themes. Navigate to your edited .thmx file and double-click it. The theme and its colors will appear in the theme gallery. Apply it to any slide to see the updated colors.

Common Mistakes When Editing Color Theme XML

PowerPoint does not load the theme after editing

The most common cause is an XML syntax error. A missing closing tag, a stray quotation mark, or an invalid hex value will break the file. Open the XML file in a browser like Chrome or Edge. If the browser shows a parsing error, the XML is malformed. Fix the error by comparing your edited file with the original backup.

Colors appear different from what you typed

PowerPoint interprets the hex value as a six-digit RGB code without a leading hash symbol. If you include a hash symbol or use a three-digit shorthand, PowerPoint will ignore the value and fall back to the default theme color. Always use six hex digits. Also check that the alpha prefix is not present—PowerPoint does not use the alpha channel in color theme slots.

The edited theme only applies to the current presentation

If you saved the edited .thmx file but PowerPoint still shows the old colors, you may have applied the wrong file. Make sure the file name ends with .thmx, not .zip. Also verify that you recompressed the files at the root level—do not put the files inside another folder inside the ZIP archive. The theme folder must be directly inside the ZIP root.

PowerPoint Color Theme XML Editing vs Standard Interface Editing

Item XML Editing Standard Interface Editing
Color precision Any six-digit hex value, including colors not shown in the picker Limited to the color picker dialog and predefined theme colors
Batch updates Change all twelve color slots in one file edit Must open Customize Colors dialog and change each slot individually
Error risk XML syntax errors can break the theme No risk of file corruption
Required tools Text editor and ZIP utility PowerPoint only
Reusability Edit one .thmx file and share it across multiple presentations Must save each custom theme separately

You can now edit any color in a PowerPoint custom theme by directly modifying the XML inside the .thmx file. Try this method when you need a specific brand color that is missing from the standard palette. As an advanced tip, you can also edit the <a:dk2> and <a:lt2> slots to fine-tune the dark and light variants that PowerPoint uses for text and backgrounds in different slide layouts.

ADVERTISEMENT