Draw in the interface with a mod changedplugins/mods/interface
Nearest release: v2.1.325, published 3 hours before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Upstream edited this page at 13 Nov 2026 23:25 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 13 Nov 2026 23:37 UTC.
Upstream edited
Recorded here
Lines+37added
Lines−1removed
From line
434
where the diff opens
First seen
1 Oct 2026
this site's first read of the page
Recorded edits36to this page, all time
### Change the colors of the Desktop app
The whole hunk
from line 434, old and new numbered
/
from line 434
434434
435435* **The `backdrop` fields**: `scene` is a [name](https://code.claude.com/docs/en/plugins/mods/reference.md#limits) you choose for a backdrop your hook draws. For the other fields and `overrideColorScheme`, see [the types for your build](https://code.claude.com/docs/en/plugins/mods/create.md#get-the-types-for-your-build).
436436* **Whether the backdrop is drawn**: `$.theme.set` resolves with `isDrawn: true` when a Desktop or mobile app connected to the session says it draws backdrops. Otherwise `isDrawn` is `false` and `reason` says why.
437* **One backdrop for each session**: a `$.theme.set` call replaces the session's backdrop and `$.theme.clear()` removes that backdrop, whichever mod set it. Call `$.theme.clear()` only when the user asks for it.
437* **One theme for each session**: a mod that calls `$.theme.set` replaces the session's backdrop and [colors](#change-the-colors-of-the-desktop-app), and a mod that calls `$.theme.clear()` removes them, whichever mod set them. Call `$.theme.clear()` only when the user asks for it.
438
439### Change the colors of the Desktop app
440
441To change the colors of the Desktop app's Code tab, start a local session there, [ask Claude for a mod](https://code.claude.com/docs/en/plugins/mods/create.md#ask-claude-for-a-mod), and describe the colors you want. For example, ask for `a mod that makes the app cream in light mode and dark brown in dark mode`. Asking for colors requires Claude Code v2.1.324 or later, so [check your version](https://code.claude.com/docs/en/plugins/mods/overview.md#turn-mods-on-or-off) first. Claude Code in the terminal keeps its own colors.
442
443To set the colors in a mod you write, pass them to `$.theme.set` as `colors`, which requires Claude Code v2.1.321 or later. Build that value from a few hex colors with `makeColors`. To get it, ask Claude to copy `make-colors.js` and `make-colors.d.ts` from its `plugin-authoring` skill into your mod's `hooks/` directory, which requires v2.1.324 or later. This `hooks/register.js` sets colors for light mode and dark mode when a session starts:
444
445```javascript theme={null}
446import { makeColors } from './make-colors.js'
447
448const { theme } = makeColors({
449 label: 'Paper',
450 // surface-0 is the background, text-primary is the main text, and text-muted is the faint text
451 light: {
452 gray: { anchors: { 'surface-0': '#efe6d3', 'text-primary': '#2a241d', 'text-muted': '#6a5f50' } },
453 },
454 dark: {
455 gray: { anchors: { 'surface-0': '#1f1a15', 'text-primary': '#f0e7d7', 'text-muted': '#aca08d' } },
456 },
457})
458
459export function register(on) {
460 on('session.start', async ($, e, next) => {
461 await $.theme.set({ colors: theme })
462 return next(e)
463 })
464}
465```
466
467To try the example, [put the mod's directory under `~/.claude/skills/`](https://code.claude.com/docs/en/plugins/create#scaffold-a-plugin-that-loads-every-session), then start a local session in the Code tab. The background is cream in light mode and dark brown in dark mode.
468
469Here's what to do if the colors don't change, disappear, or stay when you no longer want them:
470
471* **The colors don't change**: one cause is a theme that `makeColors` or the app refuses. Ask Claude to run the mod's `makeColors` call. Have Claude fix any error the call throws, and any entry in the `problems` list it returns that starts `Desktop won't paint this theme`.
472* **The colors or the [backdrop](#put-a-backdrop-behind-the-conversation) disappear**: pass `colors` and `backdrop` in the same `$.theme.set` call, and use one mod at a time that sets a theme.
473* **The colors stay when you no longer want them**: move the mod's directory out of `~/.claude/skills/`, or out of the [session's mods folder](https://code.claude.com/docs/en/plugins/mods/create.md#ask-claude-for-a-mod) if Claude wrote the mod. Start a new local session in the Code tab. If the colors are still there, go to **Settings > Appearance** or **Settings > Claude Code**, and select **Remove colors**.
438474
439475## Build a tree from elements
440476
No line in this hunk matches that.