How much of my existing theme can be reused in Hyvä?
You can reuse the design and PHP code of your Magento 2 theme in Hyvä without a redesign. Your layout XML and templates need partial rework. What you rebuild is the browser code: Hyvä replaces Luma’s RequireJS, Knockout.js and Less with Alpine.js and Tailwind CSS.
Quick answer
When a Magento 2 store moves from a Luma-based theme to Hyvä, its PHP, translations, assets and design system carry over. Less stylesheets, RequireJS modules, jQuery widgets and Knockout.js templates need a rebuild, because Hyvä runs on Tailwind CSS and Alpine.js. Layout XML and phtml templates partly carry over: you keep their structure and rewrite the Luma JavaScript inside them. Pages not yet rebuilt can stay on Luma through Hyvä’s Luma theme fallback module.
What you can reuse from a Magento theme in Hyvä
Here is how each part of a typical Luma-based Magento theme holds up when you reuse it in Hyvä.
| Theme part | Reusable? | What changes |
|---|---|---|
| PHP modules, plugins, observers, view models | Yes | This code is theme-independent and stays as it is. |
| Translations (i18n CSV files) | Yes | Copy them into the Hyvä child theme. |
| Images, fonts, icons | Yes | Static assets move across directly. |
| Design system | Yes | Brand colors, fonts and spacing become Tailwind theme values in your child theme. |
| Layout XML | Partly | Hyvä’s base layout reset (magento2-base-layout-reset) removes Luma’s layout handles, so updates that target Luma blocks need review. |
| phtml templates | Partly | PHP and HTML skeletons adapt. Alpine.js and Tailwind replace the Luma JavaScript hooks and CSS classes. |
| Transactional emails | Mostly | Hyvä’s email module (magento2-email-module) falls back to Magento’s Blank theme for email rendering. |
| Less and CSS | No | You rebuild the styling in Tailwind CSS. |
| RequireJS, jQuery widgets, Knockout.js templates | No | Each one becomes an Alpine.js component. |
Why Luma’s JavaScript and Less don’t carry over to Hyvä
Hyvä is a Magento 2 and Adobe Commerce frontend that runs a different stack on the same backend. According to Hyvä’s documentation, Hyvä uses Tailwind CSS and Alpine.js in place of Luma’s RequireJS, Knockout.js and Less. Hyvä’s speed comes from loading far less JavaScript than that Luma setup.
The switch to Alpine.js and Tailwind is why phtml templates only partly carry over. Take a product page template. Its PHP and HTML skeleton can stay. Every data-mage-init attribute, x-magento-init block and jQuery call turns into an Alpine.js component. Tailwind utilities replace the Luma class names.
Some pages are too costly to rebuild in the first phase of a Hyvä migration. Hyvä’s Luma theme fallback module (magento2-theme-fallback) can serve those routes with your old theme.
Check these before you reuse Magento theme code in Hyvä
- List every template your theme overrides. Any template with
data-mage-init,x-magento-initor Knockout bindings is a rewrite, not a copy. - Review custom layout XML against Hyvä’s base layout reset. Magento silently skips updates that point at blocks that no longer exist. Without an error message, these breaks are easy to miss.
- Assess third-party extensions separately from the theme. Modules that ship Luma JavaScript need a Hyvä compatibility module, either from the vendor or built for your store. See whether Hyvä will support your existing extensions.
- Check CMS blocks and widgets for hand-written HTML with Luma classes or inline jQuery. That custom markup often needs a rewrite on Hyvä. Native Page Builder content needs no add-on: Hyvä renders its rows, columns, banners and sliders directly.
- Checkout is its own decision. You can rebuild it or keep the Luma checkout with Hyvä’s
magento2-luma-checkoutfallback module. The third option, Hyvä Checkout, needs a paid license.
How to estimate theme reuse before a Hyvä migration
The reliable way to measure how much of your Magento theme you can reuse in Hyvä is a template-by-template audit.
- List the templates your theme overrides and flag every one that carries Luma JavaScript.
- Audit your extensions the same way, flagging each one that renders on the storefront.
If your custom work is mostly styling, you can reuse most of the Magento theme structure in Hyvä. Restyled headers and product grids usually need only new Tailwind classes. A Knockout.js product configurator or a jQuery mega menu is different. You rebuild each one as a new Alpine.js component.
Want a second opinion on that audit? Our Hyvä theme development team can review it with you before any code changes.
Related Answers
Still need help?
Talk to our Hyvä experts
Send us your template overrides and extension list. We'll show you what ports to Hyvä and what needs a rebuild.