# Styling & Customization

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

Source: https://docs.oursprivacy.com/docs/cookie-consent/styling-and-customization

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.

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

* **Color Customization**: Set primary colors, background colors, text colors, and accent colors using color pickers
* **Typography**: Set the banner font with the `--cc-font-family` CSS variable (see [Advanced Customization](#advanced-customization-with-css-variables))
* **Layout Options**: Choose a bar, box, or cloud layout for the consent modal and where it sits on the page
* **Button Styling**: Choose which buttons appear, flip their order, give them equal weight, and set their colors and hover colors
* **Rounded Corners**: Set the border radius for the modal and its buttons
* **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.

**Consent banner configuration examples**

* **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.

  ![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.](https://docs.oursprivacy.com/img/cookie-consent/cookie-consent-img-23.jpg)

* **Corner box, full detail**: A corner box in opt-in mode, where nothing optional runs until the visitor chooses. Stacking the buttons lets the copy explain each category properly. Use it when you would rather answer questions up front than send people to a preferences screen.

  ![A tall white consent box in the bottom-right corner of a teal-accented page, with a close X in its top corner. The heading reads Before you look around, followed by a long multi-sentence explanation and three stacked full-width buttons: Allow all, Necessary only, and Let me choose.](https://docs.oursprivacy.com/img/cookie-consent/cookie-consent-img-24.jpg)

* **Cloud, two actions**: The Cloud layout with the reject button switched off, one line of copy, and informal labels. This is the smallest footprint here, for sites where the banner should read as a quiet aside rather than an interruption.

  ![A compact centered consent card floating above the bottom edge of a cream, serif-set page. A small Cookies heading sits above a single line of text, with a rust-red Fine by me button and a pale Options button stacked on the right.](https://docs.oursprivacy.com/img/cookie-consent/cookie-consent-img-25.jpg)

* **Centered modal**: A centered modal with page interaction disabled, so the page dims until a choice is made. Equal-weight buttons give accept and reject the same visual prominence, often expected where consent must be freely given.

  ![A small white consent modal centered on a page dimmed behind it. The heading reads Choose what Northside may use above two sentences, with three equal-width stacked buttons: Accept everything, Reject optional, and Review each category, two of them in solid violet.](https://docs.oursprivacy.com/img/cookie-consent/cookie-consent-img-26.jpg)

* **Single action, top bar**: The Accept Only preset at the top of the page: one sentence, one button, square corners. It is about as small as the banner gets and appropriate only where your jurisdiction and cookie use do not require offering a reject option.

  ![A dark, square-cornered bar across the top of a white page above the site header. One line of text reads This site uses cookies to measure how our patient-education pages perform, with a single white Got it button below it.](https://docs.oursprivacy.com/img/cookie-consent/cookie-consent-img-27.jpg)

* **Information only**: The Information Only preset renders no action buttons at all, leaving the close icon as the only affordance. Use it as a disclosure notice when no choice is being requested.

  ![A small white notice in the bottom-left corner of a green-accented page, with a close X in its corner. The heading reads How this site uses cookies above a short paragraph, and a footer of Privacy Policy and Terms of Service links. There are no action buttons.](https://docs.oursprivacy.com/img/cookie-consent/cookie-consent-img-28.jpg)

***

## 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.](https://docs.oursprivacy.com/img/cookie-consent/cookie-consent-img-15.jpg)

### 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.

**Consent banner CSS variable examples**

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

  ![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.](https://docs.oursprivacy.com/img/cookie-consent/cookie-consent-img-19.jpg)

* **High contrast**: Square corners and a black-on-white palette, from --cc-btn-border-radius set to 0 with --cc-btn-primary-bg and --cc-footer-bg.

  ![The same consent bar with square corners, a solid black Accept all button, a white Reject non-essential button with a black border, and a black footer strip.](https://docs.oursprivacy.com/img/cookie-consent/cookie-consent-img-20.jpg)

* **Midnight**: A dark surface with a mint accent, from --cc-bg, --cc-primary-color, and --cc-btn-primary-bg. Set --cc-btn-primary-color as well so label text stays readable on a light accent.

  ![The same consent bar on a dark navy page, with a dark panel, a mint Accept all button with dark text, and a muted navy secondary button.](https://docs.oursprivacy.com/img/cookie-consent/cookie-consent-img-21.jpg)

* **Editorial warm**: A warm palette from --cc-btn-primary-bg and --cc-footer-bg. Note the banner keeps its own sans-serif while the page is set in a serif: type is not inherited, so set --cc-font-family when you want the banner to match your body font.

  ![The same consent bar on a warm cream page set in a serif typeface, with a rust-red Accept all button and a cream secondary button.](https://docs.oursprivacy.com/img/cookie-consent/cookie-consent-img-22.jpg)

***

## 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.

* **Compare layouts and positions** and see how they look in real time
* **Test color combinations** and button styles
* **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.](https://docs.oursprivacy.com/img/cookie-consent/cookie-consent-img-18.jpg)

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.

***

## Next Steps

* **[General Settings](https://docs.oursprivacy.com/docs/cookie-consent/general-settings)**: Configure categories, vendors, and UI text
* **[Regional Policies](https://docs.oursprivacy.com/docs/cookie-consent/regional-policies)**: Set up region-specific text and translations
