/wings-authoring:wings-skinsfrom WINGS Authoring
Theme a WINGS app with --wings-* CSS custom property tokens. Consume tokens in component CSS via var() with fallbacks, apply/compose built-in skins across ten disjoint categories, register custom skins, and build composed skin bundles.
Ships in WINGS Authoring. 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.
A skin is a block of --wings-* CSS custom properties at :root, paired
with a category bitmask. Components read every token through
var(--wings-X, fallback), so they look right with no skin active and restyle
globally the instant one is applied — there is no per-component theming step.
In your component CSS, reference tokens with a literal fallback so it works unskinned:
.card {
background: var(--wings-surface, #fff);
color: var(--wings-text, #222);
border: var(--wings-border-width, 1px) var(--wings-border-style, solid)
var(--wings-border, #ccc);
border-radius: var(--wings-radius-md, 6px);
box-shadow: var(--wings-shadow-md, 0 1px 3px rgba(0,0,0,.12));
transition: background var(--wings-transition-fast, .15s);
}
.card button { background: var(--wings-primary, #0b6); color: var(--wings-primary-color, #fff); }
Always provide the fallback — never assume a skin is loaded. The full token
contract is skins/tokens.md in the wings repo, one section per category.
Blank-import each skin you use (its init() registers it), then activate:
import (
"github.com/luisfurquim/wings"
_ "github.com/luisfurquim/wings/skins/light"
_ "github.com/luisfurquim/wings/skins/classic"
_ "github.com/luisfurquim/wings/skins/glass"
)
func main() {
_ = wings.ApplySkin("light") // returns error; handle, don't ignore in real code
_ = wings.ApplySkin("classic") // composes (disjoint categories)
_ = wings.ApplySkin("glass")
wings.Main()
}
Several skins can be active only if their category bitmasks are disjoint
(AND == 0). A complete theme (one category) composes with focused skins on
orthogonal dimensions. Activating an overlapping skin returns a
*SkinConflictError (it never silently double-sets a token).
Categories: Identity (colours/surfaces/text/borders/shadow-colour), Geometry
(radius/border), Depth (shadow shape), Motion (transitions/hover/active),
Interaction (focus-ring), Typography (reserved), Spacing (padding/gap),
Lighting (gradients/glows), Atmosphere (glass blur/opacity),
Material (widget surface form: outlined / filled / underlined).
Built-ins (23) — pick at most one per exclusive column:
light dark autumn darkblueberry darkforest lightblueberry mushroom vividforestsharp classic soft · Depth: flat lifted floating · Motion: gentle calm briskglass · Lighting: glasslighting · Material: outlined filled underlinedglassmorphism = glass + glasslighting (claims Atmosphere|Lighting)A full look is one from each, e.g. light + classic + lifted + calm (+ filled).
Every built-in is importable at github.com/luisfurquim/wings/skins/<name>.
A bundle is a skin whose CSS concatenates two or more component skins. Each
component exports CSS and Categories vars so bundles can reuse them:
// skins/glassmorphism/skin.go
import (
"github.com/luisfurquim/wings/skins/glass"
"github.com/luisfurquim/wings/skins/glasslighting"
)
func init() {
wings.RegisterSkin("glassmorphism",
glass.Categories|glasslighting.Categories,
glass.CSS+glasslighting.CSS)
}
Apply the bundle for convenience, or the components individually for finer
control (e.g. glasslighting without glass on environments that lack
backdrop-filter support).
//go:embed skin.css
var css string
func init() {
// Declare exactly the dimensions your CSS defines (for composition/conflict).
wings.RegisterSkin("midnight", wings.IdentitySkinCategories, css) // Identity|Lighting|Interaction
// focused: wings.RegisterSkin("rounded", wings.GeometrySkinCategories, css)
// material: wings.RegisterSkin("paper", wings.MaterialSkinCategories, css)
}
Convenience masks: IdentitySkinCategories, GeometrySkinCategories,
DepthSkinCategories, MotionSkinCategories, MaterialSkinCategories.
Private categories (your own orthogonal dimension, e.g. brand): mint with
wings.UserCategory(n) (n in [0,16), high bits 48–63 are permanently yours),
optionally RegisterCategoryName, then register skins against it — it joins the
same conflict detection and never collides with future built-ins. (The API
returns errors, never panics — handle them.)
The Material category controls how field borders and backgrounds are
structurally shaped. Widgets consume --wings-input-material-* tokens; when
none are set the widget defaults produce the outlined look.
| Token | Semantics |
|---|---|
--wings-input-material-border-top/right/bottom/left | Individual border sides |
--wings-input-material-radius | border-radius (accepts multi-value: 6px 6px 0 0) |
--wings-input-material-bg | Field background |
--wings-input-material-padding-x | Horizontal inner padding |
--wings-input-material-focus-shadow | Box-shadow on focus (none suppresses ring) |
--wings-input-material-focus-shadow-error | Box-shadow on focused+invalid |
ApplySkin / DeactivateSkin / ClearSkins, ActiveSkins / ActiveSkin,
ActiveCategories, ConflictsWith, ListSkins / ListSkinInfos,
SkinCategoriesOf, OnSkinChange. The built-in <skin-switcher> widget exposes
all of it as a picker (see wings-widgets).
Deeper: README "Skins — Theming with --wings-* Tokens".
What SKILL.md sets; muted values are Claude Code's defaults
11 skills in this plugin
/sec-fail-operationalApollo AGC fail-operational design (priority shedding, bounded everything, restart protection, NASA Power of 10) applied to YOUR WINGS app — loops, goroutines, timers, fetch error paths, recovery. Use when writing component effects, background goroutines, polling/retry, or any code that must keep the app rendering when one part fails./sec-fuzzingContinuous fuzzing with Go native fuzzing for any parser/decoder YOU add to a WINGS app — keeping parseable logic in portable (non-js) packages so it's fuzzable, writing targets, the properties to assert, corpus management. Use when you add or change any string/byte parser, custom wire format, or decoder in your app./npx claudepluginhub luisfurquim/wings --plugin wings-authoringOther plugins' skills for the same job