{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/sprite-files/latest.json",
  "description": "Schema for image sprite generation files",
  "x-lintel": {
    "source": "https://www.schemastore.org/sprite.json",
    "sourceSha256": "b3dcc349eaa377beda3f3192251899e772adb26e9f39346dee8af4b8a0eba58d",
    "fileMatch": [
      "*.sprite"
    ]
  },
  "type": "object",
  "properties": {
    "customstyles": {
      "description": "Define custom CSS declarations to inject into the generated stylesheet.",
      "type": "object",
      "additionalProperties": {
        "description": "A custom CSS declaration (property: value).",
        "type": [
          "string",
          "number"
        ]
      }
    },
    "dpi": {
      "description": "The image resolution of the generated image sprite",
      "type": "integer",
      "default": 96
    },
    "images": {
      "description": "An array of file paths relative to this document. The name must be unique.",
      "type": "object",
      "additionalProperties": {
        "description": "A source image for the sprite.",
        "type": "string"
      }
    },
    "optimize": {
      "description": "Optimizes the generated image either lossy or lossless. Requires the \"Image Optimizer\" extension for Visual Studio",
      "enum": [
        "lossless",
        "lossy",
        "none"
      ],
      "default": "lossless"
    },
    "orientation": {
      "description": "The orientation of the individual images inside the generated sprite.",
      "enum": [
        "horizontal",
        "vertical"
      ],
      "default": "vertical"
    },
    "output": {
      "description": "Output format of the generated image sprite.",
      "enum": [
        "png",
        "jpg",
        "gif"
      ],
      "default": "png"
    },
    "padding": {
      "description": "The padding around each individual image in the sprite. The value is in pixels.",
      "type": "integer",
      "default": 10
    },
    "pathprefix": {
      "description": "Add any path root in front of the generated. Example: \"/images/\"",
      "type": "string",
      "default": ""
    },
    "stylesheet": {
      "description": "Define stylesheets (css, less, sass) to be generated as part of the sprite generation process.",
      "enum": [
        "none",
        "css",
        "less",
        "scss",
        "styl"
      ],
      "default": "none"
    }
  },
  "required": [
    "images"
  ],
  "id": "https://json.schemastore.org/sprite.json"
}
