Kookiok Documentation
Customize your consent banner without breaking GDPR. CSS reference, design tokens, examples, and AI-ready schema.
Explore the docs
Section titled “Explore the docs” CSS Classes Reference All 27 banner classes — role, DOM path, default properties, tokens used, compliance hints.
Design Tokens 29 CSS custom properties grouped by surfaces, interactive, accent, categories, trigger, effects, typography.
7 Templates Visual variants: Classic, Aurora, Bauhaus, Editorial, Glass, Minimal, Neon.
Examples Cookbook Copy-paste recipes for brand colors, rounded corners, custom fonts, dark mode, animations, full redesign.
Script Blocking & data-ag-consent What is blocked before consent, auto vs manual mode, and the required annotation step for self-hosted trackers.
Branding Policy Required on the free plan. "Powered by KookiOk" cannot be hidden via custom CSS: 4 enforcement layers explained.
GDPR Compliance Risks Read first. Custom CSS can break GDPR. Real fines, 5 illegal patterns, and how to avoid them.
AI Integration Machine-readable schema, llms.txt, llms-full.txt, Markdown mirrors, JSON-LD — built for LLM consumption.
Banner Anatomy DOM tree, section ordering, two-layer split between visual surface and layout container.
What you’ll find here
Section titled “What you’ll find here”The Kookiok banner is a self-contained vanilla-JS widget rendered inside a Shadow DOM, parameterized by 29 design tokens and 7 template recipes. You can fully restyle it via the customCss field on BannerConfig without modifying any JavaScript.
This documentation portal covers:
- 📐 Reference: every CSS class, every design token, every template — extracted directly from the production source code via an auto-generated schema.
- 🎨 Customization: quick-start tutorial, decision guide for token-vs-class overrides, 8 cookbook recipes from brand colors to full redesign.
- ⚖️ Compliance: GDPR risk guidance with regulatory citations (EDPB, CNIL, DSK, Planet49), the branding attribution policy, and what the CSS sanitizer auto-strips.
- 🤖 AI-ready: machine-readable
banner-schema.json,llms.txtmanifest, full-text dump, and structured data on every page — built so future AI banner generators can consume the docs as input.
Coming soon
Section titled “Coming soon”The following sections are planned and currently stubbed:
- JavaScript API —
window.Kookiok, runtime events, programmatic banner control. - REST API — full reference for the BannerConfig, Site, Consent endpoints.
- Installation — script tag setup, data attributes, CDN deployment.