Tortusfor Designers
Snippet Library/Site Chrome

Cookie banner

Re-skin the consent banner — the --banner-* tokens, the class hooks, and the scoped Custom CSS escape hatch.

The cookie/consent banner is site chrome Tortus renders for you — the legal copy is fixed by compliance, but the look is yours. Three layers of control, from lightest to fullest:

  1. Panel fields — variant (glass / minimal / bar), position, button mode, and copy, from the site's Consent settings.
  2. Design tokens — the --banner-* group re-skins the chrome on-brand. Full table on the Design tokens page.
  3. Custom CSS — the class hooks below, for anything the tokens don't reach.

The class hooks

The banner exposes three stable hooks. Your scoped Custom CSS is auto-confined under #tortus-cookie-banner-css, so a rule can only touch the banner — nothing leaks page-wide.

HookElement
.tortus-cookie-bannerthe banner card
.tortus-cookie-acceptthe "Accept all" button
.tortus-cookie-rejectthe "Reject" button
The default banner

The `ck-*` classes are just this demo's filler — only `.tortus-cookie-banner`, `.tortus-cookie-accept`, and `.tortus-cookie-reject` are real platform hooks.

Restyling with the hooks

In the Custom CSS field you target the hooks directly — this is exactly what you paste (it gets scoped to #tortus-cookie-banner-css for you):

Squared card, uppercase accept, underlined reject

Custom CSS is scoped to `#tortus-cookie-banner-css` automatically and can reference the site's `--color-*` design tokens, so it stays on-brand.

Reach for a token first (see Design tokens → Cookie banner); drop to the class hooks only when a token knob doesn't reach. This is the same scoped-Custom-CSS escape hatch that page-builder blocks expose via Convert to custom.

Full param table: Designer Handbook.