agentsclimarketplace

Whitelabel theme

Skill jakubkrzysztofsikora/claude-theme/.claude/skills/whitelabel-theme

Apply, preview, and manage custom themes for Claude's interfaceFrom its SKILL.md

Install
npx -y skills add jakubkrzysztofsikora/claude-theme --skill whitelabel-theme

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

12.0 KB, as published. Nobody here has run it

White-Label Theme Manager

A zero-dependency theming system for Claude that enables custom color schemes, typography, logos, and terminal styling through a browser extension and CLI toolchain.

How It Works

The theming system operates through a bidirectional CLI browser bridge:

  1. Theme JSON files define design tokens (colors, fonts, logos) in a declarative format
  2. The CLI compiler (build-theme.js) reads theme files and generates a Chrome extension
  3. The browser extension injects CSS custom properties and custom fonts into Claude's web interface
  4. Message passing between the CLI and extension enables live theme switching
  5. Terminal colors are compiled into a Claude Code custom theme at ~/.claude/themes/<id>.json, referenced by "theme": "custom:<id>" in ~/.claude/settings.json

Architecture Overview

Theme JSON  build-theme.js   Chrome Extension   Claude Web UI
    |            |                  |                  |
    |--read---->|                  |                  |
    |            |--generate------>|                  |
    |            |  manifest.json   |                  |
    |            |  inject.js       |--inject CSS vars->|
    |            |  styles.css      |  + fonts         |
    |            |  background.js   |  + logo swap     |
    |            |  popup.html      |                  |
    |            |                  |<--runtime msg----|
    |            |<--message relay--|                  |
    |--validate->|                  |                  |
    |--preview-->| (http server)    |                  |
    |--apply---->| (themes/<id>.json + settings theme str) |
    |--reset---->| (remove theme file + clear str)  |

Data Flow

  1. Compile phase: Theme JSON is parsed, validated, and baked into inject.js as a THEME_DATA constant
  2. Injection phase: The content script creates a CSSStyleSheet with CSS custom properties on :root
  3. Font loading: If a font URL is specified, the FontFace API loads it before applying
  4. Logo replacement: A MutationObserver watches for the sidebar logo element and swaps it
  5. SPA navigation: The observer persists across React re-renders and route changes
  6. CLI communication: chrome.runtime.onMessage handles theme update/reset commands from the CLI

Commands

Apply a Theme

/apply-theme <theme-id>

Applies a theme by compiling it and updating the active configuration.

Behind the scenes:

  1. Validates the theme JSON against themes/schema.json
  2. Compiles the terminal/tokens.color values into a Claude Code custom theme written to ~/.claude/themes/<id>.json ({ name, base, overrides }) and sets "theme": "custom:<id>" (a string) in ~/.claude/settings.json. Any previously-applied whitelabel theme file is pruned. Restart Claude Code or re-select via /theme to load it.
  3. Compiles and outputs the browser extension to extension/
  4. Displays instructions for loading the extension in Chrome

List Available Themes

/list-themes

Scans the themes/ directory for all valid theme folders and displays a formatted table with ID, name, author, and tags for each theme.

Preview a Theme

/preview-theme <theme-id>

Starts a local HTTP server (default port 8765) that renders a mock Claude UI with the theme colors applied. This lets you preview the theme before applying it.

Reset to Default

/reset-theme

Removes the active theme and restores Claude's default styling. For the CLI, build-theme.js reset deletes the active ~/.claude/themes/<id>.json and clears the "theme" string from ~/.claude/settings.json (only when it points to a whitelabel custom: theme — built-in themes like "dark" are left untouched). For the browser, the extension popup's reset sends a reset message to any active tab.

File Structure

.
├── themes/
│   ├── schema.json              # JSON Schema for theme validation
│   └── <theme-id>/
│       └── theme.json           # Theme definition file
├── .claude/
│   └── skills/
│       └── whitelabel-theme/
│           ├── SKILL.md         # This file
│           └── build-theme.js   # CLI compiler
├── scripts/
│   ├── validate-theme.js        # Standalone validation script
│   └── build-marketplace.js     # Marketplace data generator
├── extension/                   # Generated Chrome extension
│   ├── manifest.json
│   ├── inject.js
│   ├── styles.css
│   ├── background.js
│   └── popup.html
└── marketplace/
    └── src/
        └── data/
            ├── themes.json      # Generated theme catalog
            └── stats.json       # Generated aggregate stats

Theme JSON Format

A minimal valid theme requires these fields:

{
  "name": "My Theme",
  "id": "my-theme",
  "version": "1.0.0",
  "author": "Author Name",
  "description": "A short description",
  "license": "MIT",
  "tags": ["dark", "professional"],
  "preview": {
    "background": "#0f0f23",
    "surface": "#1a1a2e",
    "textPrimary": "#e0e0ff",
    "brandPrimary": "#6366f1",
    "userMessageText": "#ffffff"
  },
  "tokens": {
    "color": {
      "brandPrimary": "#6366f1",
      "background": "#0f0f23",
      "surface": "#1a1a2e",
      "textPrimary": "#e0e0ff",
      "userMessageText": "#ffffff"
    }
  }
}

Optional sections include tokens.typography, tokens.logo, tokens.favicon, and terminal (the Claude Code CLI channel).

Terminal (Claude Code CLI) Theming

The terminal block controls the compiled Claude Code custom theme. The token set is verified against the installed Claude Code binary (currently 2.1.154) via scripts/extract-cc-tokens.js; tokens that don't exist in the build (e.g. selectionBg, messageActionsBackground) are excluded. Re-run that script when targeting a newer Claude Code version.

"terminal": {
  "deriveAll": true,
  "base": "dark",
  "userColor": "#FF007F",
  "assistantColor": "#F8F8FF",
  "backgroundColor": "#0A0612",
  "promptColor": "#FF007F",
  "errorColor": "#FF1A1A",
  "successColor": "#39FF14",
  "systemColor": "#00F0FF",
  "overrides": { "diffAdded": "#174c13", "rainbow_violet": "#da45f7" }
}
  • deriveAll (boolean, default false) — when true, the full ~55-token set (diffs, selection-adjacent UI, rainbow, subagent colors, etc.) is derived from the palette, so the terminal changes dramatically. When false (the default), only the ~14 explicitly-mapped tokens are emitted — this preserves backward compatibility. Requires hex tokens.color.success, error, and warning (note: there is no warningColor terminal field — warning is always sourced from tokens.color.warning).
  • Precedence (lowest → highest): derived set → friendly terminal.* fields → terminal.overrides. Under deriveAll, only explicit terminal.* fields override the derived values (the tokens.color fallbacks are suppressed), so a color you set by hand always wins over inference.
  • base — the Claude Code base preset to extend: dark, light, dark-daltonized, light-daltonized, dark-ansi, light-ansi. If omitted, it is inferred from tags.
  • overrides — a raw escape hatch mapping a Claude Code token name directly to a color. Use the exact token names (e.g. diffAddedWord, rainbow_violet_shimmer, red_FOR_SUBAGENTS_ONLY). Unknown names are rejected with an error.
  • Color values in terminal.* and overrides accept: hex (#rgb / #rrggbb), rgb(r,g,b) (0–255), ansi256(n) (0–255), or ansi:<name> (e.g. ansi:magentaBright). ansi: values only follow the terminal palette under an *-ansi base — a warning is emitted otherwise. tokens.color stays hex-only (it feeds the browser CSS channel).
  • The browser extension channel ignores terminal entirely.

The CLI applies theme files live (hot-reload) — edit ~/.claude/themes/<id>.json or re-run apply, then re-select via /theme if needed.

Warp Terminal Channel

Claude Code's CLI theme only colors the text it emits — it cannot change the terminal's window background or font (those belong to the terminal emulator). For Warp, apply therefore also generates and activates a matching Warp theme so the whole-window background and ANSI palette change too. This happens automatically on every apply; no extra command.

What apply does for Warp:

  1. Generates ~/.warp/themes/<id>.yaml — derived from the theme's terminal.* / tokens.color values (and the built CC theme, so the Warp background matches the CC message-block background). The 16 ANSI colors, accent, foreground (floored to AA 4.5:1 contrast for readability), and background are all set; details (darker/lighter) tracks background luminance.
  2. Activates it by editing ~/.warp/settings.toml in place — a line-preserving structural edit of the theme value under [appearance.themes]. Every other line (your other settings, comments, formatting) is byte-preserved; no TOML library is used.
  3. Concurrency: Warp owns settings.toml at runtime. The edit is abort-if-changed — if the file changes between read and write (Warp running), activation is skipped, the YAML is still written, and apply prints the exact theme = … line to paste manually. Apply with Warp closed for reliable activation. Reload/restart Warp to see the new theme.

Reset cleanup. reset is symmetric: it restores the pre-automation theme value in settings.toml (captured once, on first apply), deletes ~/.warp/themes/<id>.yaml, and clears its state — but only touches the theme value if it's still the one we wrote (so a theme you picked in Warp's UI after applying is left alone).

Artifacts (all under ~/.warp/): themes/<id>.yaml (the theme), settings.toml.whitelabel.bak (one-time pre-automation backup, manual-recovery insurance), and themes/.whitelabel-state.json (reset bookkeeping). reset removes the YAML and state; the .bak is left in place.

deriveAll and Warp. The richer the CC derivation, the richer the Warp palette. All bundled themes ship with deriveAll: true except minimalist (kept monochrome by design); new themes from init get it by default.

Other terminals. Only Warp is auto-themed. For iTerm/Terminal.app/Ghostty/etc., set the terminal profile's background/colors yourself — the CLI theme still colors Claude Code's output there.

Extension Installation

After running /apply-theme, load the extension in Chrome:

  1. Open chrome://extensions/
  2. Enable Developer mode
  3. Click Load unpacked
  4. Select the extension/ folder
  5. Visit claude.ai to see the theme applied

Security Considerations

  • Zero npm dependencies: No supply chain attack surface
  • Native Node.js APIs only: fs, path, crypto, http, child_process, readline, url
  • No external network calls except for optional font URLs
  • CSP-friendly: Generated extensions use no inline scripts except the baked-in theme data
  • Input validation: All theme files are validated in code by validateTheme() before processing (the JSON Schema in themes/schema.json is documentation; it is not loaded at runtime). Untrusted fields are HTML-escaped / JSON-encoded at every generated-artifact sink, and terminal.overrides keys are allowlisted against the verified token set with prototype-pollution keys rejected.
  • No eval() or dynamic code execution: All code is generated from static templates

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.