{ "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "Store theme", "type": "object", "additionalProperties": false, "required": [ "version", "preset", "brand", "colors", "typography", "layout", "sections" ], "properties": { "version": { "const": 1 }, "preset": { "enum": [ "minimal", "editorial", "bold" ] }, "brand": { "type": "object", "additionalProperties": false, "required": [ "name", "tagline" ], "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 80 }, "tagline": { "type": "string", "maxLength": 160 }, "logoMediaId": { "type": [ "string", "null" ] } } }, "colors": { "type": "object", "additionalProperties": false, "required": [ "background", "surface", "text", "accent", "accentText" ], "properties": { "background": { "type": "string", "pattern": "^#[0-9A-Fa-f]{6}$" }, "surface": { "type": "string", "pattern": "^#[0-9A-Fa-f]{6}$" }, "text": { "type": "string", "pattern": "^#[0-9A-Fa-f]{6}$" }, "accent": { "type": "string", "pattern": "^#[0-9A-Fa-f]{6}$" }, "accentText": { "type": "string", "pattern": "^#[0-9A-Fa-f]{6}$" } } }, "typography": { "type": "object", "additionalProperties": false, "required": [ "heading", "body" ], "properties": { "heading": { "enum": [ "sans", "serif", "display" ] }, "body": { "enum": [ "sans", "serif" ] } } }, "layout": { "type": "object", "additionalProperties": false, "required": [ "density", "radius", "hero" ], "properties": { "density": { "enum": [ "airy", "balanced", "compact" ] }, "radius": { "enum": [ "square", "soft", "round" ] }, "hero": { "enum": [ "split", "full-bleed", "compact" ] } } }, "sections": { "type": "array", "minItems": 1, "maxItems": 8, "uniqueItems": true, "items": { "enum": [ "hero", "collections", "featured", "story", "trust", "support" ] } } } }