bluefairy / module-cookie-consent-hyva
BlueFairy Cookie Consent - Hyva Alpine.js banner and preferences centre
Package info
github.com/bluefairydevelopment/module-cookie-consent-hyva
Type:magento2-module
pkg:composer/bluefairy/module-cookie-consent-hyva
Requires
- php: ~8.3.0 || ~8.4.0 || ~8.5.0
- bluefairy/module-cookie-consent: ^1.1
- hyva-themes/magento2-theme-module: ^1.5
- magento/framework: ~103.0.8
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-30 15:19:55 UTC
README
bluefairy/module-cookie-consent-hyva (BlueFairy_CookieConsentHyva), MIT licence.
Replaces the Luma banner of bluefairy/module-cookie-consent with an Alpine.js banner and
preferences centre on Hyvä themes. All decisions (re-consent, GPC/DNT, regions, script release,
Consent Mode updates) are made by the core module's engine; this package is only the view.
Install
composer require bluefairy/module-cookie-consent-hyva
bin/magento module:enable BlueFairy_CookieConsentHyva
bin/magento setup:upgrade
Then rebuild your Hyvä theme's CSS (npm run build in the theme's web/tailwind directory):
the module registers its templates with Hyvä's Tailwind config generator.
The banner uses the theme's btn and btn-primary classes, with Reject and Accept styled the same.
Customise hides itself once the preferences are open and moves keyboard focus to the first
choice.
Works with Hyvä's strict CSP mode as well as the default one: the component is registered with
Alpine.data(), its Alpine attributes hold only property and method names, and the template
has no inline script.
Included with a BlueFairy Cookie Consent purchase (bluefairy/module-cookie-consent), which it
requires. Magento Open Source 2.4.8 or later, PHP 8.3, 8.4 or 8.5, Hyvä theme module 1.5 or later.
Screenshots
Tests
MAGENTO_ROOT=/path/to/magento /path/to/magento/vendor/bin/phpunit -c phpunit.xml.dist
npx jest # reads the core engine from ../module-cookie-consent, or BF_CC_ENGINE

