{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://fedm8.com/design/003/theme.schema.json",
 "title": "FedM8 user theme (design 003)",
 "type": "object",
 "additionalProperties": false,
 "required": [
  "version",
  "preset"
 ],
 "properties": {
  "version": {
   "const": 1
  },
  "preset": {
   "enum": [
    "card-hub",
    "high-contrast",
    "dark",
    "compact"
   ]
  },
  "accent": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "description": "Must be one of USER_LIMITS.accent.swatches"
  },
  "typeScale": {
   "type": "number",
   "minimum": 0.9,
   "maximum": 1.3
  },
  "density": {
   "enum": [
    "compact",
    "comfortable",
    "roomy"
   ]
  },
  "corners": {
   "enum": [
    "square",
    "rounded",
    "extra-round"
   ]
  },
  "reduceMotion": {
   "type": [
    "boolean",
    "null"
   ]
  },
  "updatedAt": {
   "type": "string",
   "format": "date-time"
  }
 }
}