🔥 Introducing the Lizha Hyvä Template: Sleek, Fast, and Powerfull Buy Now 🔥

shape-img
Hyvä Theme

How to Create a Hyvä Child Theme the Easy Way

827 Views January 4, 2025 5 Min Read

Introduction

The Magento ecosystem has evolved rapidly in recent years, and one of the biggest innovations improving store performance and development experience is the Hyvä Theme. Known for its lightweight structure, improved page speed, and modern frontend approach, Hyvä has become a preferred choice for many Magento store owners.

However, when working with Hyvä, creating a child theme requires a slightly different approach compared to traditional Magento themes such as Luma. Developers need to go beyond the basic setup and also configure Tailwind CSS and theme assets correctly.

In this guide, we will walk through the process of creating a Hyvä child theme step by step. Whether you are a developer or a business looking for hyva theme development company expertise, understanding this process will help you better manage customisations and future upgrades.

Why Use a Hyvä Child Theme?

theme is recommended.

A child theme allows developers to customise the appearance and functionality of a store without modifying the core Hyvä files. This means:

  • Easier updates when the parent theme is upgraded
  • Safer customisations without affecting the original theme
  • Better maintainability for long-term store development
  • Cleaner development workflow for teams working on magento hyva theme development services

For businesses investing in eCommerce Development, this approach ensures flexibility while keeping the store stable and upgrade-friendly.

Step 1: Create the theme.xml File

The first step in setting up your Hyvä child theme is defining it within Magento. This is done through the theme.xml file, which tells Magento that your theme exists and specifies the parent theme it inherits from.

Create the following file:

Location

app/design/frontend/Kiwi/hyva_kiwi/theme.xml

 

Example configuration:

<theme xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”

xsi:noNamespaceSchemaLocation=”urn:magento:framework:Config/etc/theme.xsd”>

<title>Hyva Kiwi Child Theme</title>

<parent>Hyva/default</parent>

</theme>

 

This file ensures Magento recognises the child theme and links it to the parent Hyvä theme.

Step 2: Register the Theme in Magento

Once the theme definition is created, the next step is to register it within Magento using a registration.php file.

Create the file at:

app/design/frontend/Kiwi/hyva_kiwi/registration.php

 

Example code:

<?php

\Magento\Framework\Component\ComponentRegistrar::register(

\Magento\Framework\Component\ComponentRegistrar::THEME,

‘frontend/Kiwi/hyva_kiwi’,

__DIR__

);

 

This step allows Magento to recognise your theme during system setup and deployment.

Step 3: Copy the Web Directory

Unlike traditional Magento themes, Hyvä child themes require a web directory containing essential assets such as:

  • CSS files
  • JavaScript files
  • Fonts
  • Images

To set this up, copy the web folder from the parent theme.

Copy from

vendor/hyva-themes/magento2-default-theme/web

 

Paste to

app/design/frontend/Kiwi/hyva_kiwi/web

 

These assets provide the foundation for styling and functionality in your child theme.

Step 4: Configure Tailwind CSS

One of the most important components of the Hyvä theme architecture is Tailwind CSS. Hyvä uses Tailwind as its primary styling framework, which allows developers to build fast, responsive, and highly customisable user interfaces.

To ensure your child theme correctly inherits styles from the parent theme, you need to configure the tailwind.config.js file.

Location

app/design/frontend/Kiwi/hyva_kiwi/web/tailwind/tailwind.config.js

 

Example configuration:

module.exports = {

content: [

‘../../**/*.phtml’,

‘../../*/layout/*.xml’,

‘../../*/page_layout/override/base/*.xml’,

 

// Include parent theme paths

‘../../../../../../../vendor/hyva-themes/magento2-default-theme/**/*.phtml’,

‘../../../../../../../vendor/hyva-themes/magento2-default-theme/*/layout/*.xml’,

‘../../../../../../../vendor/hyva-themes/magento2-default-theme/*/page_layout/override/base/*.xml’,

 

// Include app code modules

‘../../../../../../../app/code/**/*.phtml’,

],

};

 

Tip:
Make sure the parent theme paths are included so your child theme can inherit templates and layouts correctly.

Step 5: Install Tailwind Dependencies

Next, install the required Node.js dependencies that allow Tailwind to compile your CSS files.

Navigate to the Tailwind directory:

cd app/design/frontend/Kiwi/hyva_kiwi/web/tailwind/

 

Run the installation command:

npm install

 

This installs all required packages for compiling the styling system used by the Hyvä theme.

Step 6: Generate the hyvä-themes.json File

The hyva-themes.json file is used to track all modules and themes that use Tailwind CSS within your Magento installation.

To regenerate this file and ensure your new child theme is recognised, run the following command:

php bin/magento hyva:config:generate

 

This step ensures compatibility between modules and the Hyvä styling system.

Step 7: Deploy Magento Changes

Once the setup is complete, you need to run Magento deployment commands so that your new theme and assets are applied.

Run the following commands:

php bin/magento setup:upgrade

php bin/magento setup:static-content:deploy -f

php bin/magento cache:flush

 

These commands update the Magento configuration, deploy static assets, and clear caches.

Step 8: Enable the Theme in Magento Admin

The final step is to activate your new Hyvä child theme in the Magento admin panel.

Follow these steps:

  1. Go to Admin → Content → Design → Configuration
  2. Select your store view
  3. Choose the newly created Hyvä child theme
  4. Save the configuration
  5. Flush the Magento cache

Once enabled, your store will start using the child theme.

Your Hyvä Child Theme is Ready

By following these steps, you now have a fully functional Hyvä child theme ready for customisation. With Tailwind CSS and the parent theme properly configured, developers can safely extend functionality, modify layouts, and build high-performance storefronts.

Because Hyvä focuses on speed and simplicity, it has become one of the most powerful frontend solutions for Magento stores.

If you are planning a Hyvä implementation or looking for expert support, working with a reliable hyva theme development company can make the process significantly smoother.

At Kiwi Commerce, we specialise in magento hyva theme development services and scalable eCommerce Development solutions. Our team helps businesses build fast, optimised, and conversion-focused Magento stores using the latest technologies.

If you are planning to upgrade your Magento store with the Hyvä theme, feel free to get in touch with our experts.

FAQ's

Your questions answered

Can’t find what you’re looking for? Contact our team

What is a Hyvä child theme in Magento 2?

A Hyvä child theme in Magento 2 is a custom theme that inherits functionality and styling from the main Hyvä parent theme. It allows developers to modify layouts, templates, and styles without changing the core files of the parent theme. This approach ensures that when the parent theme is updated, your customisations remain safe. It is the recommended way to customise a Magento store built using the Hyvä theme.

Using a child theme with the Hyvä theme helps keep your store’s customisations organised and upgrade-safe. Instead of modifying the main theme directly, all changes are made within the child theme. This makes future updates much easier and prevents conflicts during upgrades. It also provides a cleaner development workflow for teams working on Magento stores and helps maintain performance and stability.

Yes, Tailwind CSS is a core part of the Hyvä frontend architecture. When creating a Hyvä child theme, you need to configure the Tailwind setup so that it scans the correct template and layout files. This ensures that all required styles are compiled correctly. Tailwind allows developers to build modern, responsive designs while keeping the theme lightweight and fast.

Creating a Hyvä child theme involves additional steps compared to a traditional Magento Luma child theme. While both require basic files like theme.xml and registration.php, Hyvä also requires configuring Tailwind CSS and managing frontend assets. Because Hyvä uses a modern frontend stack instead of the traditional Magento UI components, the development workflow is slightly different but results in much better performance.

While experienced Magento developers can create a Hyvä child theme relatively easily, it can be challenging for beginners because it involves Magento theme structure, Tailwind CSS configuration, and deployment commands. If your store requires advanced customisation or performance optimisation, working with a professional Hyvä development team can help ensure the setup is done correctly and efficiently.

Need Help?

If this guide helped you, imagine what our team can do for your business. Let’s build something powerful together.

Contact Us
  • 24/7 Support
  • Custom Ecommerce Development
  • Certified Experts
  • 10+ Years of Experience
Enter your email to download