Skip to main content

Colors & Fonts

Colors

Configure colors in Banner Builder → Appearance → Colors.

CSS variables

ConsentForge exposes CSS custom properties that you can override in your custom CSS:

VariableDefaultDescription
--cf-color-primary#1B3A4BPrimary action color (Accept button)
--cf-color-secondary#6B7280Secondary action color (Reject button)
--cf-color-background#FFFFFFBanner background
--cf-color-text#111827Body text
--cf-color-text-muted#6B7280Secondary text
--cf-color-border#E5E7EBBorder color
--cf-color-overlayrgba(0,0,0,0.5)Modal backdrop

Dark mode

ConsentForge automatically follows the visitor's prefers-color-scheme media query. Set data-theme="auto" (default) in your embed snippet, or force data-theme="light" / data-theme="dark".

Fonts

By default, the banner inherits your website's body font via font-family: inherit.

To use a specific font:

/* In your custom CSS */
.cf-banner {
font-family: 'Inter', sans-serif;
}

Or configure in Banner Builder → Appearance → Font.

Font size

VariableDefault
--cf-font-size-base14px
--cf-font-size-title16px
--cf-font-size-small12px