Move the agent instructions from AGENTS.md to CLAUDE.md. AGENTS.md now points to CLAUDE.md. The UI rules move to docs/ui-design.md. The version and release policy moves to the new docs/releases.md. Rewrite the README, the user guides, and the developer references. Check each claim against the code. Remove old version history and repeated warnings. Link to Gitea at git.knottywyvern.com instead of the LAN address. Move the October 13 menu audit to the archive.
99 lines
4.2 KiB
Markdown
99 lines
4.2 KiB
Markdown
# Appearance and custom themes
|
|
|
|
[RuneStone](../../README.md) · [User guide](../user-guide.md)
|
|
|
|
This guide explains how to choose colors, set a background image, and create or share a custom theme.
|
|
|
|
Open **Settings → Appearance**. Appearance settings apply to all workspaces on this computer and to all open windows.
|
|
|
|
## Choose a color theme
|
|
|
|
| Theme | Appearances |
|
|
| --- | --- |
|
|
| RuneStone | Light and dark |
|
|
| Claude | Light and dark |
|
|
| Sakura | Light only |
|
|
| Harvest Moon, Crimson Pilot, Silver Serpent | Dark only |
|
|
|
|
Each named theme has its own fonts and syntax colors. Fonts come from your computer. RuneStone does not download fonts.
|
|
|
|
## Adjust transparency
|
|
|
|
**Transparent surfaces** tints menus, work areas with a background image, and compatible plugin surfaces.
|
|
Set **Transparency amount** from 0% to 100%. The default is 18%.
|
|
Turn off **Transparent surfaces** for opaque surfaces. Text and icons stay opaque in both cases.
|
|
|
|
## Set a background image
|
|
|
|
1. Choose **Choose image…** and select a PNG, JPEG, WebP, or GIF file up to 50 MiB.
|
|
2. Set **Image size** to **Fill**, **Fit**, or **Actual size**.
|
|
3. Set **Image position**.
|
|
4. Set **Image overlay** from -100% to 100%. Negative values lighten the image, and positive values darken it.
|
|
|
|
The image shows in new tabs. RuneStone keeps it on this computer.
|
|
The Project Management plugin can keep a separate image for a board. The Background Slideshow plugin can replace the image for a time.
|
|
|
|
## Create a theme
|
|
|
|
1. Select the theme and appearance that you want to start from.
|
|
2. Choose **Export theme template**.
|
|
3. Edit the saved JSON file in a text editor.
|
|
4. Choose **Install theme** and select the file.
|
|
|
|
The template contains one `colors` palette and the current `fonts`. A custom theme has one fixed palette, without separate light and dark versions.
|
|
|
|
Example (a minimal theme file):
|
|
|
|
```json
|
|
{
|
|
"schema": 2,
|
|
"id": "harbor",
|
|
"name": "Harbor",
|
|
"colors": {
|
|
"bg": "#141414",
|
|
"bg-elevated": "#1c1c1c",
|
|
"bg-active": "#2a2a2a",
|
|
"border": "#454545",
|
|
"text": "#e6e6e6",
|
|
"text-dim": "#b0b0b0",
|
|
"text-strong": "#ffffff",
|
|
"accent": "#00c8ff",
|
|
"selection": "#264f78"
|
|
}
|
|
}
|
|
```
|
|
|
|
### Theme file rules
|
|
|
|
| Field | Rule |
|
|
| --- | --- |
|
|
| File | JSON, smaller than 64 KiB |
|
|
| `schema` | `2`. RuneStone also imports schema 1 files and converts them to one palette for the current appearance. |
|
|
| `id` | Starts with a lowercase letter. Lowercase letters, numbers, and hyphens. Up to 64 characters. A theme with the same ID replaces the installed theme. |
|
|
| `name` | Up to 80 characters |
|
|
| `colors` | Must contain `bg`, `text`, and `accent`. Each value is a hexadecimal color with 3, 4, 6, or 8 digits. |
|
|
| `fonts` | Optional. Font stacks for `ui`, `prose`, `heading`, and `mono`, such as `"mono": "Cascadia Mono, monospace"`. |
|
|
|
|
An unknown key or a color that is not valid stops the installation with an error.
|
|
If you omit an optional color, RuneStone uses the color of the base appearance. If you omit `fonts`, the theme uses the normal fonts.
|
|
Font stacks name fonts that are installed on the computer. A theme file cannot install fonts or contain scripts, style rules, or plugin code.
|
|
|
|
### Color keys
|
|
|
|
| Keys | Use |
|
|
| --- | --- |
|
|
| `bg`, `bg-elevated`, `bg-active`, `border` | Surfaces and borders |
|
|
| `text`, `text-dim`, `text-strong` | Normal, secondary, and prominent text |
|
|
| `accent`, `accent-2`, `selection` | Links, accents, and editor selection |
|
|
| `error`, `warn`, `warn-hot`, `ok`, `special` | Status and special content |
|
|
| `syntax-parameter`, `syntax-keyword`, `syntax-local`, `syntax-static`, `syntax-instance`, `syntax-global` | Code identifiers and keywords |
|
|
| `syntax-string`, `syntax-number`, `syntax-comment`, `syntax-type`, `syntax-function` | Code values, comments, types, and functions |
|
|
|
|
Before you share a theme, check text, links, focus outlines, selections, and surfaces with a background image.
|
|
Keep informative text and symbols opaque. See the [functional color requirements](../ui-color.md).
|
|
|
|
## Share or remove a theme
|
|
|
|
To share a custom theme, select it and choose **Export theme template**. The other person installs the JSON file with **Install theme**.
|
|
**Remove custom theme** removes the theme and selects the RuneStone colors.
|