theme.json 703 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Theme field",
  "description": "Schema to validate the theme field (used in the frontend)",
  "type": "object",
  "properties": {
    "mode": {
      "description": "What is the selected mode of the theme",
      "type": "string",
      "enum": [
        "light",
        "dark"
      ]
    },
    "light": {
      "description": "Settings in light mode",
      "$ref": "definitions.json#/definitions/palette"
    },
    "dark": {
      "description": "Settings in dark mode",
      "$ref": "definitions.json#/definitions/palette"
    }
  },
  "required": [
    "mode",
    "light",
    "dark"
  ],
  "additionalProperties": false
}