Writing Alpine.js Components in Hyvä: Patterns That Scale
How to write Alpine.js components on Hyvä: passing PHP data, view models, customer data events, form keys, component events, CSP and keeping templates clean.
16 articles
How to write Alpine.js components on Hyvä: passing PHP data, view models, customer data events, form keys, component events, CSP and keeping templates clean.
How Hyvä compatibility modules work: the CompatModuleRegistry, rewriting extension templates with Alpine.js, hyva_ layout handles and the Luma fallback.
Customize Tailwind CSS in a Hyvä theme: content paths, brand colors and fonts in v3 and v4, @apply components, CMS classes, safelists and keeping CSS small.
Step by step Hyvä setup on Magento 2.4.8: Composer install, child theme, Tailwind build, hyva:config:generate, deploy order and the usual first project issues.
Luma to Hyvä migration plan for Magento 2: extension and theme audit, checkout decision, page by page rebuild, SEO parity, testing, launch and rollback.
Add a new step to the Magento 2 Luma checkout with step-navigator, layout XML and a Knockout template, plus where to validate and store the data it collects.
Create a Magento 2 child theme of Luma or Blank: theme.xml, registration.php, composer.json, view.xml, logo, template overrides, applying and deploying it.
Where Magento 2 Luma stores lose Core Web Vitals and how to fix LCP, INP and CLS: server response, CSS, fonts, images, gallery, third party scripts.
Create and send custom email templates in Magento 2.4: email_templates.xml, template syntax in strict mode, TransportBuilder, admin overrides and theme files.
Hyvä vs Luma from a developer's view: Alpine.js and Tailwind vs RequireJS, Knockout and LESS, extension compatibility, checkout options and when to pick each.
How Magento 2 layout XML works: handles, containers, blocks, move and remove, arguments, view models and page layouts, with examples that hold up in 2.4.8.
How to customize Luma styles with LESS in Magento 2: variables in _theme.less, additions in _extend.less, module overrides, media queries and Grunt compiling.
How to write RequireJS mixins in Magento 2 for UI components, jQuery widgets and function modules, plus how to debug them and when a map override is better.
Speed up setup:static-content:deploy in Magento 2: standard, quick and compact strategies, parallel jobs, scoping themes and locales, and builds without a DB.
How Magento 2 translations work: i18n CSV files, language packages, theme overrides, inline translation, JS and Knockout strings, and why phrases stay English.
A practical intro to Magento 2 UI components and Knockout.js: uiComponent, templates, observables, imports and exports, jsLayout and the uiRegistry.