themes-cyberpunk/schemas/hero_glitch.schema.json
Alex Dunmow 313ebaf296 initial: theme plugin cyberpunk
Bootstrapped during the 2026-06-06 BlockNinja consolidation. Was previously
an unversioned directory inside ~/src/blockninja-themes/cyberpunk.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 14:11:25 +08:00

55 lines
1.7 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Glitch Hero",
"description": "Cyberpunk hero section with RGB-split H1, eyebrow, sub, primary + secondary CTAs and an optional scanline overlay.",
"type": "object",
"properties": {
"eyebrow": {
"type": "string",
"title": "Eyebrow",
"description": "Short mono caps label above the headline (e.g. NEW)",
"x-editor": "text"
},
"headline": {
"type": "string",
"title": "Headline",
"description": "Main H1; rendered with RGB-split glitch text-shadow",
"x-editor": "text"
},
"sub": {
"type": "string",
"title": "Sub",
"description": "Supporting paragraph beneath the headline",
"x-editor": "textarea"
},
"cta": {
"type": "object",
"title": "Primary CTA",
"description": "Primary call to action {label, href}",
"x-editor": "link",
"properties": {
"label": { "type": "string", "title": "Label", "x-editor": "text" },
"href": { "type": "string", "title": "Href", "x-editor": "text" }
}
},
"secondaryCta": {
"type": "object",
"title": "Secondary CTA",
"description": "Optional secondary call to action {label, href}",
"x-editor": "link",
"properties": {
"label": { "type": "string", "title": "Label", "x-editor": "text" },
"href": { "type": "string", "title": "Href", "x-editor": "text" }
}
},
"scanlines": {
"type": "string",
"title": "Scanlines",
"description": "Toggle the 4% scanline overlay inside the hero section",
"x-editor": "select",
"enum": ["on", "off"],
"default": "on"
}
}
}