Skip to main content

POTX theme editor

Project description

potxkit

Make PowerPoint templates consistent without manual, slide-by-slide cleanup.

Install Claude Desktop Add to Cursor

Links

Why this exists

PowerPoint templates have been hard to understand and fix for decades. Most decks slowly drift as people paste content and override styles. Many PowerPoint libraries make this worse by embedding colors and fonts directly on each slide, which bypasses the slide master and makes the template effectively useless. potxkit fixes the root problem by moving formatting back into the theme, master, and layouts so the template stays in control.

PowerPoint styling hierarchy

PowerPoint styling is layered:

  1. Theme: global colors + fonts for the file.
  2. Slide master: the base look for all slides.
  3. Layouts: variations like “Title Slide,” “Section Header,” etc.
  4. Local overrides: formatting applied directly on a slide or shape.

When local overrides are everywhere, layouts and the master stop controlling the look. potxkit shows you where formatting is coming from and lets you push it back into the master/layouts so the deck behaves like a real template again.

Why potxkit + AI agents

Using a CLI to fix templates is powerful but not friendly. Running potxkit as an MCP server lets an AI agent apply the right sequence of audits and fixes for you—cleaning overrides, applying palettes, and standardizing layouts in minutes instead of hours.

  • Audit where colors/fonts/backgrounds/images are coming from.
  • Strip local overrides so layouts and masters drive the look.
  • Apply a consistent palette mapping across slides.
  • Set theme fonts, sizes, and layout images programmatically.
  • Let agents orchestrate the workflow with plain-language instructions.

What you can do

  • Audit decks to see which slides override the master (colors, text, backgrounds, images).
  • Normalize or strip local formatting so slides inherit from layouts/master.
  • Create a layout from an existing slide (shapes/images included) and apply it across ranges.
  • Apply palettes and font families across templates or decks.
  • Reindex/prune layouts and validate OOXML structure.

Choose your interface

MCP server (recommended for agents)

Runs over stdio and exposes all commands as tools.

uvx potxkit

Example config (docs/mcp.json):

{
  "mcpServers": {
    "potxkit": {
      "command": "uvx",
      "args": ["potxkit"]
    }
  }
}

CLI (recommended for humans)

poetry run potxkit-cli --help

SDK (recommended for developers)

from potxkit import PotxTemplate

tpl = PotxTemplate.open("template.potx")
tpl.theme.colors.set_accent(1, "#1F6BFF")
tpl.theme.fonts.set_major("Aptos Display")
tpl.save("brand-template.potx")

MCP client setup

potxkit runs as a local MCP server. Most clients accept this config:

{
  "mcpServers": {
    "potxkit": {
      "command": "uvx",
      "args": ["potxkit"]
    }
  }
}

One-click installs

  • Claude Desktop: download potxkit.mcpb from GitHub releases and install via Settings -> Extensions -> Advanced Settings -> Install Extension.
  • Cursor: Add to Cursor link:
    • cursor://anysphere.cursor-deeplink/mcp/install?name=potxkit&config=eyJwb3R4a2l0Ijp7ImNvbW1hbmQiOiJ1dngiLCJhcmdzIjpbInBvdHhraXQiXX19

CLI or config installs

Claude Code

claude mcp add --transport stdio potxkit -- uvx potxkit

If you already installed the Claude Desktop extension, you can import it:

claude mcp add-from-claude-desktop

Codex (OpenAI)

codex mcp add potxkit -- uvx potxkit

Or add to ~/.codex/config.toml (or project .codex/config.toml):

[mcp_servers.potxkit]
command = "uvx"
args = ["potxkit"]

Gemini CLI

Add to your project .gemini/settings.json under mcpServers:

{
  "mcpServers": {
    "potxkit": {
      "command": "uvx",
      "args": ["potxkit"]
    }
  }
}

Roo Code

Add to .roo/mcp.json (project) or mcp_settings.json (global):

{
  "mcpServers": {
    "potxkit": {
      "command": "uvx",
      "args": ["potxkit"]
    }
  }
}

Maintainer release checklist (one-click installs)

  • Tag a release (vX.Y.Z). GitHub Actions builds and uploads potxkit.mcpb using scripts/build_mcpb.py.
  • For local builds: python scripts/build_mcpb.py --version X.Y.Z.
  • If the MCP command or args change, update the Cursor deep link config (base64 of {\"potxkit\":{\"command\":\"uvx\",\"args\":[\"potxkit\"]}}).
  • Click both install links to verify they still open correctly.

Common workflows

Audit a deck to find local formatting:

poetry run potxkit-cli audit path/to/template.pptx --summary --group-by p,b,l

Create a new layout from slide 7 and apply it to a range:

poetry run potxkit-cli make-layout --from-slide 7 --name "Layout Bob" \
  --assign-slides 1-7,9-10 output.pptx --input path/to/template.pptx

Strip inline colors/fonts so slides inherit from layouts/master:

poetry run potxkit-cli set-slide --slides 1-11 --palette-none --fonts-none \
  output.pptx --input path/to/template.pptx

Normalize a deck to a palette mapping:

poetry run potxkit-cli normalize examples/mapping.json output.pptx \
  --input path/to/template.pptx --slides 1,3-5

Update theme colors, fonts, and friendly names:

poetry run potxkit-cli set-colors output.potx --input path/to/template.potx \
  --accent1 #1F6BFF --hlink #1F6BFF
poetry run potxkit-cli set-fonts output.potx --input path/to/template.potx \
  --major "Aptos Display" --minor "Aptos"
poetry run potxkit-cli set-theme-names output.potx --input path/to/template.potx \
  --theme "Code Janitor" --colors "Code Janitor Colors" --fonts "Code Janitor Fonts"

Images, palettes, fonts, and sizes

Add a background image to a layout:

poetry run potxkit-cli set-layout-bg --layout "Layout Bob" \
  --image path/to/hero.png output.pptx --input path/to/template.pptx

Add an image layer (x/y/w/h in inches unless --units emu):

poetry run potxkit-cli set-layout-image --layout "Layout Bob" \
  --image path/to/overlay.png --x 1 --y 1 --w 3 --h 2 \
  output.pptx --input path/to/template.pptx

Apply a palette mapping:

poetry run potxkit-cli normalize examples/mapping.json output.pptx \
  --input path/to/template.pptx --slides 1,3-5

Full palette file example (for apply-palette):

{
  "dark1": "#FFFFFF",
  "light1": "#0B0B0E",
  "dark2": "#2C2C34",
  "light2": "#E9ECF2",
  "accent1": "#1F6BFF",
  "accent2": "#E0328C",
  "accent3": "#F6A225",
  "accent4": "#6B3AF6",
  "accent5": "#38D3FF",
  "accent6": "#FF4D6D",
  "hlink": "#1F6BFF",
  "folHlink": "#C0186B",
  "majorFont": "Aptos Display",
  "minorFont": "Aptos"
}

What the keys mean (simple):

  • dark1, light1, dark2, light2: base theme colors PowerPoint uses for text/backgrounds.
  • accent1accent6: the six accent colors used for charts, shapes, and theme color picks.
  • hlink, folHlink: hyperlink and followed‑link colors.
  • majorFont, minorFont: theme font families (major = headings, minor = body).
poetry run potxkit-cli apply-palette examples/palette.json output.potx \
  --input path/to/template.potx

Set fonts:

poetry run potxkit-cli set-fonts output.potx --input path/to/template.potx \
  --major "Aptos Display" --minor "Aptos"

Set text sizes (points) and bold/regular for a layout:

poetry run potxkit-cli set-text-styles --layout "Layout Bob" \
  --title-size 30 --title-bold --body-size 20 --body-regular \
  output.pptx --input path/to/template.pptx

Examples

See examples/README.md for step-by-step walkthroughs and the reason each command exists.

SDK documentation

Full API reference in docs/SDK.md.

Project layout

  • src/potxkit/: library + MCP/CLI implementation
  • examples/: runnable scripts and sample inputs
  • docs/: reference docs and MCP config
  • tests/: pytest suite

Notes and limitations

  • potxkit edits theme data and slide/layout formatting. It does not render slides.
  • For complex branded layouts, start from a PowerPoint-authored .potx and use potxkit to standardize themes and remove local overrides.

License

MIT License. See LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

potxkit-0.2.4.tar.gz (63.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

potxkit-0.2.4-py3-none-any.whl (67.3 kB view details)

Uploaded Python 3

File details

Details for the file potxkit-0.2.4.tar.gz.

File metadata

  • Download URL: potxkit-0.2.4.tar.gz
  • Upload date:
  • Size: 63.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for potxkit-0.2.4.tar.gz
Algorithm Hash digest
SHA256 d86726aacbc306f6865f4e100cf8402a7918f9e1d12d34ec5f81dd9d2ce12c7a
MD5 91ff671c20b9311797b70e08caaced6e
BLAKE2b-256 109fc730471b708f8588360a2b00721005004040dc06815914ea01442f9de4d7

See more details on using hashes here.

Provenance

The following attestation bundles were made for potxkit-0.2.4.tar.gz:

Publisher: publish.yml on thevgergroup/potxkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file potxkit-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: potxkit-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 67.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for potxkit-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 120abf648ba1555db7b049774ef20a0b3705a3dc707a79ba0423a1af831a8bfe
MD5 f7bc5903e7db1131deb5fb843ecc43a8
BLAKE2b-256 386f3533dfe33b92c168cda5086512660dbec93463d2a7dfc9c13a5eecfd17d6

See more details on using hashes here.

Provenance

The following attestation bundles were made for potxkit-0.2.4-py3-none-any.whl:

Publisher: publish.yml on thevgergroup/potxkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page