# place.hud.theme

> 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.

- Kind: record
- Record key: tid
- Authority: hud.place
- Lexicon: 1
- Published by [lexicons.hud.place](https://lexicon.garden/identity/did:plc:3tzbz4pml36u4mkresb6pdhv), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:3tzbz4pml36u4mkresb6pdhv/place.hud.theme)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:3tzbz4pml36u4mkresb6pdhv/place.hud.theme/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:3tzbz4pml36u4mkresb6pdhv/place.hud.theme/analytics)

## Record (`place.hud.theme`)

Type: record · key tid

### Properties

- `colorScheme` (string, required): Whether it is light or dark: how a platform draws what the palette does not colour.
  - Constraints: maxLength: 16, knownValues: light | dark
- `createdAt` (string · datetime, required)
- `name` (string, required): What the theme is called, as the workspace lists it.
  - Constraints: maxLength: 640, maxGraphemes: 64
- `palette` (ref, required): Its colours, each text reading at 4.5:1 or better on what it is drawn on.
  - Reference: `place.hud.defs#palette`

## Schema

```json
{
  "$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
}
```
