diff options
| author | Fuwn <[email protected]> | 2026-01-19 23:05:26 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-01-19 23:05:26 -0800 |
| commit | 4cbee4da97dcc2832cd354142aa9909a80070952 (patch) | |
| tree | 338f54b0ee2dd033f5049888b586aa3c77e22c18 /config.example.yaml | |
| parent | fix: Remove duplicate monitor name validation across groups (diff) | |
| download | kaze-4cbee4da97dcc2832cd354142aa9909a80070952.tar.xz kaze-4cbee4da97dcc2832cd354142aa9909a80070952.zip | |
feat: Add OpenCode-compatible theme loader
Add support for loading and applying OpenCode-compatible themes via URL.
Fetches theme JSON, resolves color references, generates CSS variables
and Tailwind class overrides to apply the theme seamlessly.
Features:
- Add theme_url config field under site section
- Fetch and parse OpenCode theme.json format
- Generate CSS custom properties (--theme-*) for all theme colors
- Generate Tailwind class overrides to apply theme colors
- Support both light and dark modes
- Template.CSS type for safe CSS injection
Example usage:
site:
theme_url: "https://raw.githubusercontent.com/anomalyco/opencode/.../opencode.json"
Theme schema: https://opencode.ai/theme.json
Diffstat (limited to 'config.example.yaml')
| -rw-r--r-- | config.example.yaml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config.example.yaml b/config.example.yaml index d751ac5..bf3ff0f 100644 --- a/config.example.yaml +++ b/config.example.yaml @@ -12,6 +12,8 @@ site: description: "Service Status Page" # logo: "https://example.com/logo.svg" # Optional logo URL # favicon: "https://example.com/favicon.ico" # Optional favicon URL + # theme_url: "https://raw.githubusercontent.com/anomalyco/opencode/main/packages/opencode/src/cli/cmd/tui/context/theme/opencode.json" + # ^ Optional: URL to OpenCode-compatible theme JSON (see https://opencode.ai/theme.json for schema) # HTTP server settings server: |