87 lines
4.2 KiB
Markdown
87 lines
4.2 KiB
Markdown
# Appearance and custom themes
|
|
|
|
[User guide](../user-guide.md) · [Interface design](../ui-design.md)
|
|
|
|
Open Settings → Appearance to choose a palette or install a custom theme.
|
|
RuneStone and Claude offer separate light and dark choices in the theme menu.
|
|
Sakura uses one light appearance. Harvest Moon, Crimson Pilot, and Silver Serpent each use one dark appearance.
|
|
Named palettes include their own typography and syntax colors. Fonts use local fallback stacks without downloads.
|
|
|
|
## Adjust transparency
|
|
|
|
Transparent surfaces controls the tint on menus, image-backed work areas, and compatible plugin surfaces.
|
|
The amount ranges from 0% to 100%. The default is 18%.
|
|
Turn the switch off for opaque surfaces. This keeps text and icons opaque and preserves the selected palette.
|
|
The setting applies across open windows and remains after restart.
|
|
|
|
## Create a theme
|
|
|
|
1. Select the appearance that you want as a starting point.
|
|
2. Choose Export theme template.
|
|
3. Edit the saved JSON file in a text editor.
|
|
4. Choose Install theme and select the file.
|
|
|
|
The export contains one `colors` palette, including the current surface, text, accent, status, and syntax colors.
|
|
Custom themes use this fixed palette. They do not contain separate light and dark sections.
|
|
The file must be smaller than 64 KiB. The palette requires `bg`, `text`, and `accent`.
|
|
Use hexadecimal colors with 3, 4, 6, or 8 digits.
|
|
|
|
```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"
|
|
}
|
|
}
|
|
```
|
|
|
|
The ID starts with a lowercase letter. It permits lowercase letters, numbers, and hyphens, up to 64 characters.
|
|
The visible name permits up to 80 characters. Installing the same ID replaces that theme's colors.
|
|
Unknown keys and invalid colors stop installation with an error.
|
|
Older schema 1 themes remain importable. Import uses the palette for the current appearance and saves it as one fixed palette.
|
|
|
|
## Available colors
|
|
|
|
| Keys | Use |
|
|
| --- | --- |
|
|
| `bg`, `bg-elevated`, `bg-active`, `border` | Surfaces and boundaries |
|
|
| `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 |
|
|
|
|
Optional colors use the base appearance when omitted. Export includes all supported keys to make these choices explicit.
|
|
Theme files can also contain an optional `fonts` object with `ui`, `prose`, `heading`, and `mono` font stacks.
|
|
Export includes all four current stacks. For example, `"fonts": { "ui": "Segoe UI, sans-serif", "mono": "Cascadia Mono, monospace" }`.
|
|
These names use fonts installed on the device. Theme files do not install font files.
|
|
Imports without `fonts` keep the selected theme's normal font stacks.
|
|
Theme files contain colors and font stacks without scripts, style rules, or plugin code.
|
|
|
|
## Set a background
|
|
|
|
Choose an image in Appearance. Its layout can fill the area, fit the complete image, or retain its original size.
|
|
Choose an alignment and set the overlay from -100% to 100%.
|
|
Negative values lighten the image. Positive values darken it.
|
|
Background images remain local. Project Management can retain a separate board image.
|
|
The optional Background Slideshow plugin can temporarily replace these images.
|
|
|
|
## Share or remove a theme
|
|
|
|
With a custom theme selected, Export theme template saves its current definition.
|
|
Share the JSON file with another user, who can install it through Appearance.
|
|
Remove custom theme returns to RuneStone colors. Themes remain in this device's preferences across workspaces.
|
|
|
|
Check text, links, focus, selections, and image surfaces before sharing a theme.
|
|
Keep informative text and symbols opaque. Use the [functional color requirements](../ui-color.md) when choosing colors.
|