summaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
authoradamdottv <[email protected]>2025-04-30 11:05:59 -0500
committeradamdottv <[email protected]>2025-04-30 11:05:59 -0500
commit91ae9b33d37df7a53bda958d787268ef0f917ffd (patch)
tree27d1ceb87f30c666e20ebf6c7baeb8e1bd34693a /cmd
parenta42175c067dd6b3e594d1e8de4f39a441bd9603b (diff)
downloadopencode-91ae9b33d37df7a53bda958d787268ef0f917ffd.tar.gz
opencode-91ae9b33d37df7a53bda958d787268ef0f917ffd.zip
feat: custom themes
Diffstat (limited to 'cmd')
-rw-r--r--cmd/schema/main.go28
1 files changed, 28 insertions, 0 deletions
diff --git a/cmd/schema/main.go b/cmd/schema/main.go
index adc2b4626..6340cb32f 100644
--- a/cmd/schema/main.go
+++ b/cmd/schema/main.go
@@ -116,6 +116,34 @@ func generateSchema() map[string]any {
"onedark",
"tokyonight",
"tron",
+ "custom",
+ },
+ },
+ "customTheme": map[string]any{
+ "type": "object",
+ "description": "Custom theme color definitions",
+ "additionalProperties": map[string]any{
+ "oneOf": []map[string]any{
+ {
+ "type": "string",
+ "pattern": "^#[0-9a-fA-F]{6}$",
+ },
+ {
+ "type": "object",
+ "properties": map[string]any{
+ "dark": map[string]any{
+ "type": "string",
+ "pattern": "^#[0-9a-fA-F]{6}$",
+ },
+ "light": map[string]any{
+ "type": "string",
+ "pattern": "^#[0-9a-fA-F]{6}$",
+ },
+ },
+ "required": []string{"dark", "light"},
+ "additionalProperties": false,
+ },
+ },
},
},
},