Quick Start — Custom CSS in 5 Minutes
Open the Kookiok editor, paste CSS, save — your banner updates live on all visitor browsers within seconds.
Before you start
Section titled “Before you start”You need:
- A Kookiok account with at least one domain group configured.
- The banner template already selected (Classic is the default).
Tutorial
Section titled “Tutorial”-
Open the Banner Editor
In the Kookiok dashboard, navigate to your domain group → Banner → Appearance tab. The live preview iframe shows your current banner.
-
Find the Custom CSS panel
Scroll down to the Custom CSS section. You’ll see a code editor with a placeholder comment.
-
Paste your first override
Try a simple token override to change the button color to your brand:
Custom CSS editor /* Override accent color to your brand */:host {--btn-fill: #e65c00;--btn-text: #ffffff;--btn-hover-fill: #c44f00;--accent: #e65c00;}The preview iframe updates in real time as you type.
-
Run the compliance check
Click the Check compliance button above the editor. You should see a green “No violations” result. If there are warnings, the checker describes exactly which rule applies and links to the relevant documentation.
-
Save
Click Save banner. The CSS is sent to the API, validated server-side, and stored. On the next visitor page load, the new styles appear.
Live preview
Section titled “Live preview”classic · dialog · center Common first overrides
Section titled “Common first overrides”:host { --btn-fill: #1a73e8; /* primary brand */ --btn-text: #ffffff; --btn-hover-fill: #1558b0; --accent: #1a73e8;}:host { --radius: 4px; /* 0 for fully sharp */}:host { --surface-overlay: rgba(0, 0, 0, 0.7);}.ag-banner-inner { padding: 14px;}What NOT to do
Section titled “What NOT to do”Do not attempt to target .ag-branding — those rules are rejected by the server and have no runtime effect.