Hyvä has quickly gained popularity over the years mainly due to its exceptional performance improvements.
Previously, developers had to put in significant effort to optimize page speed scores and ensure faster loading times. With Hyvä, optimization needs less effort due to its clean and modern structure.
In this blog, get a deeper understanding of the Hyvä theme architecture to know what makes it stand out from the other available Magento 2 themes.
What is Magento 2 Hyvä Theme?
Hyvä theme is a modern frontend solution designed to replace the default Magento 2 Luma theme.
It eliminates the use of technologies like UI Components, Knockout.js, and RequireJS, which are commonly used in Magento’s traditional frontend stack.
Hyvä leverages on modern and lightweight components like Alpine.js for JavaScript interactivity and Tailwind CSS for efficient, utility-first styling.
This results in improvement of developer workflow and productivity.
While the Hyvä theme is super developer friendly, it also comes with other benefits like:
- Lightweight architecture that makes customization easy
- Cuts page load time to 50% with a 90 score on Google Lighthouse
- Uses modern tools that minimize dependencies
- Smooth and responsive UI for better user experience
These results are achievable due to the inner architecture of the Hyva theme; let’s know how does the Magento 2 Hyva theme work to achieve these impressive outcomes.
Components of Magento 2 Hyvä Theme Architecture
The hero components of the Hyvä theme are PHP templating, Tailwind CSS, Alpine JS, and pre-built UI Components.
Alpine JS
Purpose: Adds simple, declarative javascript behavior directly to HTML
- Alpine JS removes unnecessary complexity that was earlier with Knockout JS used in default Magento front
- It is a modern Javascript framework specially designed to add interactivity to HTML with minimum code
- Eliminates the need to use Knockout or require JS making the javascript and code structure more clear
- Easily integrated smoothly with modern Hyvä structure
Tailwind CSS
Purpose: It is a utility-first CSS framework that allows building modern website frontends faster
- Tailwind CSS is a highly recommended CSS framework as it comes with a huge set of utility classes
- You do not need to write any custom CSS
- Hyvä theme uses purge CSS via Tailwind CSS for the faster UI and smooth code structure
PHP Templating
- Hyvä uses plain PHP files over.phtml – no data binding or knockout js concepts are there
- Makes the code clean and the website loads faster as knockout bindings are not there
- Uses viewmodels instead of adding logic in .phtml files
Pre built UI Components
- Hyvä supports a library of pre-built UI components that is included with every Hyvä license and designed to simplify the Magento 2 frontend
- Hyvä UI comes with a Figma file that allows you to visually design and customize the components before implementing them
- Many Hyvä UI components are specifically built for use within CMS pages and blocks, making content creation easier
The Hyvä theme represents a significant leap forward in Magento frontend development.
Its simplified architecture eliminates unnecessary complexity, resulting in cleaner code, improved performance, and faster development cycles.
By aligning with modern web standards and prioritizing user experience, Hyvä sets a new benchmark for Magento 2 stores aiming for high speed, scalability, and long-term maintainability.
Start Developing a Magento 2 Hyvä Theme
The Hyvä theme is a good choice for any merchant moving from any Magento 2 theme. Merchants have seen a 15-30% increase in conversion rates after switching to Hyvä — its lightweight structure is what makes all the difference.
Our Hyvä theme development service can help you get started using this theme. Whether you are migrating from an old theme or looking for a completely new one, we can manage it all for you.