Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Customize the app's visual theme — author design-token overrides (accent, background, surfaces, text, message-bubble colors) in the workspace ui/theme.json, validated by the assistant runtime and applied live to connected clients. Covers the token slots, the all-or-none override groups, the contrast floor, and reading back validation issues.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-05 | ✗→✓ | ▲ Improved | 112% | 0% |
| case-13 | ✗→✓ | ▲ Improved | 86% | 0% |
| case-19 | ✗→✓ | ▲ Improved | 36% | 0% |
| case-16 | ✗→✓ | ▲ Improved | 27% | 0% |
| case-18 | ✗→✓ | ▲ Improved | 19% | 0% |
You are customizing the visual theme of the app you and your user share. The theme lives in one file — $VELLUM_WORKSPACE_DIR/ui/theme.json — which the assistant runtime validates and serves to every connected client. Valid changes apply live, layered on top of the built-in light/dark/velvet base theme: open windows re-color within a few seconds of the file being saved. No restart, no build step.
All commands in this skill use the bash tool. $VELLUM_WORKSPACE_DIR is available in the sandbox environment.
Always check what's there before changing it:
bashcat "$VELLUM_WORKSPACE_DIR/ui/theme.json" 2>/dev/null || echo "No theme yet — clients render the built-in theme"
A complete example (all eleven token slots — you rarely need all of them):
json{ "version": 1, "tokens": { "accent": "#e8a04c", "background": "#1c1512", "surface": "#2b2018", "surfaceRaised": "#332619", "border": "#43301f", "text": "#f2e4d4", "textMuted": "#a68d75", "userBubbleBackground": "#26201a", "userBubbleText": "#efe3d2", "assistantBubbleBackground": "#33202a", "assistantBubbleText": "#ffd7e4" } }
| Token | What it controls | | --------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | | accent | Primary buttons, highlights, active states. The button-label color is derived automatically so it stays readable on any accent. | | background | The page background and base surfaces. | | surface | Panels, popovers, and overlays. | | surfaceRaised | Elevated cards. | | border | Borders and dividers. | | text | Main copy. | | textMuted | Secondary labels and captions. | | userBubbleBackground / userBubbleText | The user's chat message bubble. | | assistantBubbleBackground / assistantBubbleText | Accepted and validated, but not yet rendered — assistant messages don't have a themeable container yet. Safe to set now; they light up when the surface ships. |
"base": "light" | "dark" | "velvet" | "system" is also accepted at the top level but reserved — clients don't switch the base theme from it yet. The tokens are a color layer over whichever base the user has chosen.
The runtime validates the whole file and rejects it atomically — one bad value turns theming off (clients revert to the built-in theme) until the file is fixed. The rules:
#f0a, #e8a04c). No alpha channel, no named colors, no CSS functions, no url().background, surface, surfaceRaised, text, textMuted — set any one, set all five.accent and border are free agents — fine alone.text against background/surface/surfaceRaised, textMuted against all three, and each bubble's text against its background. The floor blocks illegible themes, not bold ones.Practical consequence of rule 3: an "accent-only" theme is two lines, but the moment you touch background you are authoring a full palette. Design the five core colors together.
The runtime tells you exactly what it accepted or why it refused. Fetch GET /v1/workspace/theme from the assistant runtime HTTP API (the same authenticated API used for other configuration reads):
json{ "theme": { "version": 1, "tokens": { "accent": "#e8a04c" } }, "source": "workspace", "issues": [] }
source: "workspace" — your theme is live.source: "invalid" — rejected; issues lists human-readable reasons (e.g. "incomplete override group: setting tokens.background also requires tokens.text, …" or "tokens.text on tokens.background has contrast 1.02:1 — minimum is 3:1"). Fix and re-check.source: "none" — no theme file exists.You do not need the user to screenshot the app for you. The desktop app can render a staged view of its own UI — fixed generic content, never real conversation data — with your current theme applied, capture it offscreen, and hand you the PNG:
bashassistant ui snapshot --view sampler --out /tmp/theme-sampler.png assistant ui snapshot --view chat --out /tmp/theme-chat.png
Then view the image file. Two views:
sampler — a dense style sheet: the text ramp, accent, buttons, a raised card, inputs, borders, and both chat bubbles in one frame. Use it while iterating — it answers "does the palette read".chat — a staged conversation with a composer. Use it to judge the finished feel — it answers "does it look like home".The capture reflects ui/theme.json as it is on disk at that moment, so edit → snapshot → look → adjust is a tight private loop. If the theme file is invalid, the command prints the validation issues and the capture shows the built-in theme. The framing is fixed, so before/after snapshots align exactly.
This requires the desktop app to be running; if the command times out or reports no connected client, fall back to taking a browser screenshot of the app or asking the user — the change is already on their screen.
Delete the file (or write {"version":1} with no tokens) and clients revert to the built-in theme:
bashrm "$VELLUM_WORKSPACE_DIR/ui/theme.json"
The theme applies to every open window your user has, within seconds, with a small "Theme updated" notice. For a small tweak that was just discussed, go ahead. For a dramatic repaint — or one the user didn't ask for — tell them what you're about to do, or stage the palette in conversation first. It's a shared space; redecorate like someone who lives there too.
Other measured skills in the registry, with their headline benchmark lift.