Rewrite the documentation and the agent instructions
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.
This commit is contained in:
@@ -1,86 +1,108 @@
|
||||
# Images, diagrams, and tables
|
||||
|
||||
[User guide](../user-guide.md) · [Terminal guide](terminal.md)
|
||||
[RuneStone](../../README.md) · [User guide](../user-guide.md)
|
||||
|
||||
This guide explains how to insert and edit images, read diagrams, edit Markdown tables, and calculate in tables.
|
||||
|
||||
## Insert and edit images
|
||||
|
||||
Drag a workspace image from the navigator into a Markdown editor to insert a
|
||||
relative link to the existing file. An “Insert image” hint marks the editor.
|
||||
Escape cancels the drag. Dropping files from the system file explorer or pasting
|
||||
images copies them into `attachments/` with unique filenames. Undo removes the
|
||||
inserted links while keeping the image files.
|
||||
| Source | Result |
|
||||
| --- | --- |
|
||||
| Drag an image from the navigator into a Markdown editor | RuneStone inserts a relative link to the existing file. Press Escape to cancel the drag. |
|
||||
| Drop an image from your system file manager, or paste an image | RuneStone copies the image into the workspace `attachments/` folder with a unique name, then inserts a link. |
|
||||
|
||||
In Writer, image Markdown stays hidden until you choose **Edit image source**. The image remains visible while you edit. Hide it again with the same button,
|
||||
Escape, or by moving the cursor away. Click an image to select it, then
|
||||
right-click or press Shift+F10 for copy image, copy Markdown, swap image, remove
|
||||
image, zoom, edit source, open in a new tab, copy path, and show in Explorer.
|
||||
Remove image or Delete removes only that embed from the note and supports undo.
|
||||
Zoom supports fit, magnification and Escape to close, including in Split and Read.
|
||||
Undo removes the inserted link. It keeps the image file.
|
||||
|
||||
## Edit table contents
|
||||
In Writer, the image shows and its Markdown stays hidden. To edit the Markdown, choose **Edit image source**. To hide it again, choose the same button, press Escape, or move the cursor away.
|
||||
|
||||
Tables keep readable column widths and render `<br>` as cell line breaks.
|
||||
Hover beside a table's right edge to add a column, or below its bottom edge to
|
||||
add a row. Clicking a cell edits its contents. Wide tables scroll within the document.
|
||||
Select an image, then right-click it or press Shift+F10 for these actions:
|
||||
|
||||
### Move rows or columns
|
||||
- **Copy image**, **Copy Markdown**, **Swap image…**, and **Remove image**
|
||||
- **Zoom in**, **Edit image source**, and **Open in new tab**
|
||||
- **Copy path** and **Show in Explorer**, for workspace images
|
||||
|
||||
Grips appear on hover or keyboard focus above columns and beside body rows.
|
||||
Drag a grip to reorder: a preview follows the pointer, the source row/column
|
||||
stays highlighted, and a line marks the drop position. Drag near an edge
|
||||
to scroll, or press Escape to cancel. Focus a grip and use arrow keys to move it.
|
||||
Row moves keep the Markdown header fixed. Columns carry their alignment with them.
|
||||
|
||||
### Select, copy, or format cells
|
||||
|
||||
Drag across cells or Shift+click to select a rectangle, then right-click for
|
||||
cut/copy/paste, bold, italic, strikethrough, highlight, code, math, comment,
|
||||
clear formatting, alignment, clear cells, and delete cells. Clipboard shortcuts,
|
||||
Ctrl+B/I, Shift+arrow selection, and undo/redo work on the selected cells.
|
||||
TSV or Markdown tables paste as a grid and expand the table when needed.
|
||||
Alignment applies to selected columns, as required by Markdown. Clear empties
|
||||
contents; Delete removes complete selected rows/columns, or shifts a partial
|
||||
selection left. Math stores inline `$…$` syntax. Comments use `%%…%%` and are
|
||||
hidden in Read mode. Each operation can be undone in one step.
|
||||
|
||||
### Work with text inside a cell
|
||||
|
||||
Right-clicking text within a cell preserves the selected words and offers note
|
||||
links, external links, workspace search, extraction to a new note, formatting,
|
||||
rich/plain-text paste, and Select all. Extraction saves the selected Markdown
|
||||
in a new file and replaces the selection with a note link. Undo restores the
|
||||
original text without deleting the new note. Row and Column submenus insert,
|
||||
move, duplicate, and delete at the clicked cell. Column moves keep alignment. Sorting is stable and natural (2 before 10), leaves blanks last, and keeps the
|
||||
header fixed. Context-menu actions and table edge buttons have matching icons.
|
||||
|
||||
## Calculate with Table Formulas
|
||||
|
||||
Install and enable the optional Table Formulas plugin before using these calculations.
|
||||
|
||||
Table Formulas start with `=`: for example, `=B2+C2`, `=AVERAGE(B2:C2)`,
|
||||
`=SUM(B2:B10)`, or `=ROUND(B2/3, 2)`. Columns use A, B, …, AA. Row 1 is
|
||||
the header, so the first data row is 2. References stay inside the current table.
|
||||
Arithmetic supports `+`, `-`, `*`, `/`, `^`, parentheses, and postfix `%`.
|
||||
Functions include SUM, AVERAGE, MIN, MAX, COUNT, ABS, and ROUND.
|
||||
Separate function arguments with commas: `=AVERAGE(B2,C2)` averages two cells.
|
||||
A colon selects a range: `=AVERAGE(B2:C2)`.
|
||||
|
||||
Aggregates ignore text and blank cells. Arithmetic treats blank cells as zero.
|
||||
Results recalculate in Writer, Split, and Read. Click a result to edit its
|
||||
formula; Enter commits it and Tab moves to the next cell. The Formulas control
|
||||
below each table explains the syntax, and the active cell shows its address.
|
||||
Invalid formulas, missing cells, and circular references display error labels.
|
||||
|
||||
Markdown stores the formula itself, so other apps display readable source.
|
||||
Use code formatting or `\=` to keep formula-like text literal. References are
|
||||
positional: copying, inserting, deleting, sorting, or moving cells does not
|
||||
rewrite addresses. Cross-table references and automatic fill are not supported.
|
||||
**Remove image**, or the Delete key, removes the image link from the note. It does not delete the file. Undo restores the link.
|
||||
Zoom works in Writer, Read, and Split. It can fit the image or magnify it. Press Escape to close it.
|
||||
|
||||
## Read diagrams and document properties
|
||||
|
||||
The reader uses a Markdown parser for paragraphs, nested lists, tables, tasks,
|
||||
code blocks and reference images. Frontmatter sits in a collapsed Properties
|
||||
section. Wiki links, note callouts and locally rendered Mermaid diagrams are
|
||||
supported in Writer, Split and Read. Diagram source remains available to copy. Invalid diagrams show a message and their source. Toolbar icons show tooltips
|
||||
on hover or keyboard focus; Split view stacks vertically in narrow panes.
|
||||
Writer, Read, and Split show wiki links, note callouts, and Mermaid diagrams.
|
||||
RuneStone renders Mermaid diagrams locally. If a diagram is not valid, RuneStone shows an error message and the diagram source.
|
||||
Read shows frontmatter in a collapsed **Properties** section.
|
||||
|
||||
## Edit tables
|
||||
|
||||
Tables keep readable column widths. A `<br>` in a cell shows as a line break. Wide tables scroll inside the document.
|
||||
|
||||
- Select a cell to edit its contents.
|
||||
- To add a column, hover beside the right edge of the table and select +. To add a row, hover below the bottom edge.
|
||||
- Right-click a cell for the **Row** and **Column** menus. They insert, move, duplicate, delete, and sort at that cell.
|
||||
|
||||
Sort is stable and natural, so 2 comes before 10. Blank cells go last, and the header row stays in place.
|
||||
|
||||
### Move rows or columns
|
||||
|
||||
Grips show above columns and beside body rows when you hover or focus the table.
|
||||
|
||||
1. Drag a grip. A line shows the drop position.
|
||||
2. Release the grip at the new position.
|
||||
|
||||
To scroll, drag near an edge. To cancel, press Escape. You can also focus a grip and move it with the arrow keys.
|
||||
A row move keeps the header row in place. A column move keeps the column alignment.
|
||||
|
||||
### Select, copy, and format cells
|
||||
|
||||
Drag across cells, or Shift+click, to select a rectangle. Shift+arrow keys extend the selection.
|
||||
Then right-click for these actions:
|
||||
|
||||
| Group | Actions |
|
||||
| --- | --- |
|
||||
| Clipboard | Cut, copy, and paste |
|
||||
| Format | Bold, italic, strikethrough, highlight, code, math, comment, and clear formatting |
|
||||
| Layout | Alignment, clear cells, and delete cells |
|
||||
|
||||
Ctrl+X, Ctrl+C, Ctrl+V, Ctrl+B, Ctrl+I, and undo also work on the selected cells. Undo reverts each action in one step.
|
||||
|
||||
- When you paste tab-separated text or a Markdown table, RuneStone fills the cells and adds rows or columns as necessary.
|
||||
- Alignment applies to whole columns, because Markdown sets alignment per column.
|
||||
- **Clear cells** empties the cells. **Delete cells** removes complete rows or columns, or moves the remaining cells of a partial selection to the left.
|
||||
- Math uses inline `$…$` syntax. A comment uses `%%…%%` and does not show in Read.
|
||||
|
||||
### Work with text inside a cell
|
||||
|
||||
Right-click selected text in a cell for note links, external links, workspace search, formatting, and paste as rich or plain text.
|
||||
**Extract current selection…** saves the selected Markdown to a new note and replaces the selection with a link to that note.
|
||||
Undo restores the original text. It does not delete the new note.
|
||||
|
||||
## Calculate with Table Formulas
|
||||
|
||||
These calculations need the optional Table Formulas plugin. See [Install a plugin](../plugins.md#install-a-plugin).
|
||||
|
||||
Start a cell with `=` to make a formula. Columns use letters A, B, … AA. Row 1 is the header, so the first data row is row 2.
|
||||
|
||||
| Example | Result |
|
||||
| --- | --- |
|
||||
| `=B2+C2` | Adds two cells. |
|
||||
| `=AVERAGE(B2,C2)` | Averages two cells. Commas separate arguments. |
|
||||
| `=AVERAGE(B2:C2)` | Averages every cell from B2 through C2. A colon sets a range. |
|
||||
| `=SUM(B2:B10)` | Adds a range. |
|
||||
| `=ROUND(B2/3, 2)` | Rounds to two decimal places. |
|
||||
|
||||
| Feature | Supported values |
|
||||
| --- | --- |
|
||||
| Operators | `+`, `-`, `*`, `/`, `^`, parentheses, and postfix `%` |
|
||||
| Functions | SUM, AVERAGE, MIN, MAX, COUNT, ABS, and ROUND |
|
||||
|
||||
Functions that take a range ignore text and blank cells. Arithmetic uses zero for a blank cell.
|
||||
Results update in Writer, Read, and Split. Select a result to edit its formula. Enter saves the formula, and Tab moves to the next cell.
|
||||
The **Formulas** control below each table explains the syntax. The active cell shows its address.
|
||||
A formula that is not valid, a missing cell, or a circular reference shows an error label.
|
||||
|
||||
The Markdown file keeps the formula text, so other apps show readable source.
|
||||
To keep text that starts with `=` as text, use code formatting or type `\=`.
|
||||
|
||||
Formula limits:
|
||||
|
||||
- References stay inside the current table.
|
||||
- References are fixed positions. When you copy, insert, delete, sort, or move cells, RuneStone does not update the addresses.
|
||||
- RuneStone has no automatic fill.
|
||||
|
||||
+69
-38
@@ -1,57 +1,88 @@
|
||||
# Terminal guide
|
||||
|
||||
[User guide](../user-guide.md) · [Install a plugin](../plugins.md#install-a-plugin)
|
||||
[RuneStone](../../README.md) · [User guide](../user-guide.md) · [Install a plugin](../plugins.md#install-a-plugin)
|
||||
|
||||
Install and enable the Terminal plugin to use these controls. The shell runtime must exist on your computer.
|
||||
This guide explains how to use shells, scripts, and workspace tasks with the optional Terminal plugin.
|
||||
|
||||
Install and enable the Terminal plugin first. The shells and script runtimes that you use must be installed on your computer.
|
||||
|
||||
## Open and arrange terminals
|
||||
|
||||
Ctrl+` or Ctrl+J shows or hides the terminal, preserving sessions and scrollback.
|
||||
New Terminal (Ctrl+Shift+`) creates an independent shell; Split (Ctrl+Shift+5)
|
||||
adds a resizable pane in the active group and inherits its current directory/profile.
|
||||
The terminal list appears only when multiple sessions exist. Kill terminates a
|
||||
session; Delete does the same while a terminal-list entry has focus. Maximize
|
||||
and Restore change the panel size without restarting shells.
|
||||
| Action | How |
|
||||
| --- | --- |
|
||||
| Show or hide the terminal panel | Ctrl+` or Ctrl+J. Sessions and scrollback stay. |
|
||||
| New terminal | Ctrl+Shift+` or the + button |
|
||||
| Split the active terminal | Ctrl+Shift+5. The new pane uses the same folder and profile. |
|
||||
| New terminal window | Ctrl+Shift+Alt+` |
|
||||
| End the active session | **Kill terminal**, or Delete while an entry in the terminal list has focus |
|
||||
| Change the panel size | **Maximize panel** or **Restore panel**. Shells do not restart. |
|
||||
| End all sessions in the panel | **Close terminal (end all sessions)** |
|
||||
|
||||
## Choose a shell and its settings
|
||||
The terminal list shows only when more than one session is open.
|
||||
Closing a separate terminal window ends its sessions.
|
||||
|
||||
The dropdown immediately beside New Terminal offers installed PowerShell,
|
||||
PowerShell 7, Git Bash, Command Prompt, and Bash profiles, a default-profile
|
||||
picker, terminal settings, tasks, and separate terminal windows
|
||||
(Ctrl+Shift+Alt+`). Font size, scrollback, cursor blinking, and default profile
|
||||
persist locally. New terminals inherit the app environment, including PATH.
|
||||
## Choose a shell
|
||||
|
||||
## Run scripts and navigate commands
|
||||
Open the menu beside the + button to start a terminal with a specific profile.
|
||||
|
||||
Drag across terminal text to select it. Ctrl+C copies a selection.
|
||||
Without a selection, Ctrl+C sends an interrupt to the shell. Ctrl+Shift+C also copies selected text.
|
||||
| System | Profiles |
|
||||
| --- | --- |
|
||||
| Windows | PowerShell, PowerShell 7, Git Bash, and Command Prompt |
|
||||
| macOS and Linux | Bash and PowerShell |
|
||||
|
||||
More terminal actions clears scrollback, runs selected editor text, or saves
|
||||
and runs the active script. Supported runners include Python, JavaScript,
|
||||
PowerShell, Bash, Ruby, Windows batch files, and executables. Their runtimes
|
||||
must be installed. Recent-command (Ctrl+Alt+R) and directory (Ctrl+G) pickers
|
||||
work while the terminal is focused. Ctrl+Up/Down navigates prompt markers.
|
||||
History is kept in memory for the current dock; PowerShell/Bash report commands
|
||||
after completion, while Command Prompt captures submitted text at its prompt.
|
||||
The menu shows only the shells that RuneStone finds on your computer.
|
||||
The same menu has **Split Terminal with Profile**, **Select Default Profile**, **Configure Terminal Settings**, and the task commands.
|
||||
Terminal settings set the font size, scrollback lines, cursor blink, and default profile. RuneStone keeps them on this computer.
|
||||
New terminals get the RuneStone environment, including `PATH`.
|
||||
|
||||
## Copy and paste
|
||||
|
||||
- Drag across terminal text to select it.
|
||||
- Ctrl+C copies the selection. With no selection, Ctrl+C sends an interrupt to the shell.
|
||||
- Ctrl+Shift+C copies the selection.
|
||||
- Right-click a selection to copy it.
|
||||
|
||||
## Run scripts and recent commands
|
||||
|
||||
Open **More terminal actions** for these commands:
|
||||
|
||||
| Command | Result |
|
||||
| --- | --- |
|
||||
| **Run Active File** | Saves and runs the active file in the terminal. |
|
||||
| **Run Selected Text** | Sends the text that is selected in the editor to the terminal. |
|
||||
| **Clear Terminal** | Clears the scrollback. |
|
||||
| **Run Recent Command…** (Ctrl+Alt+R) | Runs a command from this session again. |
|
||||
| **Go to Recent Directory…** (Ctrl+G) | Changes to a recent folder. |
|
||||
| **Scroll to Previous Command** / **Next Command** (Ctrl+Up / Ctrl+Down) | Moves between command prompts. |
|
||||
|
||||
**Run Active File** supports Python, JavaScript, PowerShell, Bash, Ruby, Windows batch files, and executables.
|
||||
The terminal keeps command history in memory only. PowerShell and Bash record a command after it finishes. Command Prompt records the text that you submit.
|
||||
|
||||
## Configure workspace tasks
|
||||
|
||||
Configure Tasks creates/opens `.runestone/tasks.json`. Its `tasks` array contains
|
||||
objects with `label`, `command`, and an optional `profile` ID (`powershell`,
|
||||
`pwsh`, `git-bash`, `cmd`, or `bash`). Run Task starts the chosen command in its
|
||||
own terminal at the workspace root. Tasks run only when explicitly selected.
|
||||
A task is a named command that you can start from a menu.
|
||||
|
||||
## Use debugging and dictation tools
|
||||
1. Choose **Configure Tasks…**. RuneStone creates or opens `.runestone/tasks.json`.
|
||||
2. Add an object to the `tasks` array with `label` and `command`.
|
||||
3. Optionally, add `profile` with one of these IDs: `powershell`, `pwsh`, `git-bash`, `cmd`, or `bash`.
|
||||
4. Choose **Run Task…** and select the task.
|
||||
|
||||
JavaScript Debug Terminal starts a Node.js REPL with a local inspector on an
|
||||
available port. Attach an external debugger using the printed address.
|
||||
RuneStone does not provide VS Code's debugger or automatic debug attachment.
|
||||
Start Dictation invokes Windows voice typing (Win+H) in the focused terminal;
|
||||
Windows microphone/voice-typing configuration is required. Other platforms
|
||||
use their operating system's dictation shortcut.
|
||||
Example (`.runestone/tasks.json`):
|
||||
|
||||
## Close detached terminals
|
||||
```json
|
||||
{
|
||||
"tasks": [
|
||||
{ "label": "Run tests", "command": "pnpm test", "profile": "pwsh" }
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
Closing a detached terminal window terminates its sessions. Switching workspace
|
||||
closes detached terminal windows and ends the old workspace's sessions.
|
||||
Each task runs in its own terminal at the workspace root. Tasks run only when you select them.
|
||||
|
||||
## Debug JavaScript and use dictation
|
||||
|
||||
**JavaScript Debug Terminal** in the profile menu starts a Node.js REPL with a local inspector on a free port.
|
||||
Attach an external debugger to the address that the terminal shows. RuneStone does not include a debugger.
|
||||
|
||||
**Start Dictation** starts Windows voice typing (Win+H) in the focused terminal. Set up the microphone and voice typing in Windows first.
|
||||
On other systems, use the dictation shortcut of the operating system.
|
||||
|
||||
+54
-42
@@ -1,30 +1,48 @@
|
||||
# Appearance and custom themes
|
||||
|
||||
[User guide](../user-guide.md) · [Interface design](../ui-design.md)
|
||||
[RuneStone](../../README.md) · [User guide](../user-guide.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.
|
||||
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 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.
|
||||
**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 appearance that you want as a starting point.
|
||||
2. Choose Export theme template.
|
||||
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.
|
||||
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.
|
||||
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
|
||||
{
|
||||
@@ -45,42 +63,36 @@ Use hexadecimal colors with 3, 4, 6, or 8 digits.
|
||||
}
|
||||
```
|
||||
|
||||
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.
|
||||
### Theme file rules
|
||||
|
||||
## Available colors
|
||||
| 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 boundaries |
|
||||
| `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 |
|
||||
|
||||
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.
|
||||
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
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user