Download
Make it yours

Make a theme

A theme is one JSON file. You can make one in the theme editor, write the file by hand, or ask an agent to write it and keep it if you like what you see.

Make one in the editor

In Settings › Appearance, under Theme, choose New theme…. To start from a theme you have, right-click it and choose Duplicate…; Edit… changes one of your own.

  1. Give it a Name.
  2. Choose Light and dark, Light only or Dark only.
  3. For each appearance, pick three colors.
Background

The page, and what the other surfaces are made from.

Text

Kept readable on the background.

Accent

Buttons, focus, and what's picked.

The rest of the colors are worked out from those three. Every color lists them all, the terminal's sixteen included; set one by hand to keep it as it is, and Reset works it out again.

CSS is for what colors can't do, such as square corners on the message box. Then choose Create theme.

Have an agent write one

In any thread, ask for it: "make me a theme the color of a pine forest at dusk, light and dark".

The agent writes the theme's file and Solanum shows it at once as a preview, with a notice that says Previewing and the theme's name. Choose Keep to wear it. Dismiss the notice to go back to the theme you had.

The agent can't see the result. Tell it what to change, "the sidebar is too dark", and it writes the theme again and shows a new preview. An agent can also show you one of the themes you already have, the same way.

An agent may set a picture behind the app, as SVG it draws or an image, and CSS. It can't change the themes Solanum comes with; it writes a new one instead.

Write the file by hand

Your themes are in the themes folder of Solanum's data folder, one .json file each. The file's name is the theme's id: lower-case letters, digits and dashes. Solanum follows the folder, so a file you save or drop in shows in Settings › Appearance, and a theme you're wearing changes as you edit it.

json
{
  "version": 1,
  "name": "Pine",
  "light": {
    "seeds": { "background": "#f4f1ea", "text": "#1f2a24", "accent": "#2f6b4f" }
  },
  "dark": {
    "seeds": { "background": "#111815", "text": "#e6ece8", "accent": "#6fbf97" },
    "tokens": { "sidebar": "#0c120f" }
  },
  "css": "[data-area=\"composer\"] { border-radius: 0; }"
}
KeyWhat it is
versionAlways 1.
nameWhat the theme is called, up to 64 characters.
light, darkAn appearance each. Give one or both.
cssOptional CSS, applied after Solanum's own. Up to 50,000 characters.

Each appearance takes these.

KeyWhat it is
seedsbackground, text and accent. The other colors are worked out from them and kept legible.
tokensColors set by name, over what the seeds work out.
wallpaperA picture behind the app, as a data: image address: SVG, PNG, JPEG, WebP or GIF.
vscodeAn imported VS Code theme's own colors, as it came.

Aim the CSS

Solanum's class names change with each release, so a theme's CSS aims at these, which stay.

SelectorWhat it is
[data-area="sidebar"]The sidebar.
[data-area="main"]Everything beside the sidebar.
[data-part="header"]The bar across the page's top.
[data-part="thread-row"]A thread in the sidebar.
[data-area="conversation"]A thread's messages.
[data-part="message"]A message, with [data-from="user"] or [data-from="agent"].
[data-area="composer"]The box prompts are written in.
[data-area="panel"]The side panel.
[data-area="terminal"]The terminal.
[data-part="home-background"]The picture behind a new thread, or a thread.
[data-area="settings"]Settings.
[data-slot="toast"]A toast.

A theme's CSS loads nothing from elsewhere: no @import, and url() only with a data: address or an #id. Where a rule shows no effect, Solanum's own may be more specific; add !important.