{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://docs.smithable.ai/schema/smithable-ux-0.1.json",
  "title": "smithable.ux.yml",
  "description": "How the app looks: the theme, icons, columns, forms and the sections' looks.",
  "type": "object",
  "required": [
    "smithableUx"
  ],
  "additionalProperties": false,
  "properties": {
    "smithableUx": {
      "description": "The file format version.",
      "enum": [
        0.1,
        "0.1"
      ]
    },
    "theme": {
      "type": "object",
      "description": "The app's theme: a preset, the owner's colours and font, the density and the motion.",
      "additionalProperties": false,
      "properties": {
        "preset": {
          "type": "string",
          "description": "A built-in theme (arcade, darkmatter, halftone, starry-night, nature, dusk, hallmark-midnight, ultraviolet, ribbon, studio, vantage, specimen, spore, sticker, broadside, solstice, kiln, refract, terrazzo, sunset-horizon, amber-minimal, coral, amethyst-haze, cosmic-night, caffeine, ink, riso, vellum, loom, terminal, neo-brutalism, sport, squeeze, midnight-bloom, rim, elegant-luxury, darkroom, tangerine, mono, mocha-mousse, graphite, notebook, modern-minimal, manifesto, solar-dusk, sage-garden, grid, furrow, modern, minimal, playful, corporate, coastal, navy, editorial, woodland, contrast, nordic, pastel, midnight, craft, restaurant, street-food, cafe, warm-service, quiet-workspace, ink-and-brass, workbench, stillwater, brass, paperwork, monochrome, softbox, helpdesk) or one of the project's own (themes/<name>.yml)."
        },
        "brand": {
          "type": "object",
          "description": "The owner's own colours and font, over the preset.",
          "additionalProperties": false,
          "properties": {
            "primary": {
              "type": "string",
              "description": "The main colour, as #rrggbb."
            },
            "background": {
              "type": "string",
              "description": "A background colour, as #rrggbb: a wash of its hue in both modes."
            },
            "font": {
              "enum": [
                "Inter",
                "Nunito Sans",
                "Source Sans 3",
                "Source Serif 4",
                "Fraunces",
                "Archivo Narrow",
                "DM Sans",
                "Outfit",
                "Hanken Grotesk",
                "Instrument Sans",
                "Mona Sans",
                "Bricolage Grotesque",
                "Oswald",
                "Big Shoulders Display",
                "Instrument Serif",
                "Young Serif",
                "Newsreader",
                "Bodoni Moda",
                "Zilla Slab",
                "JetBrains Mono",
                "Bungee",
                "Chivo"
              ],
              "description": "The font: Inter, Nunito Sans, Source Sans 3, Source Serif 4, Fraunces, Archivo Narrow, DM Sans, Outfit, Hanken Grotesk, Instrument Sans, Mona Sans, Bricolage Grotesque, Oswald, Big Shoulders Display, Instrument Serif, Young Serif, Newsreader, Bodoni Moda, Zilla Slab, JetBrains Mono, Bungee, Chivo."
            }
          }
        },
        "density": {
          "enum": [
            "comfortable",
            "standard",
            "compact"
          ],
          "description": "How much space the lists and forms take."
        },
        "motion": {
          "enum": [
            "none",
            "subtle",
            "lively"
          ],
          "description": "How much moves: none, subtle (the default) or lively."
        }
      }
    },
    "pages": {
      "type": "object",
      "description": "Each page's look, by the page's name.",
      "additionalProperties": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "icon": {
            "enum": [
              "users",
              "user",
              "file",
              "receipt",
              "cart",
              "package",
              "calendar",
              "layers",
              "book",
              "briefcase",
              "building",
              "chart",
              "clipboard",
              "home",
              "mail",
              "settings",
              "star",
              "tag",
              "truck",
              "list"
            ],
            "description": "The page's icon in the navigation."
          },
          "table": {
            "type": "object",
            "description": "A list page's table: its columns, their order, the default sort and the view.",
            "additionalProperties": false,
            "properties": {
              "columns": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "The fields shown as columns, in order."
              },
              "totals": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Number and amount fields summed in a last row, with the count, over every record the viewer may see that fits the filters."
              },
              "below": {
                "type": "object",
                "description": "A field shown under another in its column, e.g. { email: phone }: the phone number under the email.",
                "additionalProperties": {
                  "type": "string"
                }
              },
              "sort": {
                "type": "string",
                "description": "The field the list is sorted by, with \"-\" in front for the highest first, e.g. -createdAt."
              },
              "view": {
                "enum": [
                  "table",
                  "cards"
                ],
                "description": "On a wide screen: a table, or cards (a phone shows cards anyway)."
              },
              "mark": {
                "enum": [
                  "initials",
                  "picture",
                  "none"
                ],
                "description": "A round mark before each record's title: its initials on a colour of their own, or the model's first picture."
              },
              "actions": {
                "enum": [
                  "below",
                  "menu"
                ],
                "description": "Each row's actions as buttons (below, the default) or in a … menu at the row's end."
              }
            }
          },
          "filters": {
            "type": "object",
            "description": "A list page's filters: shown, the ones shown when the list is first reached; the rest fold behind \"More filters\".",
            "additionalProperties": false,
            "properties": {
              "shown": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "The filters shown at once, from the page's filters in smithable.yml."
              },
              "look": {
                "enum": [
                  "default",
                  "chips"
                ],
                "description": "How the filters show: default (chips up to eight values, a list to pick from above) or chips (every choice and reference as a row of chips, with a referenced record's picture)."
              },
              "pick": {
                "type": "object",
                "description": "How a filter on a reference is picked, by its name: list (every related record as a choice) or search (found as you type); unsaid, a search from 200 related records.",
                "additionalProperties": {
                  "enum": [
                    "list",
                    "search"
                  ]
                }
              }
            }
          },
          "record": {
            "type": "object",
            "description": "The record page: how its lists of related records are shown, and its title row.",
            "additionalProperties": false,
            "properties": {
              "summary": {
                "type": "object",
                "additionalProperties": false,
                "description": "Omitted slots are automatic; [] shows none; names select existing fields.",
                "properties": {
                  "status": {
                    "description": "One choice field for status; omitted uses automatic selection, [] shows none.",
                    "type": "array",
                    "maxItems": 1,
                    "uniqueItems": true,
                    "items": {
                      "type": "string"
                    }
                  },
                  "amount": {
                    "description": "One money field or formula for the amount; omitted uses automatic selection, [] shows none.",
                    "type": "array",
                    "maxItems": 1,
                    "uniqueItems": true,
                    "items": {
                      "type": "string"
                    }
                  },
                  "dates": {
                    "description": "Up to two date/date-time fields in authored order; omitted uses automatic selection, [] shows none.",
                    "type": "array",
                    "maxItems": 2,
                    "uniqueItems": true,
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "lists": {
                "type": "object",
                "description": "By list field: table (the default), thread, a conversation with a reply box, e.g. { messages: thread }, or inline, rows edited in place, e.g. { lines: inline }.",
                "additionalProperties": {
                  "enum": [
                    "table",
                    "thread",
                    "inline"
                  ]
                }
              },
              "pictures": {
                "enum": [
                  "aside",
                  "top",
                  "none"
                ],
                "description": "aside: the record's pictures large beside its fields; top: across the top, a strip of thumbnails switching them; none (the default): among the fields."
              },
              "header": {
                "enum": [
                  "summary",
                  "none"
                ],
                "description": "summary: the title row carries the record's status, its amount and its key dates; none (the default)."
              },
              "first": {
                "enum": [
                  "form",
                  "thread"
                ],
                "description": "What the page shows first: form (the default), or thread, the lists shown as conversations before the form."
              },
              "subtitle": {
                "type": "string",
                "description": "The line under a record's name on cards and in pickers: a field, a reference or a field one reference away (instructor.name)."
              },
              "detail": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Smaller parts after the subtitle, e.g. [classType.level, capacity]."
              }
            }
          },
          "form": {
            "type": "object",
            "description": "The page's form: the fields' order, sections, columns and controls.",
            "additionalProperties": false,
            "properties": {
              "fieldOrder": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "The fields in the order the form shows them."
              },
              "sections": {
                "type": "array",
                "description": "Groups of fields with headings: - { name: contact, fields: [email, phone] }; the heading's text is in smithable.content.yml.",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "name",
                    "fields"
                  ],
                  "properties": {
                    "name": {
                      "type": "string",
                      "description": "The group's name; its heading is in smithable.content.yml."
                    },
                    "fields": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "The fields under the heading."
                    }
                  }
                }
              },
              "columns": {
                "enum": [
                  1,
                  2
                ],
                "description": "2 puts short fields two abreast; long texts and pictures stay full width."
              },
              "aside": {
                "enum": [
                  "summary",
                  "none"
                ],
                "description": "summary: a panel beside the form with the record's status, its amount and its key dates (under the form on a phone); none (the default)."
              },
              "control": {
                "type": "object",
                "description": "How a field is entered: input, slider, stepper, radio, select, combobox, textarea, switch; input is the default for its kind.",
                "additionalProperties": {
                  "enum": [
                    "input",
                    "slider",
                    "stepper",
                    "radio",
                    "select",
                    "combobox",
                    "textarea",
                    "switch"
                  ]
                }
              },
              "results": {
                "enum": [
                  "beside",
                  "below"
                ],
                "description": "A calculator page: the results beside the inputs (the default) or below them."
              }
            }
          },
          "calendar": {
            "type": "object",
            "description": "A calendar page's blocks: their colour, and the places left on each.",
            "additionalProperties": false,
            "properties": {
              "view": {
                "enum": [
                  "week",
                  "agenda",
                  "days"
                ],
                "description": "week (the default): the week's grid, its hours fitted to the records; agenda: the coming four weeks as one list by day; days: the coming seven days side by side, each a list."
              },
              "filters": {
                "type": "array",
                "items": {
                  "enum": [
                    "timeOfDay"
                  ]
                },
                "description": "The calendar's own filters: timeOfDay, morning before 12, afternoon 12 to 17, evening from 17, by the start hour."
              },
              "colorBy": {
                "type": "string",
                "description": "A choice field (its values' tones), a reference (each record its own colour), or a choice one reference away, e.g. classType.level."
              },
              "capacity": {
                "type": "object",
                "description": "The places left of the places there are, from two number fields.",
                "additionalProperties": false,
                "required": [
                  "left",
                  "of"
                ],
                "properties": {
                  "left": {
                    "type": "string",
                    "description": "The number field of places left, e.g. placesLeft."
                  },
                  "of": {
                    "type": "string",
                    "description": "The number field of places there are, e.g. capacity."
                  },
                  "look": {
                    "enum": [
                      "number",
                      "pips",
                      "bar"
                    ],
                    "description": "number (4 of 12 left, the default), pips (a dot a place, up to 20) or bar."
                  }
                }
              }
            }
          },
          "frame": {
            "enum": [
              "site",
              "app",
              "none"
            ],
            "description": "The frame the page shows in: site (the public frame with the top menu), app (the workspace with the side menu) or none (the page alone). Without it, the page kind's own."
          },
          "width": {
            "enum": [
              "contained",
              "wide",
              "full"
            ],
            "description": "A landing page's width: contained (72rem, the default), wide (80rem) or full (edge to edge, the page's gutter kept)."
          },
          "sections": {
            "type": "object",
            "description": "A landing page's sections' looks, by section name: a hero's layout, a feature list's columns.",
            "additionalProperties": {
              "oneOf": [
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "rhythm": {
                      "enum": [
                        "standard",
                        "compact",
                        "airy"
                      ],
                      "description": "One of standard, compact, airy; the first is the default."
                    },
                    "fit": {
                      "enum": [
                        "cover",
                        "contain"
                      ],
                      "description": "One of cover, contain; the first is the default."
                    },
                    "aspect": {
                      "enum": [
                        "landscape",
                        "portrait",
                        "square"
                      ],
                      "description": "One of landscape, portrait, square; the first is the default."
                    },
                    "focal": {
                      "enum": [
                        "center",
                        "top",
                        "bottom",
                        "left",
                        "right"
                      ],
                      "description": "One of center, top, bottom, left, right; the first is the default."
                    },
                    "measure": {
                      "enum": [
                        "reading",
                        "wide"
                      ],
                      "description": "One of reading, wide; the first is the default."
                    },
                    "layout": {
                      "enum": [
                        "split",
                        "stacked",
                        "collage"
                      ],
                      "description": "One of split, stacked, collage; the first is the default."
                    },
                    "image": {
                      "enum": [
                        "left",
                        "right"
                      ],
                      "description": "One of left, right; the first is the default."
                    },
                    "band": {
                      "enum": [
                        "none",
                        "muted",
                        "inverse",
                        "primary"
                      ],
                      "description": "The section across the width on a surface of the theme: none, muted, inverse, primary; none (the default) is an open section, or the muted band a banded theme gives every second section."
                    }
                  }
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "layout": {
                      "enum": [
                        "split",
                        "centered",
                        "plain",
                        "cover",
                        "photo",
                        "inset",
                        "stage",
                        "tiles"
                      ],
                      "description": "One of split, centered, plain, cover, photo, inset, stage, tiles; the first is the default."
                    },
                    "image": {
                      "enum": [
                        "right",
                        "left"
                      ],
                      "description": "One of right, left; the first is the default."
                    },
                    "fit": {
                      "enum": [
                        "cover",
                        "contain"
                      ],
                      "description": "One of cover, contain; the first is the default."
                    },
                    "aspect": {
                      "enum": [
                        "landscape",
                        "portrait",
                        "square"
                      ],
                      "description": "One of landscape, portrait, square; the first is the default."
                    },
                    "focal": {
                      "enum": [
                        "center",
                        "top",
                        "bottom",
                        "left",
                        "right"
                      ],
                      "description": "One of center, top, bottom, left, right; the first is the default."
                    },
                    "overlay": {
                      "enum": [
                        "brand",
                        "dark"
                      ],
                      "description": "A cover or photo hero's wash: brand or dark; unsaid, the layout's own."
                    },
                    "mark": {
                      "enum": [
                        "title",
                        "logo"
                      ],
                      "description": "One of title, logo; the first is the default."
                    },
                    "eyebrow": {
                      "enum": [
                        "address",
                        "hours"
                      ],
                      "description": "A line over the title from the page's contact section: address (its city) or hours (the first line of its hours)."
                    },
                    "facts": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Models whose records are counted in a row of figures under the hero's text (on a public page, ones visitors may read)."
                    },
                    "stage": {
                      "type": "string",
                      "description": "A stage hero's list page, drawn with its first six records; unsaid, the first list page in the navigation."
                    },
                    "height": {
                      "enum": [
                        "auto",
                        "full"
                      ],
                      "description": "auto: only as tall as its content; full: the window's height under the header; unsaid, the layout's own."
                    }
                  }
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "rhythm": {
                      "enum": [
                        "standard",
                        "compact",
                        "airy"
                      ],
                      "description": "One of standard, compact, airy; the first is the default."
                    },
                    "columns": {
                      "enum": [
                        3,
                        2,
                        4,
                        5,
                        6
                      ],
                      "description": "One of 3, 2, 4, 5, 6; the first is the default."
                    },
                    "band": {
                      "enum": [
                        "none",
                        "muted",
                        "inverse",
                        "primary"
                      ],
                      "description": "The section across the width on a surface of the theme: none, muted, inverse, primary; none (the default) is an open section, or the muted band a banded theme gives every second section."
                    }
                  }
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "rhythm": {
                      "enum": [
                        "standard",
                        "compact",
                        "airy"
                      ],
                      "description": "One of standard, compact, airy; the first is the default."
                    },
                    "layout": {
                      "enum": [
                        "cards",
                        "list",
                        "grid",
                        "ledger",
                        "week"
                      ],
                      "description": "One of cards, list, grid, ledger, week; the first is the default."
                    },
                    "columns": {
                      "enum": [
                        3,
                        2,
                        4,
                        5,
                        6
                      ],
                      "description": "One of 3, 2, 4, 5, 6, side by side on a wide screen: 3 for cards and 4 for a grid when not said; a list has none."
                    },
                    "band": {
                      "enum": [
                        "none",
                        "muted",
                        "inverse",
                        "primary"
                      ],
                      "description": "The section across the width on a surface of the theme: none, muted, inverse, primary; none (the default) is an open section, or the muted band a banded theme gives every second section."
                    },
                    "by": {
                      "type": "string",
                      "description": "The name of the item to set apart."
                    }
                  }
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "rhythm": {
                      "enum": [
                        "standard",
                        "compact",
                        "airy"
                      ],
                      "description": "One of standard, compact, airy; the first is the default."
                    },
                    "layout": {
                      "enum": [
                        "cards",
                        "carousel",
                        "one"
                      ],
                      "description": "One of cards, carousel, one; the first is the default."
                    },
                    "band": {
                      "enum": [
                        "none",
                        "muted",
                        "inverse",
                        "primary"
                      ],
                      "description": "The section across the width on a surface of the theme: none, muted, inverse, primary; none (the default) is an open section, or the muted band a banded theme gives every second section."
                    }
                  }
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "rhythm": {
                      "enum": [
                        "standard",
                        "compact",
                        "airy"
                      ],
                      "description": "One of standard, compact, airy; the first is the default."
                    },
                    "highlight": {
                      "type": "string",
                      "description": "The name of the item to set apart."
                    },
                    "band": {
                      "enum": [
                        "none",
                        "muted",
                        "inverse",
                        "primary"
                      ],
                      "description": "The section across the width on a surface of the theme: none, muted, inverse, primary; none (the default) is an open section, or the muted band a banded theme gives every second section."
                    }
                  }
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "rhythm": {
                      "enum": [
                        "standard",
                        "compact",
                        "airy"
                      ],
                      "description": "One of standard, compact, airy; the first is the default."
                    },
                    "layout": {
                      "enum": [
                        "accordion",
                        "list"
                      ],
                      "description": "One of accordion, list; the first is the default."
                    },
                    "columns": {
                      "enum": [
                        1,
                        2
                      ],
                      "description": "One of 1, 2, for the list layout; the first is the default."
                    },
                    "band": {
                      "enum": [
                        "none",
                        "muted",
                        "inverse",
                        "primary"
                      ],
                      "description": "The section across the width on a surface of the theme: none, muted, inverse, primary; none (the default) is an open section, or the muted band a banded theme gives every second section."
                    }
                  }
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "rhythm": {
                      "enum": [
                        "standard",
                        "compact",
                        "airy"
                      ],
                      "description": "One of standard, compact, airy; the first is the default."
                    },
                    "fit": {
                      "enum": [
                        "cover",
                        "contain"
                      ],
                      "description": "One of cover, contain; the first is the default."
                    },
                    "aspect": {
                      "enum": [
                        "landscape",
                        "portrait",
                        "square"
                      ],
                      "description": "One of landscape, portrait, square; the first is the default."
                    },
                    "focal": {
                      "enum": [
                        "center",
                        "top",
                        "bottom",
                        "left",
                        "right"
                      ],
                      "description": "One of center, top, bottom, left, right; the first is the default."
                    },
                    "columns": {
                      "enum": [
                        3,
                        2,
                        4,
                        5,
                        6
                      ],
                      "description": "One of 3, 2, 4, 5, 6; the first is the default."
                    },
                    "band": {
                      "enum": [
                        "none",
                        "muted",
                        "inverse",
                        "primary"
                      ],
                      "description": "The section across the width on a surface of the theme: none, muted, inverse, primary; none (the default) is an open section, or the muted band a banded theme gives every second section."
                    }
                  }
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "rhythm": {
                      "enum": [
                        "standard",
                        "compact",
                        "airy"
                      ],
                      "description": "One of standard, compact, airy; the first is the default."
                    },
                    "band": {
                      "enum": [
                        "none",
                        "muted",
                        "inverse",
                        "primary"
                      ],
                      "description": "The section across the width on a surface of the theme: none, muted, inverse, primary; none (the default) is an open section, or the muted band a banded theme gives every second section."
                    }
                  }
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "rhythm": {
                      "enum": [
                        "standard",
                        "compact",
                        "airy"
                      ],
                      "description": "One of standard, compact, airy; the first is the default."
                    },
                    "band": {
                      "enum": [
                        "none",
                        "muted",
                        "inverse",
                        "primary"
                      ],
                      "description": "The section across the width on a surface of the theme: none, muted, inverse, primary; none (the default) is an open section, or the muted band a banded theme gives every second section."
                    }
                  }
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "layout": {
                      "enum": [
                        "standard",
                        "contactBand"
                      ],
                      "description": "One of standard, contactBand; the first is the default."
                    }
                  }
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "rhythm": {
                      "enum": [
                        "standard",
                        "compact",
                        "airy"
                      ],
                      "description": "One of standard, compact, airy; the first is the default."
                    },
                    "measure": {
                      "enum": [
                        "reading",
                        "wide"
                      ],
                      "description": "One of reading, wide; the first is the default."
                    },
                    "band": {
                      "enum": [
                        "none",
                        "muted",
                        "inverse",
                        "primary"
                      ],
                      "description": "The section across the width on a surface of the theme: none, muted, inverse, primary; none (the default) is an open section, or the muted band a banded theme gives every second section."
                    }
                  }
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "rhythm": {
                      "enum": [
                        "standard",
                        "compact",
                        "airy"
                      ],
                      "description": "One of standard, compact, airy; the first is the default."
                    },
                    "band": {
                      "enum": [
                        "none",
                        "muted",
                        "inverse",
                        "primary"
                      ],
                      "description": "The section across the width on a surface of the theme: none, muted, inverse, primary; none (the default) is an open section, or the muted band a banded theme gives every second section."
                    }
                  }
                }
              ]
            }
          },
          "header": {
            "type": "object",
            "description": "A landing page's header's look: its position, sticky (kept at the top as the page scrolls, the default) or scrolling (away with the page).",
            "additionalProperties": false,
            "properties": {
              "position": {
                "enum": [
                  "sticky",
                  "scrolling"
                ],
                "description": "One of sticky, scrolling; the first is the default."
              },
              "over": {
                "enum": [
                  "none",
                  "hero"
                ],
                "description": "One of none, hero; the first is the default."
              }
            }
          },
          "theme": {
            "type": "object",
            "description": "A landing page's own theme, over the app's: { preset: playful }, with brand, density and motion as the app's theme takes them.",
            "additionalProperties": false,
            "properties": {
              "preset": {
                "type": "string",
                "description": "A built-in theme or one of the project's."
              },
              "brand": {
                "type": "object",
                "description": "The colours and font, as the app's brand."
              },
              "density": {
                "enum": [
                  "comfortable",
                  "standard",
                  "compact"
                ],
                "description": "The page's density."
              },
              "motion": {
                "enum": [
                  "none",
                  "subtle",
                  "lively"
                ],
                "description": "The page's motion."
              }
            }
          }
        }
      }
    },
    "assistant": {
      "type": "object",
      "description": "Ask, the assistant in the app: its manner, as a theme is a manner (its texts are smithable.content.yml's).",
      "additionalProperties": false,
      "properties": {
        "voice": {
          "enum": [
            "plain",
            "friendly",
            "formal"
          ],
          "description": "plain (the default: short, no pleasantries), friendly or formal."
        }
      }
    },
    "navigation": {
      "enum": [
        "sidebar",
        "topbar",
        "topbar-centered"
      ],
      "description": "Where the menu sits on a wide screen: sidebar (the default), topbar (a bar across the top, the name at the start) or topbar-centered (the name centred between the links)."
    },
    "menuActive": {
      "enum": [
        "filled",
        "subtle",
        "underline"
      ],
      "description": "How the menu marks the open page: filled (the primary behind it), subtle (a tint behind it) or underline; unsaid, filled in the sidebar and underlined in a bar."
    },
    "chrome": {
      "enum": [
        "light",
        "dark"
      ],
      "description": "The menu's surface: light (the page's own colours) or dark (the text colour as its surface); unsaid, the theme's own menu colours."
    },
    "pictures": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "style"
      ],
      "properties": {
        "style": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*$",
          "description": "The image style of the app's library pictures, a style of the image library (e.g. lifelike, pastel). Set it with setPictureStyle, which places the pictures."
        }
      },
      "description": "The app's library pictures: which image style they are in."
    },
    "aiBadge": {
      "type": "boolean",
      "description": "Whether pictures an AI made carry the badge (the EU’s common icon for AI-generated content). Unsaid, each picture by its kind: on for an ai-realistic one (or one without a kind), off for an ai-drawn one; true puts it on every picture an AI made, false on none. A photograph never has it. Whether your audience needs it is your responsibility."
    },
    "tones": {
      "type": "object",
      "description": "The meaning of a choice field's values, shown as the badge's colour: { \"Order.status\": { paid: success, overdue: danger } }.",
      "additionalProperties": {
        "type": "object",
        "additionalProperties": {
          "enum": [
            "neutral",
            "success",
            "warning",
            "danger"
          ],
          "description": "neutral, success, warning, danger; values not listed are neutral."
        }
      }
    }
  }
}
