Examples Cookbook
Pick a recipe and copy-paste its CSS into the Custom CSS field in the Kookiok dashboard. Every recipe is self-contained, tested against the compliance sanitizer, and leaves all required GDPR controls intact.
Recipes
Section titled “Recipes” Brand Colors Override --accent, --btn-fill, and --surface tokens to match your brand palette — no class selectors needed. Beginner.
Rounded Corners Change --radius from sharp to pill-shaped and see how it cascades to buttons, inputs, and the banner card. Beginner.
Custom Font Replace the default typeface using --font-family and a self-hosted @font-face block. Includes GDPR-safe hosting instructions. Intermediate.
Compact Mobile Tighten spacing and stack buttons at narrow viewports using targeted @media overrides — with a compliance warning about button visibility. Intermediate.
Dark Mode Override Apply a custom dark palette via prefers-color-scheme without touching the light theme. Intermediate.
Animated Entrance Add a slide-in or fade-up entrance animation using --animation and @keyframes, with a prefers-reduced-motion opt-out. Advanced.
Full Redesign A 60+ line CSS file that completely reskins the banner while passing all 18 compliance rules. Includes a line-by-line compliance audit. Advanced.
Before you start
Section titled “Before you start”All recipes assume you have already read the Branding Policy and understand which elements you must not modify. The .ag-branding, .ag-cookie-mark, and .ag-bite classes are off-limits in every recipe here.
If a recipe targets button IDs (#ag-accept-all, #ag-reject-all), a warning is included explaining the asymmetric-styling risk.
Apply a recipe
Section titled “Apply a recipe”- Open Dashboard → Sites → your site → Banner → Custom CSS.
- Paste the recipe CSS block.
- Save and click Preview to see the result in the live iframe.
- Check the compliance score in the dashboard — it must remain at 100.