{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A self-contained theme: a mapping of CSS values to Mise en Mode intent tokens, grouped by aspect. The record key is the expression the theme serves (e.g. 'dark', 'com.homedepot.easter', 'default').",
      "key": "any",
      "record": {
        "properties": {
          "aspects": {
            "description": "The theme's renderable style, grouped by aspect. Required container; each aspect inside is optional but complete when present.",
            "ref": "lex:place.mode.standard.defs#aspects",
            "type": "ref"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "description": {
            "description": "Optional human-readable description of the theme.",
            "maxGraphemes": 256,
            "maxLength": 2560,
            "type": "string"
          },
          "displayName": {
            "description": "Optional display name for the theme — presentation only. Identity and matching remain the record key; apps must never match on this.",
            "maxGraphemes": 64,
            "maxLength": 640,
            "type": "string"
          },
          "fonts": {
            "description": "Font faces the theme's text relies on, referenced by `text.*.family` and rendered to document-global @font-face. Optional.",
            "items": {
              "ref": "lex:place.mode.standard.defs#fontDescriptor",
              "type": "ref"
            },
            "type": "array"
          }
        },
        "required": [
          "aspects",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "place.mode.standard.theme",
  "lexicon": 1
}
