Compliance Rules
The compliance checker runs all rules below on every save. Error-severity rules block the save (or are enforced at runtime). Warning-severity rules are advisory but legally significant.
| 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. |
Reading the table
Section titled “Reading the table”- id — the machine-readable rule identifier used in API responses and the
data-ruleattribute on<ComplianceCallout>components. - severity —
errorrules are blocking;warningrules are advisory. Treat warnings as errors if you operate in high-enforcement jurisdictions (France, Germany, Netherlands). - regulation — the specific regulatory reference (GDPR article, EDPB opinion section, CNIL decision, CJEU case, WCAG criterion).
- humanMessage — plain-language explanation of the rule.