Blog

Claude Code mods and custom themes: make Claude Code look and work the way you do

You spend hours a day in Claude Code. It should feel like yours. Custom themes take two minutes; mods go much further, adding panes, commands and guardrails that run inside Claude Code itself. Here's how both work, and the one warning to take seriously.

Editorial policy

There's a small, real joy in making a tool yours. The color of the prompt. A pane that shows exactly what you care about. A guard that stops you, kindly, before a force push you'd regret.

Claude Code now gives you two levels of that: custom themes (two minutes, zero risk) and mods (powerful, and worth a moment of caution). Here's how both work, straight from Anthropic's docs.

Part 1: Custom themes

The quick way

Run /theme (or open the theme picker in /config). Pick a built-in preset, or choose New custom theme… at the bottom. You name it, then override individual color tokens with a live preview. Press Ctrl+E on a custom theme to edit it later.

Pick auto if you just want Claude Code to follow your terminal's light or dark background.

The file way

Every custom theme is a JSON file in ~/.claude/themes/. Three optional fields (terminal config docs):

Field What it does
name The label shown in /theme
base Preset to start from: dark, light, dark-daltonized, light-daltonized, dark-ansi, light-ansi
overrides Color tokens to change; everything else falls through to the base

Anthropic's own example, a Dracula-style theme:

{
  "name": "Dracula",
  "base": "dark",
  "overrides": {
    "claude": "#bd93f9",
    "error": "#ff5555",
    "success": "#50fa7b"
  }
}

Save it as ~/.claude/themes/dracula.json. Colors accept #rrggbb, #rgb, rgb(r,g,b), ansi256(n) or ansi:<name>. Claude Code watches the folder and reloads on save, so you can tweak in your editor while a session runs. (If the folder didn't exist when Claude Code started, restart once.)

Plugins can ship themes too. They show up in /theme alongside yours. And if you need accessible colors, the -daltonized presets are designed for colorblind-friendly contrast.

Part 2: Mods

Themes change colors. Mods change behavior. A mod is a plugin made of JavaScript or TypeScript event handlers that Claude Code calls when something happens: a tool call, a submitted prompt, part of the interface being drawn. The handler can watch, change, or take over.

What mods can do that nothing else can

Settings hooks, skills, status lines and MCP servers all work from outside Claude Code. Mods run inside it, so they can:

  • Draw an interface: a pane beside the transcript or a band above the prompt, with tabs, buttons and text fields
  • Redraw Claude Code itself: restyle a tool call's row or the spinner
  • Step into a tool call: hold it while you're asked a question, answer it without running the tool, or send a request to a different model
  • Add instant commands: a /command that runs your function immediately, even while Claude is working
  • Share state between hooks: count tool calls in one hook, show the count beside the spinner in another

Some of Claude Code's own features are mods already, including /diff. Mods work in the CLI (v2.1.287+), the Desktop app's Code tab (v2.1.286+) and the VS Code extension.

Three sample mods worth trying

Anthropic publishes samples in the claude-code-playground repository, shared as-is without support:

  • token-weather: a "forecast" of your context window above the prompt
  • blast-radius: holds risky commands like rm -rf or a force push, shows what they'd change, and gives you proceed and cancel buttons
  • replay-theater: a /replay command that steps through the edits Claude made last turn

Clone the repo and load one for a single session with --plugin-dir, then run /plugin to confirm it loaded.

Make your own

The easiest route is to describe what you want in a Claude Code session and let Claude write the mod. A minimal mod is three files: .claude-plugin/plugin.json, hooks/hooks.json and hooks/register.js. Install finished mods with /plugin install name@marketplace, and run /reload-plugins if you installed from the shell mid-session.

The warning to take seriously

This is the part we'd underline twice. Anthropic is blunt: a mod is code that runs with your permissions, and it isn't sandboxed. Once loaded, a mod can:

  • read and write any file your account can, start programs and make network requests
  • read your environment variables and settings, including API keys
  • see every prompt and tool call, and rewrite them
  • approve tool calls without asking you (a built-in guard blocks this for user mods by default)
  • spend your usage by calling models

It can't restyle the permission prompt, which is a thoughtful line to draw. Before installing someone else's mod, run:

claude plugin validate ./some-mod

The hooks: and calls: lines show what it listens to and what it asks Claude Code to do, without running it.

To switch mods off: disable one in /plugin, use --safe-mode for a clean session, or set "disableAllHooks": true in ~/.claude/settings.json. Organizations can restrict mods with managed settings.

Where to go next

Themes and mods are the personal layer. For the team layer, read how Anthropic's own teams use Claude Code, then pick your plugins and write a solid AGENTS.md. And if Claude Code stops responding mid-customization, here's how to tell whether Claude Code is down.

FAQ

How do I make a custom theme in Claude Code?

Run /theme and choose New custom theme at the end of the list, then name it and override individual color tokens with a live preview. Or create a JSON file in ~/.claude/themes/ with optional name, base (dark, light, dark-daltonized, light-daltonized, dark-ansi or light-ansi) and overrides fields. Claude Code reloads the folder automatically.

What is a Claude Code mod?

A mod is a plugin made of JavaScript or TypeScript event handlers that run inside Claude Code. It can draw panes and buttons, restyle parts of the interface such as the spinner, hold or rewrite tool calls, and add slash commands that run instantly without a Claude turn.

How do I install a Claude Code mod?

Mods install like any plugin: run /plugin install name@marketplace in a session or claude plugin install name@marketplace in your shell. You can also describe what you want and ask Claude to write the mod. Mods need Claude Code v2.1.287 or later in the terminal, or v2.1.286 in the Desktop app.

Are Claude Code mods safe?

Only as safe as their author. Anthropic warns a mod runs with your permissions and isn't sandboxed: it can read and write your files, read environment variables including API keys, see every prompt and tool call, and spend your usage. Run claude plugin validate on a mod's folder to list what it does before installing.

How do I turn off Claude Code mods?

Disable or uninstall one in the Installed tab of /plugin, start a session with --safe-mode to skip all customizations once, or set disableAllHooks to true in ~/.claude/settings.json to stop every mod you installed. Organizations can restrict mods with managed settings.