summaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
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,
+ },
+ },
},
},
},