GDPR Compliance Risks of Custom CSS
Why this matters: real fines
Section titled “Why this matters: real fines”| Year | Authority | Company | Fine | Cause |
|---|---|---|---|---|
| 2020 | CNIL (FR) | €100M | Reject button hidden / harder to find than Accept | |
| 2022 | CNIL (FR) | €60M | Same — visual hierarchy violation | |
| 2019 | CJEU | Planet49 (C-673/17) | (case law) | Pre-ticked checkboxes — visual default = invalid |
| 2023 | DSK (DE) | Multiple | various | ”Dark patterns” — Accept button visually emphasized |
These are not theoretical. CSS choices triggered each fine.
The principle: visual equality of choices
Section titled “The principle: visual equality of choices”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.
Common CSS patterns that break compliance
Section titled “Common CSS patterns that break compliance”Compliance rules enforced by Kookiok
Section titled “Compliance rules enforced by Kookiok”Kookiok runs an automated compliance checker on every save. It catches the most common violations, but it is not a complete legal review.
| id | severity | regulation | humanMessage |
|---|---|---|---|
reject_all_hidden | error | Article 7(3) GDPR; CNIL 2020/091 §2.3 | The Reject button must be visible on the first screen. Hiding it violates GDPR Article 7(3). |
pre_ticked_checkboxes | error | Planet49 CJEU C-673/17 | Non-necessary category toggles cannot be visually pre-checked. Pre-checking invalidates consent. |
shadow_glow_asymmetry | error | EDPB 05/2020 §86 | Accept and Reject buttons must have equal visual weight. Shadow/glow only on Accept is a dark pattern. |
buttons_visually_unequal | warning | EDPB 05/2020 §86; CNIL 2020/091 §2.3 | Differing colors, sizes, or weights between Accept and Reject create imbalanced choice architecture. |
brand_nudge_on_accept | warning | EDPB 05/2020 §86 | Coloring Accept in brand hue while Reject stays neutral is a choice-architecture dark pattern. |
dark_pattern_color_psychology | warning | EDPB 05/2020 | Green Accept + Red Reject exploits color psychology to nudge consent. |
tap_target_too_small | warning | WCAG 2.1 Level AA §2.5.5 | Button tap target below 44px min-height violates WCAG AA accessibility. |
font_weight_asymmetry | warning | EDPB 05/2020 §86 | Accept button with significantly heavier font than Reject is a visual nudge. |
accept_more_prominent_size | warning | EDPB 05/2020 §86 | Accept button with more padding than Reject creates asymmetric visual hierarchy. |
consent_expiry_too_long | warning | CNIL 2020/091 §2.5 | Consent expiry > 365 days is non-compliant in most EU jurisdictions. |
decline_cooldown_too_short | warning | CNIL 2020/091 | Re-showing the banner fewer than 180 days after a Reject constitutes harassment. |
missing_privacy_policy | warning | GDPR Article 13 | Privacy policy link must be present in the banner. |
missing_cookie_policy | warning | ePrivacy Directive Article 5(3) | Cookie policy link must be present in the banner. |
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 code | Regulation | Description |
|---|---|---|
brand_nudge_on_accept | EDPB 05/2020 §86 | Accept button background lightness skewed brighter than Reject’s — constitutes a choice-architecture nudge |
dark_pattern_color_psychology | EDPB 05/2020 | Accept colored green/blue while Reject grey/red — exploits color psychology to drive consent |
tap_target_too_small | WCAG 2.1 AA §2.5.5 | Buttons below 44×44 px touch target violate WCAG AA; the minimum is enforced via min-height: 44px on .ag-btn |
font_weight_asymmetry | EDPB 05/2020 §86 | Accept button bold (font-weight: 700+) while Reject is regular weight — visual nudge |
accept_more_prominent_size | EDPB 05/2020 §86 | Accept padding or font-size larger than Reject — asymmetric visual hierarchy |
These rules fire alongside the ones shown by <SchemaTable source="complianceRules" /> below.
What Kookiok does NOT check
Section titled “What Kookiok does NOT check”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/pixelsetup, 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”- Start with token overrides, not class overrides. Tokens are designed to keep compliance invariants — they parameterize visual style without breaking visual equality.
- Run the compliance checker after every change. It’s instant feedback.
- 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.
- Test in light AND dark mode. Contrast can fail in one mode only.
- Test on mobile (320px width). Buttons should wrap, not overflow.
- Use the WebAIM contrast checker on your chosen color combinations.
- Get legal review for production deployment if your customization is non-trivial. We are not your lawyers.
Liability acknowledgment
Section titled “Liability acknowledgment”By applying custom CSS via the Kookiok admin dashboard, the BannerConfig API, or any other interface:
- You confirm you have read this page.
- You accept that compliance is your responsibility for any modifications beyond default templates.
- You acknowledge that Kookiok’s automated compliance checker is a helpful tool, not a legal opinion.
- 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”).
Related
Section titled “Related”Regulatory sources
Section titled “Regulatory sources”- GDPR Article 4(11) — definition of consent
- GDPR Article 7 — conditions for consent
- EDPB Guidelines 05/2020
- CNIL Deliberation 2020/091
- DSK Orientierungshilfe 2021
- Planet49 CJEU C-673/17