/juce-dev:visage-themefrom juce-dev
Designs and applies Visage theme tokens and JUCE LookAndFeel colors, covering the JSON theme schema, C++ codegen, Palette API, OverrideId scoping, and the theme-designer workflow.
Ships in juce-dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Tools/theme-designer.html in a browser (works via file://, no server needed)<script id="theme-data"> JSON block in the HTMLpython3 scripts/generate_theme.py Tools/themes/my-theme.json --mode both --output Source/ThemeSource/Theme.h and call initThemePalette(palette) at plugin startupThe theme JSON has these sections:
colors — Standard Visage widget tokens (Button, Toggle, TextEditor, PopupMenu, ScrollBar)values — Visage value tokens (rounding, margins, sizes) as floats with min/max hintscustom — Project-specific tokens (knobs, meters, waveform, panels, cards, accents, etc.)juce — JUCE LookAndFeel ColourId mappings keyed as "ClassName::colourIdName"meta — Theme name, version, base (for inheritance)overrides — Per-OverrideId Visage color overrides (advanced)Color format: "value": "#RRGGBB" (web-standard hex) + "alpha": 0.0-1.0 (separate float).
The codegen converts to Visage 0xAARRGGBB format automatically.
Visage uses 0xAARRGGBB — alpha in the most-significant byte. This differs from CSS rgba.
0xFFFF0000 // Fully opaque red
0x800000FF // 50% transparent blue
0x00000000 // Fully transparent
Conversion: alpha_byte = round(alpha_0_to_1 * 255), shifted left 24 bits.
# Visage header (VISAGE_THEME_COLOR / VISAGE_THEME_VALUE macros)
python3 scripts/generate_theme.py theme.json --output Source/Theme.h
# JUCE LookAndFeel class
python3 scripts/generate_theme.py theme.json --mode juce --output Source/ThemeLookAndFeel.h
# Both at once
python3 scripts/generate_theme.py theme.json --mode both --output Source/Theme
# Validate only
python3 scripts/generate_theme.py theme.json --validate-only
visage::Palette palette;
palette.initWithDefaults(); // Load all registered token defaults
// Apply theme colors
palette.setColor(theme::KnobArc, visage::Color(0xFF00FFD4));
// Apply theme values
palette.setValue(theme::TextEditorRounding, 6.0f);
// Propagate to frame tree
rootFrame->setPalette(&palette);
For per-component theme regions (e.g., a dark header in a light app):
VISAGE_THEME_PALETTE_OVERRIDE(HeaderRegion);
// Set override colors
palette.setColor(HeaderRegion, theme::PanelBackground, visage::Color(0xFF1A1A2E));
// Apply to a frame subtree
headerFrame->setPaletteOverride(HeaderRegion, true);
The codegen produces a LookAndFeel_V4 subclass with all ColourIds set:
#include "ThemeLookAndFeel.h"
// In editor constructor:
static DefaultDarkLookAndFeel themeLAF;
setLookAndFeel(&themeLAF);
#RRGGBBAA order — Visage is 0xAARRGGBB (alpha FIRST)palette.initWithDefaults() before applying custom colorssetPalette() after modifying the palette| File | Purpose |
|---|---|
Tools/theme-designer.html | Visual preview + editing tool |
Tools/themes/default.json | Default theme with all tokens |
scripts/generate_theme.py | JSON to C++ codegen |
See references/token-catalog.md for all known Visage tokens with defaults.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
theming, color-tokens, juce-lookandfeel, theme-designer, argb
npx claudepluginhub danielraffel/generous-corp-marketplace --plugin juce-dev3 skills in this plugin
/juce-starterJUCE Plugin StarterThis skill should be used when the user asks about "JUCE-Plugin-Starter", "starter template", "init plugin project", "plugin template", "juce project setup", ".env configuration", "plugin codes", "bundle ID", "generate_and_open_xcode", mentions placeholder replacement, discusses creating new JUCE plugin projects from a template, or asks about VST3 MIDI generator configuration, cross-DAW MIDI effect setup, IS_SYNTH/IS_MIDI_EFFECT settings, or Ableton Live VST3 MIDI routing. Provides knowledge about the JUCE-Plugin-Starter template conventions, build system, configuration, and VST3 MIDI generator patterns./juce-visageGuide for integrating the Visage GPU-accelerated UI framework with JUCE audio plugins on macOS and iOS/iPadOS. Covers Metal view embedding, event bridging, focus management, keyboard handling in DAW hosts, popups/modals/dropdowns, memory management, destruction ordering, native standalone appearance, required Visage patches, iOS touch event handling, safe area insets, and comprehensive Visage API reference (Canvas, Frame, Widget, Theme, Dimension, PostEffect, Event system). Patterns derived from production plugin development. Use this skill whenever building or debugging JUCE+Visage plugin UI, even if the user doesn't explicitly mention "Visage" — trigger on mentions of Metal rendering in JUCE, GPU UI in audio plugins, embedded MTKView, or bridge layers between JUCE and a GPU framework.Other plugins' skills for the same job