Skip to content

Expert Answers to Your Magento, Shopify & Shopware Questions

Vendor-neutral, engineer-written explanations. Clear definitions first, then practical steps with real examples — no fluff.

Stagebit builds and maintains stores on Magento, Adobe Commerce, Shopify, Shopware, and Laravel, and this library holds the questions our own engineers get asked most often on each platform.

How do I install Hyvä on an existing Magento 2 store?

SB
Written by Stagebit Engineering Team
Updated November 2026 5 min read Verified by engineers

To install Hyvä on an existing Magento 2 store, add Hyvä’s Composer repository and require the default theme package. Then activate the Hyvä theme under Content > Design > Configuration. The Hyvä theme has been free and open source since 10 November 2025. A complete install also needs a child theme, a Tailwind CSS build, and a few config changes Luma never needed. Do all of it on staging first. Your current extensions were built for Luma, and some of them will break on Hyvä.

Quick answer

Hyvä installs on Magento 2 as a separate theme, so Luma keeps serving shoppers until you switch. Get a free Packagist key at hyva.io, then run composer require hyva-themes/magento2-default-theme and bin/magento setup:upgrade. Create a child theme, compile its CSS with npm run build, and assign it under Content > Design > Configuration. Before go-live, turn off legacy captcha and Magento’s minification, and find a Hyvä compatibility module for each frontend extension.

Before you install Hyvä on Magento 2

Check your environment first. Hyvä’s getting started documentation lists these minimum requirements:

  • Magento Open Source or Adobe Commerce 2.4.4-p9, 2.4.5-p8, 2.4.6-p7, 2.4.7-p1 or any later release.
  • PHP 8.1, 8.2, 8.3 or 8.4.
  • Node.js 20 or newer on the machine that builds the CSS. Use a development or staging server for this, not production.

Hyvä plans to drop PHP 8.1 support in 2027, which also ends support for Magento 2.4.4 and 2.4.5. If your store runs either version, upgrade to 2.4.6 or later before you start. Otherwise you face a second migration in 2027.

Take a full code and database backup first. List every third-party extension that adds anything to the storefront. You will check each one for a Hyvä compatibility module after the install.

Steps to install Hyvä on an existing Magento 2 store

1. Get a free Hyvä Packagist key

Register an account at hyva.io and create a key from your account dashboard. The key gives Composer access to Hyvä’s private Packagist repository. It also gives you access to many of the compatibility modules for third-party extensions.

2. Install the Hyvä package in Magento 2 with Composer

Add your key and repository to the project. Replace the placeholders with the key and project name from your dashboard:

composer config --auth http-basic.hyva-themes.repo.packagist.com token yourHyvaKey
composer config repositories.private-packagist composer https://hyva-themes.repo.packagist.com/yourProjectName/

Then require the default theme and register the new modules:

composer require hyva-themes/magento2-default-theme
bin/magento setup:upgrade

These two commands install Hyvä on Magento 2 as a set of modules plus the parent theme, Hyva/default. Luma stays active, so the storefront does not change yet. If you need strict Content Security Policy compliance, Hyvä also ships a CSP variant, hyva-themes/magento2-default-theme-csp.

3. Create a Hyvä child theme and build its Tailwind CSS

Never edit Hyva/default directly. Create a child theme in app/design/frontend/Vendor/ThemeName/ with the usual registration.php and theme.xml, and set its parent to Hyva/default. Then copy the Tailwind build files from the parent theme:

mkdir -p app/design/frontend/Vendor/ThemeName/web
cp -r vendor/hyva-themes/magento2-default-theme/web/* app/design/frontend/Vendor/ThemeName/web/

In web/tailwind/hyva.config.json, point Tailwind at the parent theme so its classes end up in your stylesheet:

{
    "tailwind": {
        "include": [
            { "src": "vendor/hyva-themes/magento2-default-theme" }
        ]
    }
}

These steps apply to Hyvä 1.4 and later. Hyvä 1.2.x and 1.3.x use tailwind.config.js instead of hyva.config.json.

Build the stylesheet from the child theme’s web/tailwind directory:

npm install
npm run build

Rerun npm run build every time you change templates. Tailwind only includes the classes it finds in your files. The Hyvä child theme guide covers the rest of the setup.

4. Activate the Hyvä theme at Website level

Go to Content > Design > Configuration in the admin and assign your child theme. Also set a theme on the Website row, even if only one store view will use Hyvä. Hyvä’s docs warn that a Website left on “No Theme” makes a Hyvä store view misbehave.

5. Disable captcha and minification after Hyvä installation

Three Magento defaults conflict with Hyvä. Change them before anyone tests the storefront:

  • Legacy captcha:Hyvä does not support it, and forms will not work while it stays on. Use Google reCAPTCHA v3 invisible, v2 invisible or v2 checkbox instead.
  • Minification and bundling: Magento’s minification and bundling add overhead on Hyvä, and the CSS minifier can make setup:static-content:deploy fail.
  • GraphQL modules: Hyvä uses parts of the GraphQL API. Stores that ran Luma often have unused GraphQL modules disabled. Hyvä’s docs list 21 required GraphQL modules. Check them with bin/magento module:status.
bin/magento config:set customer/captcha/enable 0
bin/magento config:set dev/template/minify_html 0
bin/magento config:set dev/js/merge_files 0
bin/magento config:set dev/js/enable_js_bundling 0
bin/magento config:set dev/js/minify_files 0
bin/magento config:set dev/js/move_script_to_bottom 0
bin/magento config:set dev/css/merge_css_files 0
bin/magento config:set dev/css/minify_files 0

If other store views still run Luma, apply the minification settings with --scope=stores --scope-code=yourstoreview instead. Luma store views should keep minification on.

6. Deploy Hyvä and check extension compatibility

In production mode, run bin/magento setup:static-content:deploy before the theme appears. In developer mode, bin/magento cache:flush is usually enough.

Next, check every third-party extension that renders anything on the storefront. This is the longest part of a Hyvä installation. Hyvä replaces Luma’s RequireJS and Knockout frontend with Alpine.js and Tailwind. Any extension with Luma templates or JavaScript needs a Hyvä compatibility module. Not every extension has one yet. Search the compatibility module documentation for an existing module before you write your own.

What breaks when you install Hyvä on Magento 2

  • When you install Hyvä on Magento 2, your Luma customisations do not carry over. Your LESS styles and custom templates need rebuilding in the child theme.
  • Extensions without a compatibility module can lose their storefront features. A Luma product slider, for example, may show up unstyled or not at all.
  • Customer account forms can stop working if the legacy captcha stays enabled.
  • A Tailwind build on production puts Node.js on your live server. Build on staging and deploy the compiled styles.css instead.

Should you install Hyvä yourself?

Running the commands to install Hyvä on Magento 2 is the quick part. The theme rebuild and extension checks set the real timeline. Count your frontend extensions before you commit to a date. Our Hyvä theme development team can audit those extensions and plan the switch with you.

Was this answer helpful?

Your feedback helps us improve our answers.

Still need help?

Talk to our Hyvä experts

Stuck on a compatibility module or a Tailwind build mid-install? Tell us what is failing and we will help you get it working.

Talk to Hyvä Experts