hyva-child-theme

Create a Hyvä child theme scaffold for Magento 2 with Tailwind integration.

78|16|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/hyva-themes/hyva-ai-tools --skill hyva-child-theme
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hyva-child-theme
Source: https://github.com/hyva-themes/hyva-ai-tools/tree/main/skills/hyva-child-theme
Command: npx skills add https://github.com/hyva-themes/hyva-ai-tools --skill hyva-child-theme

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill streamlines creating a Hyvä child theme scaffold for Magento 2 projects, providing a correct directory structure and essential configuration.

Core Features & Use Cases

  • Theme scaffolding: Generates app/design/frontend/<Vendor>/<ThemeName>/ with registration.php, theme.xml, and composer.json.
  • Tailwind integration: Copies and configures Tailwind from a parent Hyvä theme for consistent styling.
  • Guided setup: Prompts for Vendor, ThemeName, and Parent Theme to ensure proper naming and inheritance.

Quick Start

Provide Vendor name and Theme name, select a parent Hyvä theme, then run the dedicated Tailwind build flow using the hyva-compile-tailwind-css skill to install dependencies and compile CSS. Finally, enable the theme in Magento via admin or CLI.

Frequently Asked Questions about hyva-child-theme

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Hyva child theme for Magento 2?

To create a Hyva child theme for Magento 2, generate a scaffold in the app/design/frontend directory with registration.php, theme.xml defining the parent, and composer.json. This establishes the correct directory structure and theme inheritance for your storefront.

How do I set up Tailwind CSS in a Magento 2 child theme?

Setting up Tailwind CSS in a Magento 2 child theme involves copying the Tailwind configuration from a parent Hyva theme. This ensures consistent styling and requires running a dedicated build flow to install dependencies and compile the CSS.

What files are required for a Hyva child theme scaffold?

A Hyva child theme scaffold requires registration.php, theme.xml with a proper parent theme defined, and composer.json. Additionally, it includes a copied Tailwind CSS configuration to maintain styling consistency with the parent storefront.

Do I need a parent Hyva theme installed to build a Magento 2 storefront?

Yes, a parent Hyva theme is required to build a new Magento 2 storefront. The child theme scaffolding process prompts you for the parent theme name to ensure proper inheritance and correct Tailwind integration.

What is the best way to configure theme inheritance in Magento 2 using Hyva?

The best way to configure theme inheritance in Magento 2 is by defining the parent theme in the theme.xml file. This ensures the child theme correctly inherits layouts, templates, and styling configurations from the specified Hyva parent.

How do I enable a new Hyva child theme in Magento after generating the scaffold?

After generating the scaffold and compiling Tailwind CSS, enable the Hyva child theme in Magento via the admin panel or CLI. This activates the newly created directory structure and styling configuration for your storefront.