{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "bricks://controls/text-shadow",
  "schemaVersion": "2.3",
  "title": "Text Shadow Control",
  "description": "Text shadow settings",
  "controlProperties": [
    "type",
    "label",
    "group",
    "css",
    "hasRequired"
  ],
  "type": "object",
  "properties": {
    "values": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "color": {
            "description": "Color value in various formats",
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "hex": {
                    "type": "string",
                    "pattern": "^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$"
                  }
                },
                "required": [
                  "hex"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "rgb": {
                    "type": "string",
                    "pattern": "^rgba?\\("
                  }
                },
                "required": [
                  "rgb"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "hsl": {
                    "type": "string",
                    "pattern": "^hsla?\\("
                  }
                },
                "required": [
                  "hsl"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "raw": {
                    "type": "string",
                    "description": "Raw color value or CSS variable"
                  }
                },
                "required": [
                  "raw"
                ]
              }
            ]
          },
          "h": {
            "type": "string"
          },
          "v": {
            "type": "string"
          },
          "blur": {
            "type": "string"
          }
        }
      }
    }
  }
}