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:
Knotty Wyvern
2026-10-27 19:35:43 -07:00
parent d7a87795f5
commit 4240d7dad1
25 changed files with 2041 additions and 2017 deletions
+59 -64
View File
@@ -1,85 +1,80 @@
# Functional color requirements
# Functional color
[Interface design](ui-design.md#functional-color-and-complete-menu-checks) · [Decision UI-024](design-decisions.md#ui-024--assertive-functional-color-by-default)
[Interface design](ui-design.md) · [Design decisions](design-decisions.md)
RuneStone uses assertive color to help users recognize information, distinguish states, and identify themes.
This policy applies to human developers and agents across the host and all plugins.
Start with vivid functional colors. Choose softer colors only when a concrete requirement or measured problem supports that choice.
This guide sets the color rules for RuneStone and its plugins, for human developers and agents.
Agents also apply the user-level `ui-functional-color` skill. This guide adds the project roles, references, thresholds, and evidence.
## What aggressive color selection means
## Default
Actively evaluate strong colors for accents, priority marks, status indicators, selection outlines, links, syntax, and important data.
Include high-saturation and high-value candidates. Treat 100% saturation and 100% HSV value as ordinary options when they serve the role.
Prefer the stronger candidate when readability, meaning, and distinction remain sound.
Do not automatically turn red into dusty coral, emerald into sage, gold into beige, or clear data colors into similar pastels.
- Start accents, priority, status, selection outlines, syntax, and important data with vivid, distinct candidates. Full saturation and full HSV value are normal options.
- Pick the stronger candidate when readability, meaning, and distinction stay correct.
- Do not soften a color only to look quiet, refined, professional, premium, minimal, or cohesive. A softer choice needs a concrete reason and before-and-after evidence.
- A quiet layout comes from spacing, hierarchy, and the amount of color on screen. It does not need a faded palette.
- Existing muted values are not an approved soft design.
- Keep informative text and symbols opaque.
Words such as quiet, refined, professional, premium, minimal, and cohesive do not set color limits.
Keep the layout focused through spacing, hierarchy, restrained repetition, and the amount of color on screen.
Use vivid colors where users must recognize identity, state, or meaning.
Set surfaces and dividers for their support role. There is no requirement to saturate every background, neutral, or text color.
A palette average is not a design target, and one bright token cannot excuse a mostly indistinct palette.
## Roles and tokens
## Requirements by role
All tokens are in `src/lib/theme/tokens.css`, unless the table names another file. Correct a wrong token at its source. Do not add local saturation or opacity overrides.
| Role | Requirement |
| --- | --- |
| Theme identity | Preserve characteristic hues and their strength from current references. |
| Priority and status | Use clear, assertive colors with opaque symbols. Pair color with shape or text. |
| Links and actions | Keep actionable text distinct and readable against its actual surface. |
| Selection and focus | Show a clear state change and boundary. Preserve readable content inside the selected area. |
| Syntax and data | Give different meanings distinct roles. Avoid several nearly identical muted colors. |
| Backgrounds and dividers | Support content and visible boundaries. Choose their strength by function rather than a palette-wide muting rule. |
| Disabled states | Distinguish unavailable actions while keeping labels readable. Do not apply their opacity to enabled content. |
| Role | Tokens | Requirement |
| --- | --- | --- |
| Theme identity | `--rs-accent`, `--rs-accent-2`, palette surfaces in `src/lib/theme/characterThemes.ts` | Keep the characteristic hues of the reference at their strength. |
| Status | `--rs-error`, `--rs-warn`, `--rs-warn-hot`, `--rs-ok` | Use clear, assertive colors. Pair color with a shape or text. |
| Priority (Project Management) | `--pm-priority-color` in the plugin `src/style.css` | Full saturation and value, with opaque symbols and readable text. |
| Links and actions | `--rs-accent` | Keep actionable text distinct and readable on its actual surface. |
| Selection and focus | `--rs-item-selection-*`, `--rs-selection`, `--rs-selection-text` | Show a clear state change and boundary. Content inside the selection stays readable. |
| Syntax | `--rs-syntax-*`, one for each role in `SYNTAX_ROLES` | Give each meaning a distinct color. A palette has at least 7 distinct syntax colors. |
| Surfaces and dividers | `--rs-bg`, `--rs-bg-elevated`, `--rs-bg-active`, `--rs-border`, `--rs-image-*` tints | Support the content. Choose their strength by function. |
| Disabled states | Role tokens of the control | Keep labels readable. Do not apply disabled opacity to enabled content. |
Use shared theme tokens. Correct an inappropriate token at its source instead of adding local saturation or opacity overrides.
Do not fade an entire badge, row, or container when only its background needs transparency.
Keep meaningful foreground symbols and text opaque.
Do not fade a whole badge, row, or container when only its background needs transparency.
## References and known failures
## Theme references
Read the current reference cards and respect the user's stated source priority.
For Holo, prefer the current fan art. Exclude removed images from later palette decisions.
Separate characteristic colors from scenery, lighting, alternate clothing, and unrelated details.
The first trading screenshot and Bloomberg example demonstrate clear information and state distinctions. They do not prescribe a terminal-like appearance for RuneStone.
- Read the current reference cards, and obey the source priority that the user gives.
- Harvest Moon (Holo) uses the current fan art. Removed images do not count for later palette decisions.
- Take the colors of the character. Exclude scenery, lighting, alternate clothing, and unrelated details.
- The trading screenshot and the Bloomberg example show clear information and state distinctions. They do not ask for a terminal-like appearance.
The October 13 review found specific problems:
## Known failures
- Holo used marshy green and pink roles that did not match the requested identity. Warm copper, chestnut, amber, and red replaced them.
- Asuka repeated green and similar cyan roles. Red, orange, yellow, and blue now carry clearer meanings.
- Malfoid used a sage accent and near-gray syntax. The emerald accent changed from about 29% saturation to 76%.
- Priority marks were too dark to draw attention. Their symbols now use full saturation and value with readable text.
The October 13 review found these problems. The values record that correction. They are not quotas for future themes.
These values record that correction. They are not universal quotas or fixed limits for future themes.
See the [menu and color review](menu-audit.md) for implementation evidence and image-surface limits.
| Palette | Problem | Correction |
| --- | --- | --- |
| Harvest Moon (Holo) | Marsh green and pink roles did not match the identity. | Warm copper, chestnut, amber, and red |
| Crimson Pilot (Asuka) | Repeated green and similar cyan roles | Red, orange, yellow, and blue carry distinct meanings. |
| Silver Serpent (Malfoid) | Sage accent and near-gray syntax | Emerald accent, saturation from about 29% to 76% |
| Priority marks | Too dark to draw attention | Full saturation and value, with readable text |
## Readability and visual checks
The [October 13 menu and color review](archive/menu-audit-2026-10-13.md) holds the measurements and the image-surface limits.
Check contrast against the actual rendered background, including alpha, layered surfaces, images, overlays, and selected states.
HSV value is not perceived brightness or a contrast ratio. Full value does not guarantee readable text.
When contrast fails, compare foreground, background, local surface, and role changes before reducing color strength.
Preserve readable text and state recognition. Follow the project's accessibility thresholds and existing contrast checks.
Passing contrast alone does not prove useful color distinctions, theme identity, or effective priority emphasis.
## Contrast thresholds
Inspect screenshots at normal display scale. Check relevant light and dark appearances, narrow layouts, focus, hover, selection, and disabled states.
Check actual content, code, menus, and priority marks where the changed tokens appear.
Record unavailable checks and failures. Browser mocks do not replace native desktop acceptance.
| Pair | Minimum | Test |
| --- | --- | --- |
| `text`, `text-dim`, `text-strong`, and `accent` on `bg`, `bg-elevated`, `bg-active`, and `selection` | 4.5:1 | `scripts/appearance.spec.ts`, `scripts/themePalette.spec.ts` |
| Each syntax role on `bg` and `bg-active` | 4.5:1 | `scripts/appearance.spec.ts` |
| Accent selection perimeter on the selection fill | 3:1 | `scripts/malfoidPalette.spec.ts` |
## Evidence required for review
`accent` on `selection` is exempt from the 4.5:1 text check. Run the tests with `pnpm test`.
Over a user image, contrast depends on the composite surface. Measure the 82% and 90% tints over the image that the change uses. Do not claim contrast over every possible image or overlay.
When contrast fails, change the foreground, background, surface, or role before you reduce color strength.
For each changed role, record:
## Evidence for review
| Field | Required evidence |
| --- | --- |
| Purpose | Meaning, theme reference, or recognition task |
| Implementation | Shared token and affected controls |
| Color | Old and new hex values, HSV saturation and value, and opacity |
| Readability | Foreground/background pairs, actual composite surface, and contrast results |
| Visual result | Normal-scale screenshots of affected states and layouts |
| Softer choice | Concrete requirement or measured problem, plus the stronger candidate considered |
Record the evidence that the `ui-functional-color` skill lists for each changed role. For RuneStone, also record:
A generic claim that muted colors look elegant or comfortable is insufficient.
Correct unexplained muting or record the unresolved issue before moving the work to Review.
Use the project's exception process for deliberate departures from this policy. A documented exception does not itself authorize the departure.
User acceptance still determines Done.
- The shared token and the affected controls.
- Each named palette and appearance that uses the token.
- Contrast on the actual composite surface, including image tints, overlays, and selected states.
- Screenshots at normal scale of the content, code, menus, and priority marks where the token appears.
- For a softer choice, the stronger candidate and the requirement or measured problem that rejected it.
- Checks that you could not run. Browser mocks do not replace native desktop checks.
Agents also use the global `ui-functional-color` skill. This document supplies the project rules for contributors without that skill.
Correct unexplained muting, or record it as unresolved, before the work moves to Review.
A deliberate departure needs an exception entry in the [design decision log](design-decisions.md). The entry alone does not authorize it.
Decision: [UI-024](design-decisions.md#ui-024--assertive-functional-color-by-default).