loki-theme / magento2-luma-components
Module to allow for Loki Themes to work
Fund package maintenance!
yireo
www.paypal.me/yireo
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 2
Language:HTML
Type:magento2-module
Requires
- ext-pcre: *
- loki/magento2-base: ^1.0
- magento/framework: ^103.0
- magento/module-csp: ^100.0
- magento/module-store: ^101.1
README
Module for Magento 2 to remove legacy Luma JavaScript and adds JS components or Alpine.js components where needed
Installation
composer require loki-theme/magento2-luma-components bin/magento module:enable LokiTheme_LumaComponents
What this is
This module removes legacy Luma JavaScript (RequireJS, Knockout.js, jQuery, jQuery UI) and replaces it with custom JavaScript where needed. The following variations for this rewrite exist - taking in mind that this module tries to make as little template override as possible:
- No JavaScript, just plain HTML and CSS;
- Simple JavaScript functions;
- Alpine.js components (with or without custom template);
Currently, the following components are built-in:
- Messages
- Cookie notice
- Top navigation
- Mobile navigation
- Top links (customer welcome)
- Minicart
- Newsletter subscribe
- Add-to-cart (product page)
- Add-to-cart (category page)
- Add-to-wishlist (category page)
- Add-to-compare (category page)
- Tabs (product page)
- Currency switcher
Make sure to carefully read the docs at https://loki-extensions.com/docs/theme