awesome-opencode/examples/theme.yaml
Lucas Shamanic a806755d0f feat(schema): refine and expand extension metadata schema
- Introduce `scope`, `tags`, `min_version`, `homepage`, and `installation` fields for enhanced discoverability and guidance.
- Remove `install` and `compatibility` objects, replacing them with a simplified `installation` string field.
- Add `examples/` directory with full exemplar files for each extension type.
- Update `schema-design.md` to reflect new schema, clarify field definitions, and improve documentation structure.
2026-01-12 23:47:06 +00:00

59 lines
1.6 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.
# ============================================================================
# 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