/fused-render:fused-render-themingfrom Fused Render
Guides theming fused-render views to follow the app's light/dark mode and color preset. Covers fixed palette, shell-following, desktop-only, and custom switcher strategies with CSS token patterns.
Ships in Fused Render. 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.
None: SKILL.md is the whole skill.
Iframe = blank canvas (nothing injected by default), but shell follows OS light/dark with Preferences override. Pick ONE strategy; failure mode = half-following.
data-fused-theme="shell" on <html>. Runtime writes data-theme="light"|"dark" there before stylesheet parses, keeps it in step (pin, OS flip, other-window change), AND copies the shell's live palette (colour preset: Default / High contrast / Midnight) in as --fused-* tokens. Built-in templates do this — SPEC.md §30 (AP-8/AP-9), any fused_render/templates/*/template.html.@media (prefers-color-scheme) around second token block, no attribute. Blind to in-app pin.fused.params.set("theme", …)), drive data-theme yourself. INSTEAD of option 2, never alongside — runtime re-applies, your button loses.--fused-* tokens (opted-in views only)--fused-bg page, -bg-alt inset/zebra, -bg-panel card/panel, -fg text, -fg-muted, -fg-faint, -border, -sel selection/hover fill, -accent, -on-accent text on accent, -error, -success, -warning. Follow light/dark AND preset, live, no reload.
Pattern — keep both :root blocks, define the app's own tokens as var(--fused-x, fallback): dark fallbacks in :root, light fallbacks in :root[data-theme="light"]:
:root { color-scheme: dark; --bg: var(--fused-bg, #101318); --text: var(--fused-fg, #dce2ea); }
:root[data-theme="light"] { color-scheme: light; --bg: var(--fused-bg, #f7f8fa); --text: var(--fused-fg, #1a1f27); }
Standalone (no shell above: top-level /render?path=…) tokens are unset → only fallbacks apply, still correct light/dark. Always give a fallback. Rare preset-specific tweak: html[data-fused-theme-name="midnight"] (absent on Default). Simple app: don't hard-code a palette.
Two rules making second palette work:
getComputedStyle at draw time, redraw on MutationObserver over data-theme, data-fused-theme-name, style on <html> (tokens land as inline style, so a preset change is a style mutation).Never read app's own localStorage key — private, drifts. Options 2/3 give answer without it.
Rest of page authoring → fused-render-authoring.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
theming, light-dark-mode, fused-render, css-custom-properties
14 skills in this plugin
/fused-render-aiUse when page or .py calls fused.ai (text/image/video/speech/transcribe/embed/decide/vision), picks model/provider, or AI call rejects./fused-render-api-migrationUse when migrating app to current fused page API — Migrate task, stale/missing fused-api-version meta, "fused.ai is not a function" after upgrade./fused-render-app-doctorUse when reviewing or sharing an app — checking for secrets, hardcoded paths, stray generated files, missing structure, or a stale API version.npx claudepluginhub fusedio/fused-render --plugin fused-renderOther plugins' skills for the same job