{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://komalang.org/schemas/koma-theme.schema.json",
  "title": "Koma theme.json",
  "description": "The description of a folder theme written as `theme.css` and `theme.json` (THM-002, CLI-021). A folder with `theme.koma` takes its description from `theme.koma` and does not read `theme.json`.",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name shown for the theme. The folder name stands in when absent."
    },
    "version": {
      "type": "string",
      "description": "The theme's own version."
    },
    "license": {
      "type": "string",
      "description": "The licence of the theme, for example an SPDX identifier."
    },
    "kinds": {
      "type": "array",
      "description": "The kinds of document the theme is for. `slide` when absent; `document` is read as `article`.",
      "items": {
        "enum": ["slide", "article", "poster", "document"]
      }
    },
    "boxStyles": {
      "type": "object",
      "description": "Box style classes the theme defines in theme.css, with the name the format pane shows for each (THM-008): `{ \"quote\": \"Quote\" }`.",
      "propertyNames": {
        "pattern": "^-?[a-zA-Z_][a-zA-Z0-9_-]*$"
      },
      "additionalProperties": {
        "type": "string",
        "pattern": "\\S"
      }
    },
    "layouts": {
      "deprecated": true,
      "description": "Not applied: define layouts in theme.koma.",
      "not": {}
    }
  },
  "additionalProperties": false
}
