Files
awesome-opencode/data/examples/theme.yaml
T
John SmithandClaude Opus 5.5 56fad94c34 feat(schema): add kind, topics, compat, npm and path; reject unknown fields and non-root repo URLs
Entries gain a fixed kind and 1-3 topics (replacing 374 one-off tags as the categorization axis), an OpenCode API compat field (required for plugins), and npm/path for packages and monorepo folders. repo must be a repository root; unknown fields such as install: or repository: are rejected. Cross-entry rules (one entry per repo+path, kind must fit the category, no placeholder owners or mojibake) live in scripts/utils/catalog.js, and validate.js now always loads the whole catalog and fails on unparseable YAML. Adds npm run fmt for canonical formatting and drops the unused glob dependency.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-17 13:00:22 -04:00

63 lines
1.8 KiB
YAML

# Example Theme Entry
# Themes customize the OpenCode editor appearance.
# Place actual entries in: data/themes/your-theme-name.yaml
# ============================================================================
# REQUIRED FIELDS
# ============================================================================
name: Example Dark Theme
repo: https://github.com/example/opencode-example-theme
tagline: A beautiful dark theme with vibrant accents
description: A dark theme designed for extended coding sessions.
Features high contrast syntax highlighting and
carefully chosen colors to reduce eye strain.
kind: theme # plugin, theme, agent, skill, mcp-server, client, tool, config, guide, fork
topics: # 1-3 from the fixed list in data/schema.json; the first is used for README grouping
- ui
# ============================================================================
# OPTIONAL FIELDS
# ============================================================================
# Scope defines where the extension can be installed (defaults to [global])
# Themes are typically global-only
scope:
- global # ~/.config/opencode/themes/
tags:
- dark
- high-contrast
- syntax-highlighting
min_version: "1.0.0"
homepage: https://example.com/themes/dark
installation: |
## Installation
### Global
```bash
# Download theme JSON
curl -o ~/.config/opencode/themes/example-dark.json \
https://raw.githubusercontent.com/example/opencode-example-theme/main/theme.json
```
## Configuration
Add to your `opencode.json`:
```json
{
"theme": "example-dark"
}
```
## Files Modified
- `~/.config/opencode/themes/example-dark.json`
- `~/.config/opencode/opencode.json` (theme reference)
## Removal
1. Delete `~/.config/opencode/themes/example-dark.json`
2. Change `theme` in `opencode.json` to another theme