banner-schema.json
Single source of truth for all CSS classes, 29 tokens, 7 templates, 13 compliance rules, sanitizer patterns, branding policy, and DOM tree. Generated from PHP source on every build.
URL: /docs/api/banner-schema.json
All documentation in this portal has a machine-readable counterpart. AI coding assistants and automated tooling can consume the schema JSON and llms.txt index to generate accurate banner CSS without hallucinating class names or compliance rules.
banner-schema.json
Single source of truth for all CSS classes, 29 tokens, 7 templates, 13 compliance rules, sanitizer patterns, branding policy, and DOM tree. Generated from PHP source on every build.
URL: /docs/api/banner-schema.json
llms.txt
Standard index file listing all documentation pages with one-line summaries. Compatible with the emerging llms.txt standard for AI context windows.
URL: /docs/llms.txt
llms-full.txt
Concatenation of all documentation pages in clean Markdown, suitable for bulk ingestion or RAG embedding.
URL: /docs/llms-full.txt
Markdown mirrors
Every MDX page has a .md mirror at the same path with .md extension. These are generated at build time for tools that prefer Markdown over HTML.
Example: /docs/banner-css/css-classes.md
{ "version": "2026.05.18", "generated": "...", "shadowDom": { ... }, // isolation info, root selector "classes": [ ... ], // 27 class definitions "tokens": [ ... ], // 29 token definitions "templates": [ ... ], // 7 template definitions "complianceRules": [ ... ], // 13 GDPR/WCAG rules "sanitizer": { ... }, // blocked patterns + validation rules "branding": { ... }, // protected selectors + enforcement "domTree": { ... } // ASCII DOM tree string}Each class, token, and compliance rule contains an aiHints object with purpose, primary customization targets, and what to avoid. AI assistants should read aiHints before generating CSS for an element.
Every class and token has an aiHints object specifically for AI context:
"aiHints": { "primaryCustomization": "background, color, border-radius, padding", "avoidChanging": "differentiation between accept/reject (compliance violation)"}Compliance rules have an aiPrompt field — a direct instruction for AI code generators:
"aiPrompt": "NEVER apply display:none, visibility:hidden, opacity:0, or pointer-events:none to #ag-reject-all (.ag-btn.btn-secondary) or its container .ag-btns."AI systems generating banner CSS should always fetch the schema and process aiPrompt fields from all compliance rules before generating output.
Every documentation page includes JSON-LD structured data (schema.org/TechArticle) embedded in the <head>. This allows AI crawlers and knowledge graph tools to understand the page’s role and relationships without parsing the full HTML.
The robots.txt file of this host lets every crawler, AI crawlers included, read the documentation and the schema, and nothing else:
User-agent: *Allow: /docs/Disallow: /
Sitemap: https://api.kookiok.com/docs/sitemap-index.xmlconst schema = await fetch('https://api.kookiok.com/docs/api/banner-schema.json') .then(r => r.json());
// Get all customizable classesconst customizable = schema.classes.filter(c => c.customizable);
// Get all error-level compliance rulesconst errors = schema.complianceRules.filter(r => r.severity === 'error');
// Build a prompt guard from aiPrompt fieldsconst guards = schema.complianceRules .filter(r => r.aiPrompt) .map(r => r.aiPrompt) .join('\n');