From 91ae9b33d37df7a53bda958d787268ef0f917ffd Mon Sep 17 00:00:00 2001 From: adamdottv <2363879+adamdottv@users.noreply.github.com> Date: Wed, 30 Apr 2025 11:05:59 -0500 Subject: feat: custom themes --- cmd/schema/main.go | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'cmd') 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, + }, + }, }, }, }, -- cgit v1.2.3