{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Kept in the account that made it, keyed by a TID. Choosing one (place.hud.setTheme) copies its colours, so a theme changed or deleted later leaves those who chose it as they were.",
      "key": "tid",
      "record": {
        "properties": {
          "colorScheme": {
            "description": "Whether it is light or dark: how a platform draws what the palette does not colour.",
            "knownValues": [
              "light",
              "dark"
            ],
            "maxLength": 16,
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "name": {
            "description": "What the theme is called, as the workspace lists it.",
            "maxGraphemes": 64,
            "maxLength": 640,
            "type": "string"
          },
          "palette": {
            "description": "Its colours, each text reading at 4.5:1 or better on what it is drawn on.",
            "ref": "place.hud.defs#palette",
            "type": "ref"
          }
        },
        "required": [
          "name",
          "colorScheme",
          "palette",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "A theme a person made for HUD's workspace, for anyone to draw it in.",
  "id": "place.hud.theme",
  "lexicon": 1
}
