soundor-plugin-design
Designs professional, accessible interfaces for Soundor audio plugins.
pnpm dlx skills add soundor/skills --skill soundor-plugin-designWhen an agent uses it
Designs professional, accessible interfaces for Soundor audio plugins. Covers layout and hierarchy, the right control for each parameter, labels, values and units, fine adjustment and reset, response graphs, spectra, meters and envelope editors, resizing and high-DPI, keyboard navigation, screen readers and themes, using Soundor Components and Soundor Icons and checked with real screenshots. Use when designing, building, restyling or reviewing a plugin UI in src/, or choosing how a control or display should look and behave.
Instructions
A plugin UI is a tool used for hours, beside other plugins, often at a glance and mid-session. Good ones make the signal flow obvious, show exact values, respond to every input a user expects from audio software, and stay legible at any size. Give each plugin its own character; keep the conventions users rely on.
Start from what exists
- Read the installed versions (
npm ls --depth=0) and look for bundled skills (find node_modules/@soundor -name SKILL.md; none ship yet). Take APIs from the packages'.d.tsfiles and their docs: https://components.soundor.dev/docs, https://icons.soundor.dev/docs, https://soundor.dev/docs/react. - Use Soundor Components (
@soundor/components) for controls, menus, meters, plots and layout before drawing your own: they bind to parameters (range, mapping, text, reset value, host gestures, undo), and already handle keyboard, fine adjustment and screen readers. Check that itspeerDependenciesaccept the installed@soundor/react. - Use Soundor Icons (
@soundor/icons/<collection>, for exampleimport { Play } from '@soundor/icons/lucide') for icons; keep to one collection per plugin. - Look at real plugins: Soundor Prism (https://github.com/soundor/prism, an equalizer around a response graph) and Soundor Orbit (https://github.com/soundor/orbit, a delay with an echo map) show both libraries in shipping designs.
Design the layout
- Follow the signal: input on the left or top, output on the right or bottom; global controls (bypass, presets, undo) in a header bar.
- Give the plugin one focal point (the graph of an EQ, the drive of a distortion) and size it accordingly; secondary controls are smaller and grouped.
- Group by function in
Panels andControlGroups with short titles; align controls to a grid with consistent spacing. - Use one size per control role (
sm,md,lgsizes exist on Components controls) and consistent label placement.
Layout and visual hierarchy covers spacing, typography, color and contrast.
Pick the right control
| Parameter | Control |
|---|---|
| Continuous, set by feel | Knob; Slider/Fader for levels and mixes |
| Continuous, needs an exact value | the above plus a ValueField, or a ValueField alone |
| Bipolar (pan, gain ±, tilt) | a range control with its fill starting at the centre (origin) |
| On/off | Toggle |
| 2 to 5 options | SegmentedControl |
| More options | Select |
| Two linked values | XYPad, or a draggable Plot marker |
| Envelope | EnvelopeEditor |
| An action (load, reset, A/B) | Button; secondary actions in a DropdownMenu/ContextMenu |
Bind each to its parameter (<Knob parameter={parameters.drive} />) so
automation moves it, gestures reach the host, and the label, unit, text and
reset come from the config. Every control shows its name and current value
with unit. Controls covers conventions:
fine adjustment, reset, typing values, context menus and gestures.
Displays
Graphs, spectra and meters update up to 60 times a second from native
streams. Draw them without a React render per frame: Components' Plot,
LevelMeter and Spectrogram take live data, or subscribe to the stream
in an effect and draw into a canvas.
Visualizations covers axes, scales,
ballistics and performance.
Size, input and accessibility
- Set
editorinsoundor.config.ts: a dense, position-based layout scales (resize: 'scale', as Prism and Orbit do); a layout that can reflow usesresize: 'layout'. Add aResizeGripwhen resizable. - Every control works from the keyboard and has an accessible name; a
custom control gets an
accessibilityRole, label and value. - Contrast: text and value readouts at least 4.5:1 against their background; meters and graph lines distinguishable without color alone.
Resizing, accessibility and themes has the details.
Look at it
Do not judge a UI from its source. Capture the real rendering, open the
image, and review it against the visual review;
fix, capture again, and compare. In VST3, capture with Soundor Driver
(plugin.screenshot() from @soundor/driver/vst3, under xvfb-run -a on
a headless Linux); in the web build, with Playwright. Check at the default
size, the minimum and the maximum.
Before you finish
- Every parameter is reachable, labelled, and shows its value and unit.
- Controls are Soundor Components bound to parameters, or custom controls with the same keyboard, reset and accessibility behavior.
- Displays draw from streams without re-rendering React every frame.
- Screenshots at the default, minimum and maximum sizes were looked at and show no clipping, overlap or unreadable text.
- Keyboard alone can reach and change every control.
- UI tests find controls by role and name (the
soundor-testingskill).
References
The skill reads these when a task needs them: