Whitelabel theme
Skill jakubkrzysztofsikora/claude-theme/.claude/skills/whitelabel-theme
Apply, preview, and manage custom themes for Claude's interfaceFrom its SKILL.md
npx -y skills add jakubkrzysztofsikora/claude-theme --skill whitelabel-themeAssembled 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:
- Theme JSON files define design tokens (colors, fonts, logos) in a declarative format
- The CLI compiler (
build-theme.js) reads theme files and generates a Chrome extension - The browser extension injects CSS custom properties and custom fonts into Claude's web interface
- Message passing between the CLI and extension enables live theme switching
- 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
- Compile phase: Theme JSON is parsed, validated, and baked into
inject.jsas aTHEME_DATAconstant - Injection phase: The content script creates a
CSSStyleSheetwith CSS custom properties on:root - Font loading: If a font URL is specified, the
FontFaceAPI loads it before applying - Logo replacement: A
MutationObserverwatches for the sidebar logo element and swaps it - SPA navigation: The observer persists across React re-renders and route changes
- CLI communication:
chrome.runtime.onMessagehandles 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:
- Validates the theme JSON against
themes/schema.json - Compiles the
terminal/tokens.colorvalues 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/themeto load it. - Compiles and outputs the browser extension to
extension/ - 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, defaultfalse) — whentrue, the full ~55-token set (diffs, selection-adjacent UI, rainbow, subagent colors, etc.) is derived from the palette, so the terminal changes dramatically. Whenfalse(the default), only the ~14 explicitly-mapped tokens are emitted — this preserves backward compatibility. Requires hextokens.color.success,error, andwarning(note: there is nowarningColorterminal field — warning is always sourced fromtokens.color.warning).- Precedence (lowest → highest): derived set → friendly
terminal.*fields →terminal.overrides. UnderderiveAll, only explicitterminal.*fields override the derived values (thetokens.colorfallbacks 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 fromtags.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.*andoverridesaccept: hex (#rgb/#rrggbb),rgb(r,g,b)(0–255),ansi256(n)(0–255), oransi:<name>(e.g.ansi:magentaBright).ansi:values only follow the terminal palette under an*-ansibase — a warning is emitted otherwise.tokens.colorstays hex-only (it feeds the browser CSS channel). - The browser extension channel ignores
terminalentirely.
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:
- Generates
~/.warp/themes/<id>.yaml— derived from the theme'sterminal.*/tokens.colorvalues (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), andbackgroundare all set;details(darker/lighter) tracks background luminance. - Activates it by editing
~/.warp/settings.tomlin place — a line-preserving structural edit of thethemevalue under[appearance.themes]. Every other line (your other settings, comments, formatting) is byte-preserved; no TOML library is used. - Concurrency: Warp owns
settings.tomlat 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, andapplyprints the exacttheme = …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:
- Open
chrome://extensions/ - Enable Developer mode
- Click Load unpacked
- Select the
extension/folder - 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 inthemes/schema.jsonis documentation; it is not loaded at runtime). Untrusted fields are HTML-escaped / JSON-encoded at every generated-artifact sink, andterminal.overrideskeys 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