{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://brandpeel.app/api/v1/brand-guide/schema","title":"BrandPeelBrandPackage","description":"JSON Schema definition for Brand Peel export packages, design tokens, and compiled brand books.","type":"object","required":["version","brand","strategy","tokens"],"properties":{"version":{"type":"string","description":"Brand Peel schema specification version (e.g., 1.0.0)."},"brand":{"type":"object","required":["name","tagline","description"],"properties":{"name":{"type":"string","description":"Name of the brand or product."},"tagline":{"type":"string","description":"Short one-liner or positioning tagline."},"description":{"type":"string","description":"Detailed product description."},"targetAudience":{"type":"string","description":"Primary user persona and target audience."}}},"strategy":{"type":"object","required":["mission","vision","values","toneOfVoice"],"properties":{"mission":{"type":"string","description":"Brand core mission statement."},"vision":{"type":"string","description":"Long-term brand vision."},"values":{"type":"array","items":{"type":"object","required":["title","description"],"properties":{"title":{"type":"string"},"description":{"type":"string"}}}},"toneOfVoice":{"type":"array","items":{"type":"string"},"description":"Core tone and voice attributes (e.g. Crisp, Technical, Warm)."}}},"tokens":{"type":"object","required":["colors","typography","radii","shadows"],"properties":{"colors":{"type":"object","required":["primary","neutral","background","foreground"],"properties":{"primary":{"type":"object","properties":{"oklch":{"type":"string","example":"oklch(0.62 0.22 264)"},"hsl":{"type":"string","example":"hsl(220 85% 55%)"},"hex":{"type":"string","example":"#2563eb"}}},"neutral":{"type":"object","properties":{"oklch":{"type":"string"},"hsl":{"type":"string"},"hex":{"type":"string"}}},"background":{"type":"object"},"foreground":{"type":"object"}}},"typography":{"type":"object","required":["sans","mono"],"properties":{"sans":{"type":"string","example":"Inter Variable, sans-serif"},"heading":{"type":"string","example":"Playfair Display Variable, serif"},"mono":{"type":"string","example":"JetBrains Mono, monospace"}}},"radii":{"type":"object","properties":{"sm":{"type":"string","example":"0.25rem"},"md":{"type":"string","example":"0.5rem"},"lg":{"type":"string","example":"0.75rem"},"xl":{"type":"string","example":"1rem"}}},"shadows":{"type":"object","properties":{"sm":{"type":"string"},"md":{"type":"string"},"lg":{"type":"string"}}}}},"exports":{"type":"object","properties":{"tailwindConfig":{"type":"string","description":"CSS or JS configuration compatible with Tailwind CSS v4."},"markdownBrandBook":{"type":"string","description":"Full Markdown brand book document."},"cssVariables":{"type":"string","description":"Compiled CSS custom properties (@theme block)."}}}}}