CDPGuidesSupport

Styling & Customization

Complete guide to customizing your Ours Privacy CMP consent banner, including themes, colors, typography, layouts, and text content.

Ours Privacy CMP offers extensive customization options to match your website's branding and user experience. You can control everything from colors and fonts to layout and button styles, ensuring your consent banner feels like a natural part of your site.


Visual Customization Options

You can configure styles directly in the application via the Design tab in your CMP configuration. The Design tab covers core visual customization needs, including colors, button styles, and border radius. You can adjust these settings and use the Preview button to see how your changes will look before they go live. Important: Changes must be published to take effect. They are not applied immediately.

All of these customization options are available through point-and-click controls in the Design tab, no coding required:

  • Theme Selection: Choose from multiple pre-built themes including light, dark, and minimal designs
  • Color Customization: Set primary colors, background colors, text colors, and accent colors using color pickers
  • Typography: Control font families, sizes, and weights for all text elements
  • Layout Options: Choose between banner, modal, or floating button layouts
  • Button Styling: Customize button shapes, sizes, colors, and hover effects with simple controls
  • Border & Shadow: Add borders, rounded corners, and shadow effects
  • Responsive Design: All themes automatically adapt to mobile and desktop screens

How different two banners can actually be

Every banner below is the same product on the same page. Each one is a different configuration: a different layout and screen position, a different number of action buttons, different button wording, and a different amount of copy. Nothing here required custom code. Each is a set of choices in the Design tab and the text fields described above.

Copy length matters more than most teams expect. The same layout looks unrecognizable with one line of text versus five, so treat your description as a design decision and not only a legal one.

A full-width white consent bar across the bottom of a blue-accented clinic page. A heading reads Your privacy choices above three sentences of description, with pill-shaped Accept all cookies and Only what’s necessary buttons on the left and Choose what we use on the right, above a footer strip of Privacy Policy and Terms of Service links.

Bar, three actions. A bottom bar with all three actions visible. The widest layout, and the one that gives a longer explanation room to breathe without covering the page.


Advanced Customization with CSS Variables

The Design tab covers most use cases. If you're not technical, you can typically configure everything you need without editing CSS.

For technical users who require advanced customization beyond the options available in the Design tab, CSS variables and CSS classes are available. You can find a complete reference of available CSS variables in the CSS Variables Reference tab within the Design section of your CMP configuration. These are intended for engineering and design teams who need deeper control over the consent modal's appearance.

The CSS Variables Reference tab of the Theme Styling card, listing every variable you can override grouped into Colors, Layout and Spacing, and Other Properties. Each entry names the part of the modal it controls, such as --cc-btn-primary-bg for the primary button background.

How far the variables go

This gallery is the mirror image of the one earlier on this page. There, the configuration changed with every slide; here it is held completely still. Each banner below is the same consent configuration on the same page, and only the CSS variable values differ. Every value is listed in the reference above. Nothing about the banner's markup, copy, or button order changed between them.

Because the consent banner renders into your page rather than into an iframe, your own stylesheet can set these variables. Declare them on :root in a stylesheet that loads after the consent snippet. The CMP sets its own defaults on :root too, so the last declaration wins.

A white consent bar at the bottom of a light clinic page, with a pill-shaped blue Accept all button, a pale blue Reject non-essential button, and a Manage preferences link.

Soft clinical. Fully rounded buttons and a pale secondary fill, from --cc-btn-border-radius, --cc-btn-primary-bg, and --cc-btn-secondary-bg.


Text & Content Customization

Beyond visual styling, you have complete control over all text content:

  • Banner Headlines: Customize the main title and description text
  • Button Labels: Set custom text for "Accept All," "Reject All," "Preferences," and other buttons
  • Category Descriptions: Write clear explanations for each cookie category
  • Legal Text: Customize privacy policy links and legal disclaimers
  • Regional Translations: Provide different text for different geographic regions
  • Accessibility: Ensure all text meets accessibility standards

Try Before You Configure

Want to see how different customization options look before implementing them on your site? The Design tab in your CMP configuration provides an in-app interface for configuring and previewing styles. You can adjust colors, button styles, and other visual settings, then use the Preview button to see how your changes will appear before publishing them to your live site.

  • Demo different themes and see how they look in real-time
  • Test color combinations and typography options
  • Preview layouts on different screen sizes
  • Experiment with text content and translations
  • Compare different consent modes (opt-in vs opt-out)
  • Test regional variations and compliance scenarios
  • Validate different button-layout strategies for each jurisdiction before publishing
The Preview Consent Modals dialog. Selectors choose which region rule and viewport size to preview, buttons show the consent modal or the preferences modal or reset the preview, and a mock web page below renders the live consent banner with the configured colors, copy, and button labels.

The preview functionality lets you experiment with all customization options without affecting your live site, making it easy to find the perfect configuration for your brand and compliance needs.


Ours Privacy CMP offers a variety of theme options to match your website's branding and user experience needs.

A dark consent banner laid out as a wide bar, with the headline and description on the left and stacked Accept All, Reject All, and Show Preferences buttons on the right, above a footer strip of Privacy Policy and Terms of Service links.

Wide banner. Use a wide layout when the message and three consent actions need equal room across the page.


Next Steps

How is this guide?

On this page