Skip to content

GDPR Compliance Risks of Custom CSS

YearAuthorityCompanyFineCause
2020CNIL (FR)Google€100MReject button hidden / harder to find than Accept
2022CNIL (FR)Facebook€60MSame — visual hierarchy violation
2019CJEUPlanet49 (C-673/17)(case law)Pre-ticked checkboxes — visual default = invalid
2023DSK (DE)Multiplevarious”Dark patterns” — Accept button visually emphasized

These are not theoretical. CSS choices triggered each fine.

Under GDPR Article 4(11) + EDPB Guidelines 05/2020 + CNIL Deliberation 2020/091 + DSK Orientierungshilfe 2021 , consent must be freely given. Visual hierarchy that nudges users toward “Accept” creates an “imbalanced choice” — invalidating consent.

In practice this means: Accept and Reject buttons must have visually equivalent weight. Same size, same prominence, same color contrast against background. The default Kookiok templates enforce this. Custom CSS can break it.

Kookiok runs an automated compliance checker on every save. It catches the most common violations, but it is not a complete legal review.

idseverityregulationhumanMessage
reject_all_hiddenerror Article 7(3) GDPR; CNIL 2020/091 §2.3The Reject button must be visible on the first screen. Hiding it violates GDPR Article 7(3).
pre_ticked_checkboxeserror Planet49 CJEU C-673/17Non-necessary category toggles cannot be visually pre-checked. Pre-checking invalidates consent.
shadow_glow_asymmetryerror EDPB 05/2020 §86Accept and Reject buttons must have equal visual weight. Shadow/glow only on Accept is a dark pattern.
buttons_visually_unequalwarning EDPB 05/2020 §86; CNIL 2020/091 §2.3Differing colors, sizes, or weights between Accept and Reject create imbalanced choice architecture.
brand_nudge_on_acceptwarning EDPB 05/2020 §86Coloring Accept in brand hue while Reject stays neutral is a choice-architecture dark pattern.
dark_pattern_color_psychologywarning EDPB 05/2020Green Accept + Red Reject exploits color psychology to nudge consent.
tap_target_too_smallwarning WCAG 2.1 Level AA §2.5.5Button tap target below 44px min-height violates WCAG AA accessibility.
font_weight_asymmetrywarning EDPB 05/2020 §86Accept button with significantly heavier font than Reject is a visual nudge.
accept_more_prominent_sizewarning EDPB 05/2020 §86Accept button with more padding than Reject creates asymmetric visual hierarchy.
consent_expiry_too_longwarning CNIL 2020/091 §2.5Consent expiry > 365 days is non-compliant in most EU jurisdictions.
decline_cooldown_too_shortwarning CNIL 2020/091Re-showing the banner fewer than 180 days after a Reject constitutes harassment.
missing_privacy_policywarning GDPR Article 13Privacy policy link must be present in the banner.
missing_cookie_policywarning ePrivacy Directive Article 5(3)Cookie policy link must be present in the banner.

See full reference

Additional rules enforced by the compliance checker

Section titled “Additional rules enforced by the compliance checker”

Beyond the three errors above, the automated checker enforces five additional warning-level rules that are less commonly documented but actively applied:

Rule codeRegulationDescription
brand_nudge_on_acceptEDPB 05/2020 §86Accept button background lightness skewed brighter than Reject’s — constitutes a choice-architecture nudge
dark_pattern_color_psychologyEDPB 05/2020Accept colored green/blue while Reject grey/red — exploits color psychology to drive consent
tap_target_too_smallWCAG 2.1 AA §2.5.5Buttons below 44×44 px touch target violate WCAG AA; the minimum is enforced via min-height: 44px on .ag-btn
font_weight_asymmetryEDPB 05/2020 §86Accept button bold (font-weight: 700+) while Reject is regular weight — visual nudge
accept_more_prominent_sizeEDPB 05/2020 §86Accept padding or font-size larger than Reject — asymmetric visual hierarchy

These rules fire alongside the ones shown by <SchemaTable source="complianceRules" /> below.

Some compliance issues require human judgment and cannot be auto-detected:

  • Text content of your custom labels (e.g., “Got it!” instead of “Accept” — invalid under DSK 2021)
  • Real visual perception of inequality (e.g., subtle gradient that creates prominence not detected by pixel-based analysis)
  • Behavior post-consent (e.g., loading tracking scripts before consent — this is your gtag/pixel setup, not the banner; see Script Blocking for what the consent script does and does not gate)
  • Locale-specific requirements (e.g., Czech NUKIB requirements — not part of compliance checker yet)
  • Accessibility beyond WCAG basics — screen reader narration, keyboard navigation through your custom DOM

Best practices for compliance-safe customization

Section titled “Best practices for compliance-safe customization”
  1. Start with token overrides, not class overrides. Tokens are designed to keep compliance invariants — they parameterize visual style without breaking visual equality.
  2. Run the compliance checker after every change. It’s instant feedback.
  3. Test all 3 buttons together. Open the preview, look at Reject/Accept/Accept Selected side by side. If your eye is drawn to Accept first — fix it.
  4. Test in light AND dark mode. Contrast can fail in one mode only.
  5. Test on mobile (320px width). Buttons should wrap, not overflow.
  6. Use the WebAIM contrast checker on your chosen color combinations.
  7. Get legal review for production deployment if your customization is non-trivial. We are not your lawyers.

By applying custom CSS via the Kookiok admin dashboard, the BannerConfig API, or any other interface:

  1. You confirm you have read this page.
  2. You accept that compliance is your responsibility for any modifications beyond default templates.
  3. You acknowledge that Kookiok’s automated compliance checker is a helpful tool, not a legal opinion.
  4. To the extent the law allows, Kookiok is not liable for regulatory penalties arising from your use of the service (Terms of Service, “Limitation of liability”).