# Building a DJ console with UI SDK and a shadcn design system

> I had an AI agent build a two-deck DJ console in the browser, with UI SDK for every control and my shadcn design system in DS Manager for the look.

Published: 2026-12-04 · Author: Matt Wierzbicki · Canonical: https://www.shadcndesign.com/blog/ui-sdk-dj-console

I used to DJ when I was younger, mostly techno, house, electro and drum and bass, plus some old Polish Energy 2000 club music. I still put a mix together now and then and play for friends. For a long time I wanted a DJ app of my own: a simple controller with exactly the things I reach for and nothing else.

So I had an AI agent build one, with UI SDK for every control and my shadcn design system from [DS Manager](/) for the look. The result is UI SDK DJ, a two-deck DJ console that runs in the browser. Open it at [ui-sdk-dj.vercel.app](https://ui-sdk-dj.vercel.app), press Q and P, and both decks start playing. The code is [on GitHub](https://github.com/mateusz-wierzbicki/ui-sdk-dj), MIT licensed.

![The UI SDK DJ console with two decks playing, a library panel between the waveforms, jog wheels, EQ knobs, faders and a crossfader in a dark design system](https://www.shadcndesign.com/blog/ui-sdk-dj-console/ui-sdk-dj-1-console-two-decks-playing-2880x1800.webp)

*Both decks were started by an agent through UI SDK's agent.act for this screenshot*

## The look came from DS Manager

The style existed before any code did. The UI SDK DJ design system lives in DS Manager: a dark, neutral shadcn/ui system with Instrument Sans for text, Geist Mono for numbers, Hugeicons, a 0.625rem radius and OKLCH colors. On top of shadcn's own tokens it adds a few custom ones, like `well`, `thumb` and `primary-edge`, plus a set of soft gradients for cards, keys and outlines.

![The Color page of the UI SDK DJ design system in DS Manager, with contrast scores for each text and surface pair and the custom OKLCH tokens and gradients below](https://www.shadcndesign.com/blog/ui-sdk-dj-console/ui-sdk-dj-2-ds-manager-color-tokens-2880x1800.webp)

*The Color page of the UI SDK DJ system, with its custom tokens and gradients*

I set all of it on the DS Manager canvas, where I can see every change as I make it. Then I gave the agent one instruction: use this system as the style reference, and don't install shadcn.

The agent connected to DS Manager's [MCP server](/docs/ds-manager-mcp) and read the system directly. It asked for the summary first (style, fonts, radius, icon set), then every dark-mode token, then the component styles I had edited by hand. It also read the UI SDK docs, which DS Manager serves to agents as well. That helps because UI SDK is newer than most models' training data. No value came from a screenshot.

The tokens landed in the console's stylesheet as a snapshot, with a link back to the system:

```css
/* Snapshot of the UI SDK DJ design system's dark theme from DS Manager */
:root {
  --background: oklch(0.2301 0.0025 247.933);
  --primary: oklch(0.8 0.085 268);
  --primary-edge: oklch(0.62 0.1 268);
  --well: oklch(0.225 0.003 265);
  --thumb: oklch(0.96 0.012 90);
  /* ... */
}
```

The edited component styles mattered most. In this system, buttons and dialogs have a gentle vertical gradient, a 1px highlight along the top edge and a deep shadow underneath. That's what makes it feel tactile, and the agent carried those same rules over to the platters, faders, pads and knobs. A DJ console has nothing in common with a dashboard, yet put it next to the system's Button page and you can see they come from the same place.

![The Button page of the UI SDK DJ design system in DS Manager, showing Default, Secondary, Outline, Ghost, Destructive and Link buttons with soft gradients and top highlights in four sizes](https://www.shadcndesign.com/blog/ui-sdk-dj-console/ui-sdk-dj-3-ds-manager-button-styles-2880x1800.webp)

*The system's buttons: soft gradients, a top highlight and a deep shadow*

This is what I built DS Manager for. You decide the style once, where you can see it, and every agent that builds for you reads the same source, even when it's building something no design system was made for.

## Why UI SDK for the controls

[UI SDK](https://ui-sdk.dev) is a library of UI behaviors: keyboard navigation, focus, selection, drag and ARIA. Its components render no styles of their own, and its npm description ends with "Made for agents." Its source lives in the vercel-labs/ui repository. For this project that made the split clean. All the behavior came from UI SDK, all the look came from the design system, and neither got in the other's way.

The console uses these components from UI SDK React (`@ui-sdk/react`):

- `Slider` for the channel faders, tempo faders and crossfader
- `Toggle` and `ToggleGroup` for the lit buttons and the pad mode row
- `Button` for the pads, Cue, Load and Back
- `Tabs` for the Library, FX and Audio panels
- `Select` for the headphone output, `Toolbar` for the beat grid editor, `NumberInput` for exact BPM and `Dialog` for the keyboard shortcut help

DS Manager's install guidance tells agents to pin UI SDK to one exact version while it's in beta, so the project does: `0.1.0-beta.23`, no caret. If you want the same pairing inside DS Manager itself, its agent can now [build custom components on UI SDK](/blog/ds-manager-ui-sdk-custom-components) and style them with your system's rules.

## A knob and a jog wheel UI SDK doesn't ship

A DJ console is mostly knobs and jog wheels, and UI SDK has neither. The agent built both with UI SDK's own building blocks from `@ui-sdk/core`, such as `definePrimitive`, `bindDrag` and `stepFromKey`. Both use the slider role, so they get the same keyboard support (arrows, Page Up and Down, Home and End), focus handling and ARIA as the built-in components.

The knob turns on a vertical or horizontal drag and resets on double click. The jog wheel follows a circular drag: hold it to scratch, or hold Shift to search through the track. Both take their look from the same tokens and gradients as everything else, so they sit next to UI SDK's sliders as one set.

![Close-up of the deck A jog wheel and the mixer's EQ, filter and level knobs, built as custom UI SDK primitives](https://www.shadcndesign.com/blog/ui-sdk-dj-console/ui-sdk-dj-4-jog-wheel-and-knobs-1296x864.webp)

*The jog wheel and knobs are custom UI SDK primitives with the slider role*

## Letting AI agents play it

My favorite part takes about ten lines. The console runs UI SDK's agent bridge:

```ts
import { createAgent, registerTools } from "@ui-sdk/react/agent"

const agent = createAgent()
registerTools(agent, { allow: () => true })
```

This offers three tools, `snapshot`, `query` and `act`, to browsers that support WebMCP. An AI reads every control by name and changes it directly, with no screenshots and no simulated clicks. The custom knob and jog wheel declare their own agent actions, so agents see them like any built-in component.

In a WebMCP-capable browser, open the console and try:

```text
Use the page's act tool to start deck A, sync deck B to it, start deck B,
then move the Crossfader from 0 to 100 in steps of 10.
```

Or open the browser console on the live site and press Play on deck A yourself:

```js
await agent.act({ steps: [{ ref: "Deck 1 play or pause", action: "setPressed", args: [true] }] })
```

That's how the decks in the first screenshot were started. For me, this is the whole point of UI SDK: an agent uses the same controls I do. At one point the console had a scripted "Demo mix" button, and I had it removed. If an agent wants to mix, it should move the real faders.

## Try it, and fork the style

I use the console for real now, for mixes with friends. It has what I want from a simple controller: two decks with waveforms, sync, hot cues, loops, effects, EQ and filters, a crossfader and a keyboard shortcut on every control. It opens with two tracks by shadcndesign.com loaded, "Behaviors First" and "Own Every Line", so you can press play straight away. In the bottom-right corner there's a small GitHub key with a tiny LCD that shows the repo's star count.

- Play it at [ui-sdk-dj.vercel.app](https://ui-sdk-dj.vercel.app).
- Read and fork the code [on GitHub](https://github.com/mateusz-wierzbicki/ui-sdk-dj).
- Open the [UI SDK DJ design system](https://manager.shadcndesign.com/s/83bEavwL6Mx4ApwRXrF1TA) in DS Manager to browse the exact tokens and component styles the agent used, and [fork it](/docs/ds-manager-share) into your own account.

Here I used DS Manager only as a reference. If you build with shadcn/ui, it can also [install a published system](/docs/ds-manager-publish) straight into your project. Set up your own system in [DS Manager](/), and your agents build in your style from the first commit.
