/designlang:theme-swap <url> --primary <hex> [--from <hex>] [--open]from designlang
Rotates a site's entire color palette around a new brand primary using OKLCH hue rotation, preserving neutrals, type, spacing, and motion. Outputs side-by-side HTML preview, diff table, and recolored DTCG/Tailwind/shadcn tokens.
Ships in designlang. Installing the plugin adds it to Claude Code.
Take any extracted site and swap its brand primary to the user-provided hex. The whole palette rotates around that hue while neutrals and structural tokens stay put.
npx designlang theme-swap $ARGUMENTS
If $ARGUMENTS doesn't contain both a URL and --primary <hex>, ask the user for the missing piece.
After the run completes, all output goes to ./design-extract-output/:
*.themeswap.html — editorial side-by-side preview (open this)*.themeswap.md — markdown diff table*.themeswap.json — structured before→after deltas*.themeswap.tokens.json — recoloured DTCG token set you can drop into a projectAfter the command finishes:
*.themeswap.md to summarise the swap (from → to, hue shift, count of changed colours).--open does this automatically).| Flag | Effect |
|---|---|
--primary <hex> | required. Target brand colour (e.g. "#ff4800"). |
--from <hex> | Override the auto-detected source primary when the extractor misclassifies (e.g. a neutral got promoted by usage count). |
--format html|md|json|tokens|all | Pick the output(s). Default all. |
--out <dir> | Output directory. Default ./design-extract-output. |
--open | Open the HTML preview in your default browser. |
/grade <url> — grade the recoloured site by feeding the same target through /extract then /grade./pack <url> — bundle the recoloured tokens as a downloadable design-system folder./remix <url> --as <vocab> — full vocabulary swap (brutalist, art-deco, cyberpunk…) instead of just brand colour.What the command file sets; muted values are Claude Code's defaults
theme-swap, color-palette, branding, design-tokens, recoloring
7-day visitors to each command page
14 commands in this plugin
/battleHead-to-head graded battle card between two sites — eight dimensions, bar-by-bar, verdict line./brandWhat's in the bookGenerate a full editorial brand-guidelines book for any URL. 14 chapters covering brand essence/archetype, colour, typography, spacing, shape, iconography, motion, components, voice, accessibility, tokens, and how-to-use guidance. Print-ready, dark-mode toggle, hand-off-ready single HTML./dna/dnaPlace a design in the measured design space — nearest systems, per-axis percentiles, outliersnpx claudepluginhub manavarya09/design-extract --plugin designlang2 plugins ship this exact command · first indexed May 8, 2026
Other plugins' commands for the same job