Match your cookie banner to your brand with both buttons easy to see
Pick the "Light", "Dark", or "Custom" color theme of your TermsFeed Privacy Consent cookie banner under "Choose a color theme" on the Appearance page of the TermsFeed app. The theme colors the consent banner, the Preferences Center, the floating buttons, and the embed placeholders together. A new consent banner starts on "Light".
The theme changes colors only. The "Choose a font" cards sit on the same page, and any other change takes the rules in Custom CSS.
What the 3 color themes set
"Light" and "Dark" use fixed colors, and "Custom" replaces them with 4 colors you pick. The fixed colors depend on the consent banner type: "Card", "Bar", and "Panel" share one set, and the 2 types tagged "Classic", "Simple" and "Headline", share another. Each color has a field that replaces it under "Custom".
| Color | "Custom" field | "Light" on Card, Bar, Panel | "Dark" on Card, Bar, Panel | "Light" on Simple, Headline | "Dark" on Simple, Headline |
|---|---|---|---|---|---|
| Background of the consent banner and the Preferences Center | "Banner background color" | #FFFFFF |
#181C27 |
#F2F2F2 |
#181C27 |
| Text and links | "Banner text color" | #161B26 |
#F2F4F8 |
#000000 |
#FFFFFF |
| Background of I Agree, I Decline, and Save Preferences | "Button background color" | #006ADE |
#4C8DF6 |
#006ADE |
#006ADE |
| Text on those buttons | "Button text color" | #FFFFFF |
#0A0F1A |
#FFFFFF |
#FFFFFF |
The "Custom" fields start at the "Light" colors of "Card", "Bar", and "Panel", #ffffff, #161b26, #006ade, and #ffffff, in the order the table lists them.
Some accounts show "Custom" with a lock. Pick "Light" or "Dark" in that case, and read when it unlocks in Colors, fonts, and CSS.
Why the "I Agree" and "I Decline" buttons keep the same colors
Every color theme gives the "I Agree" and "I Decline" buttons the same background color and the same text color, and no field colors them apart. The consent banner therefore offers both answers with equal weight, which is what a visitor needs to refuse as easily as accept.
Keep it that way when you add your own CSS, and leave 'Hide the "Reject all" button in the consent banner?' switched off for visitors in the EU. Regulators in the EU object to a reject button that is paler or harder to find than the accept button. Read why in the TermsFeed post on declining cookies, then run the test in Equal Accept and Reject.
How to check the contrast of custom colors
Read the contrast line the app shows under the "Custom" fields, and change a color until the warning goes away. The app gives the ratio of "Banner text color" against "Banner background color" and of "Button text color" against "Button background color". Below 4.5:1 it warns "Low contrast: the text is hard to read for some visitors. Aim for 4.5:1 or more."
The app compares "Button background color" with "Banner background color" too, because the button color draws the switches that are on and the focus outline. Below 3:1 it warns "Low contrast: the switches and the focus outline are hard to see for some visitors. Aim for 3:1 or more." With "Card", "Bar", or "Panel", it warns when the descriptions, drawn lighter than the text, fall below 4.5:1. The warnings never block a save. Run the other checks your colors affect with Accessibility.
How to change the color theme
Changing the theme takes 5 steps and about 5 minutes. You need access to the consent banner in the TermsFeed app and the Privacy Consent snippet on your website.
- Open your consent banner in the TermsFeed app and click "Appearance" in the sidebar.
- Under "Choose a color theme", select "Light", "Dark", or "Custom".
- For "Custom", set the 4 color fields and read the contrast line under them.
- Click "Preview" to see the theme on an example website, close the preview, then click "Save Appearance" and wait for "Appearance saved".
- Verify on your website. Open a new private window with Chrome DevTools open, select the Network tab, filter for
settings.json, and load a page. Select the request whose path contains/plugins-api-w/and confirm that"color_palette"in its response holdslight,dark, orcustom. Then select the Elements tab and confirm that#termsfeed_pc1_notice_bannercarries the classtermsfeed-pc1-color-palette-light,-dark, or-custom.
The consent banner and the floating buttons now show the new colors. A saved answer hides the consent banner, which is why the check needs a private window. A visitor outside the regions your consent logic asks does not get a consent banner. Open the Preferences Center with your preferences link to see the colors in that case.
How long a color change takes to reach visitors
A saved color theme reaches every visitor within 1 hour, with no change to your website.
A color change asks nobody to answer again. Find out what to do when the old colors remain after 1 hour with Changes Not Showing Live.