Skip to content

Products

Compliance Officer Service Expert-led compliance, end to end Compliance Portal Share security documents securely Open-source platform Deploy Probo on your own infrastructure

Resources

Probo stories How teams get compliant with Probo Blog Ideas and guidance from the Probo team Guides & tools Practical compliance guides and free tools Love from Customers What customers say about working with Probo Changelog Latest product updates Download Get the Probo Agent

Company

About The people and vision powering Probo Careers Join the team building Probo Brand assets Official logos and visual resources Security Review our security and compliance posture
Overview Understand Probo and its core concepts Product Explore Probo's GRC capabilities Developers Explore GraphQL, CLI, MCP, n8n, and webhooks Deployment Probo Cloud, self-hosting, and configuration

Explore

GitHub Explore our open-source compliance tools

Theming

Customize the Probo cookie banner's colors, fonts, and shadows with CSS custom properties, dark mode media queries, or the console's theme editor.

View as Markdown

The themed banner (both the script tag and the ES module) renders inside a Shadow DOM and exposes CSS custom properties for styling. You can override these properties to match your brand without writing any JavaScript.

Add a <style> block or CSS file targeting the probo-cookie-banner element:

probo-cookie-banner {
--probo-font-family: "Inter", sans-serif;
--probo-font-size: 14px;
--probo-bg: #ffffff;
--probo-text: #1a1a1a;
--probo-text-secondary: #555555;
--probo-border: #e0e0e0;
--probo-radius: 12px;
--probo-btn-radius: 8px;
--probo-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
--probo-accent: #1a1a1a;
--probo-accent-text: #ffffff;
--probo-z-index: 2147483646;
}
Property Default Description
--probo-font-family System font stack Font family for all banner text
--probo-font-size 14px Base font size
--probo-bg #ffffff Banner background color
--probo-text #1a1a1a Primary text color
--probo-text-secondary #555555 Secondary text color (descriptions, labels)
--probo-border #e0e0e0 Border color for cards and separators
--probo-radius 12px Border radius for the banner container
--probo-btn-radius 8px Border radius for buttons
--probo-shadow 0 4px 24px rgba(0,0,0,0.12) Box shadow for the banner
--probo-accent #1a1a1a Accent color for primary buttons and toggles
--probo-accent-text #ffffff Text color on accent-colored elements
--probo-z-index 2147483646 Z-index for the banner layer

Use a media query to switch to dark mode colors automatically:

@media (prefers-color-scheme: dark) {
probo-cookie-banner {
--probo-bg: #1a1a1a;
--probo-text: #f0f0f0;
--probo-text-secondary: #a0a0a0;
--probo-border: #333333;
--probo-accent: #f0f0f0;
--probo-accent-text: #1a1a1a;
}
}

Or use a CSS class if you manage dark mode manually:

.dark probo-cookie-banner {
--probo-bg: #1a1a1a;
--probo-text: #f0f0f0;
--probo-text-secondary: #a0a0a0;
--probo-border: #333333;
--probo-accent: #f0f0f0;
--probo-accent-text: #1a1a1a;
}

The Probo console includes a visual theme editor on the JS / CSS snippets tab of your banner configuration. It lets you:

  • Adjust each CSS custom property with color pickers and input fields
  • Preview the banner appearance in real time
  • Copy the generated CSS to paste into your website
  • Reset to defaults at any time

This is the easiest way to experiment with theming before committing to a design.