Skip to content

Kookiok Documentation

Customize your consent banner without breaking GDPR. CSS reference, design tokens, examples, and AI-ready schema.

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.txt manifest, full-text dump, and structured data on every page — built so future AI banner generators can consume the docs as input.

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.