{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://tmp.innovacionsantiago.cl/style-v10/schemas/theme.v1.json",
  "title": "Theme Style v10 para renderers",
  "type": "object",
  "required": [
    "schema",
    "version",
    "typography",
    "palette"
  ],
  "properties": {
    "schema": {
      "const": "cis.style.renderer-theme.v1"
    },
    "version": {
      "type": "string"
    },
    "typography": {
      "type": "object",
      "required": [
        "sans",
        "mono"
      ],
      "properties": {
        "sans": {
          "const": "IBM Plex Sans, sans-serif"
        },
        "mono": {
          "const": "JetBrains Mono, monospace"
        }
      },
      "additionalProperties": false
    },
    "palette": {
      "type": "object",
      "required": [
        "bg",
        "ink",
        "line",
        "accent",
        "categorical"
      ],
      "properties": {
        "bg": {
          "type": "string",
          "pattern": "^#[A-Fa-f0-9]{6}$"
        },
        "ink": {
          "type": "string",
          "pattern": "^#[A-Fa-f0-9]{6}$"
        },
        "line": {
          "type": "string",
          "pattern": "^#[A-Fa-f0-9]{6}$"
        },
        "accent": {
          "type": "string",
          "pattern": "^#[A-Fa-f0-9]{6}$"
        },
        "categorical": {
          "type": "array",
          "minItems": 5,
          "items": {
            "type": "string",
            "pattern": "^#[A-Fa-f0-9]{6}$"
          }
        },
        "sequential": {
          "type": "array",
          "minItems": 3,
          "maxItems": 3,
          "items": {
            "type": "string",
            "pattern": "^#[A-Fa-f0-9]{6}$"
          }
        }
      },
      "additionalProperties": false
    }
  },
  "additionalProperties": false
}
