Skip to content

Host appearance and platform capabilities ​

Look up appearance fields and capability requirements before adding them to a manifest. A recognized field can still require a capability unavailable on the target Host.

Version scope: these source-level examples target v2.0.0.alpha.14. Use the Plugin SDK for current Wasm plugin authoring.

NSS styles nodes; appearance declares finite Host resources/policy. Neither controls window lifetime, account/update trust, password semantics, or system authority.

Root fields ​

FieldAccepted valuePurpose
accentColorLiteral #RRGGBB/#RRGGBBAAHost accent, not an automatic same-name option binding
windowMaterialnone/solid/blur/acrylic/micaFinite request, capability-dependent outcome
splashMotionnone/fade/breathe/drawBounded startup-mark motion
resourcesFixed slots belowPrepared icons/background/font/media
propertiesFinite table belowLiteral or known scalar option(id)

draw is about 600ms; breathe varies opacity 0.88–1 over 1.8s. The first Splash uses built-in/bounded verified startup facts, without waiting for third-party ZIP/NSS/font/media scanning. Host owns topmost, startup stages, and lifetime.

Every resource slot ​

SlotKindConsumer
launcherIcon/windowIcon/trayIcon/splashIconIcon or ImageRuntime carriers, not installer metadata
logo/icon-light/icon-darkIcon or ImageFinite brand/mode projection
backgroundImageBackground
fontFontPrepared font
musicAudioMusic consumer
videoVideoVideo consumer

Entries are {expression,kind,required,fallback}. Optional entries require fallback; none means safe empty/default. Required primary resources must prepare successfully.

json
{"windowIcon":{"expression":"asset(assets/icon.svg)","kind":"Icon",
 "required":false,"fallback":"none"}}

Place this under appearance.resources and package the real file. Test each native carrier; successful browser SVG display does not prove tray/window/Splash decoding.

Every property ​

PropertyValue/unit
background-fit/video.fitcover/contain/stretch
background-opacityNumber/Range, 0–100
background-colorColor/Text/Select, auto or valid hex
window-opacityNumber/Range, 40–100
window-blurBoolean
video.enabled/video.auto-pauseBoolean
music.enabled/music.startup/music.autoplay/music.shuffleBoolean
music.media-controls/music.auto-pauseBoolean
music.volumeNumber/Range, 0–100
animation-fpsNumber/Range, 1–240
resize-policyauto/immediate/deferred/animated/instant
json
{"background-opacity":"option(opacity)","music.enabled":"option(music.enabled)",
 "music.volume":"option(music.volume)","resize-policy":"animated"}

These belong under appearance.properties. Options must exist and match scalar types. window-opacity 40 means percent, unlike NSS Opacity 0.4. File options, arbitrary expressions, and new window methods are excluded.

Resize auto/immediate/instant applies directly; deferred waits about 120ms quiet; animated uses one shared layout/paint/input viewport over about 180ms. Reduced motion applies directly.

Exact capability registry ​

CapabilitiesPurpose
styles.basic, tokens, options, selectorsBasic presentation and parameters
conditions, viewportMode/platform/dimension conditions
grid, position, orderFinite layout
transform, transformsTransform with consistent input geometry
virtual-metricsRegistered shared collection metrics
keyframes, animationsFinite motion
images, svg, fontsPrepared providers
opacity, gradients, shadows, translucencyPaint/opacity, not a native-blur guarantee
runtime-icons, startup-appearanceIcons and bounded startup facts
mediaResource/consumer contract, not an output-device guarantee
window-acrylicActual native provider where supported
window-micaSupported Windows 11 material

Prefer canonical plural provider names. Require essentials; make enhancements optional, e.g. {"name":"window-acrylic","fallback":"solid"}. A declaration or successful compilation is not cross-platform execution evidence.

Cross-platform acceptance ​

Make solid appearance readable first. Test light/dark, transparency disabled, reduced motion, DPI, narrow layout, tray restore, and safe mode. Record requested/actual capability, effective fallback, OS, and build; report unsupported enhancement honestly.

Implementation references ​

Check your result ​

Test the minimum capability set and confirm an unsupported required capability rejects the candidate explicitly.

Site documentation: CC BY-SA 4.0. Imported SDK documents: Apache-2.0 as marked.