{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/warp-themes-json/latest.json",
  "title": "theme",
  "description": "A theme",
  "x-lintel": {
    "source": "https://www.schemastore.org/warp-themes.json",
    "sourceSha256": "4abbc601d556df989072c716483cc47a207bebe38f3dd7623b66e8f78967b362",
    "fileMatch": [
      "**/.warp/themes/*.yaml"
    ],
    "parsers": [
      "yaml"
    ]
  },
  "type": "object",
  "properties": {
    "accent": {
      "$ref": "#/$defs/color-or-gradient",
      "title": "accent",
      "description": "An accent color of the current theme\n<https://docs.warp.dev/appearance/custom-themes#create-your-own-custom-theme-manually>"
    },
    "background": {
      "$ref": "#/$defs/color-or-gradient",
      "title": "background",
      "description": "A background color of the current theme\n<https://docs.warp.dev/appearance/custom-themes#create-your-own-custom-theme-manually>"
    },
    "details": {
      "title": "details",
      "description": "Whether lighter or darker colors are used in the current theme\n<https://docs.warp.dev/appearance/custom-themes#create-your-own-custom-theme-manually>",
      "type": "string",
      "enum": [
        "lighter",
        "darker"
      ]
    },
    "foreground": {
      "$ref": "#/$defs/color",
      "title": "foreground",
      "description": "A foreground color of the current theme\n<https://docs.warp.dev/appearance/custom-themes#create-your-own-custom-theme-manually>"
    },
    "terminal_colors": {
      "title": "terminal colors",
      "description": "Terminal colors of the current theme\n<https://docs.warp.dev/appearance/custom-themes#create-your-own-custom-theme-manually>",
      "type": "object",
      "properties": {
        "bright": {
          "$ref": "#/$defs/colors",
          "title": "bright",
          "description": "Bright colors of the current theme\n<https://docs.warp.dev/appearance/custom-themes#create-your-own-custom-theme-manually>"
        },
        "normal": {
          "$ref": "#/$defs/colors",
          "title": "normal",
          "description": "Normal colors of the current theme\n<https://docs.warp.dev/appearance/custom-themes#create-your-own-custom-theme-manually>"
        }
      },
      "additionalProperties": false
    },
    "background_image": {
      "title": "background image",
      "description": "A background image of the current theme",
      "type": "object",
      "properties": {
        "path": {
          "title": "path",
          "description": "A path of the current image of the current theme\n<https://docs.warp.dev/appearance/custom-themes#background-images-and-gradients>",
          "type": "string",
          "minLength": 1,
          "examples": [
            "warp.jpg"
          ]
        },
        "opacity": {
          "title": "opacity",
          "description": "An opacity of the current image of the current theme\n<https://docs.warp.dev/appearance/custom-themes#background-images-and-gradients>",
          "type": "integer",
          "minimum": 0,
          "maximum": 100
        }
      },
      "additionalProperties": false
    }
  },
  "$defs": {
    "color": {
      "type": "string",
      "pattern": "^#[0-9a-fA-F]{6}$",
      "examples": [
        "#000000",
        "#ff0000",
        "#00ff00",
        "#0000ff",
        "#ffff00",
        "#ff00ff",
        "#00ffff",
        "#ffffff"
      ]
    },
    "colors": {
      "type": "object",
      "properties": {
        "black": {
          "$ref": "#/$defs/color",
          "title": "black",
          "description": "A black color of the current theme\n<https://docs.warp.dev/appearance/custom-themes#create-your-own-custom-theme-manually>"
        },
        "blue": {
          "$ref": "#/$defs/color",
          "title": "blue",
          "description": "A blue color of the current theme\n<https://docs.warp.dev/appearance/custom-themes#create-your-own-custom-theme-manually>"
        },
        "cyan": {
          "$ref": "#/$defs/color",
          "title": "cyan",
          "description": "A cyan color of the current theme\n<https://docs.warp.dev/appearance/custom-themes#create-your-own-custom-theme-manually>"
        },
        "green": {
          "$ref": "#/$defs/color",
          "title": "green",
          "description": "A green color of the current theme\n<https://docs.warp.dev/appearance/custom-themes#create-your-own-custom-theme-manually>"
        },
        "magenta": {
          "$ref": "#/$defs/color",
          "title": "magenta",
          "description": "A magenta color of the current theme\n<https://docs.warp.dev/appearance/custom-themes#create-your-own-custom-theme-manually>"
        },
        "red": {
          "$ref": "#/$defs/color",
          "title": "red",
          "description": "A red color of the current theme\n<https://docs.warp.dev/appearance/custom-themes#create-your-own-custom-theme-manually>"
        },
        "white": {
          "$ref": "#/$defs/color",
          "title": "white",
          "description": "A white color of the current theme\n<https://docs.warp.dev/appearance/custom-themes#create-your-own-custom-theme-manually>"
        },
        "yellow": {
          "$ref": "#/$defs/color",
          "title": "yellow",
          "description": "A yellow color of the current theme\n<https://docs.warp.dev/appearance/custom-themes#create-your-own-custom-theme-manually>"
        }
      },
      "additionalProperties": false
    },
    "color-or-gradient": {
      "oneOf": [
        {
          "$ref": "#/$defs/color"
        },
        {
          "type": "object",
          "oneOf": [
            {
              "properties": {
                "left": {
                  "$ref": "#/$defs/color",
                  "title": "left",
                  "description": "A left color of the current theme\n<https://docs.warp.dev/appearance/custom-themes#background-images-and-gradients>"
                },
                "right": {
                  "$ref": "#/$defs/color",
                  "title": "right",
                  "description": "A right color of the current theme\n<https://docs.warp.dev/appearance/custom-themes#background-images-and-gradients>"
                }
              },
              "additionalProperties": false,
              "type": "object"
            },
            {
              "properties": {
                "top": {
                  "$ref": "#/$defs/color",
                  "title": "top",
                  "description": "A top color of the current theme\n<https://docs.warp.dev/appearance/custom-themes#background-images-and-gradients>"
                },
                "bottom": {
                  "$ref": "#/$defs/color",
                  "title": "bottom",
                  "description": "A bottom color of the current theme\n<https://docs.warp.dev/appearance/custom-themes#background-images-and-gradients>"
                }
              },
              "additionalProperties": false,
              "type": "object"
            }
          ]
        }
      ]
    }
  },
  "additionalProperties": false
}
