Docs
Themes
Themes
Overview of how Zermatt works within a theme.
Zermatt lives within all themes that have been "Zermatt-enabled". Therefore, each theme has its own Zermatt instance in which you add your custom frontend logic.
Enable Zermatt in a theme
First run:
bin/magento zermatt:install <Package/theme>
// ex: bin/magento zermatt:install Acme/defaultThis command:
- Copies the Zermatt skeleton from
Maddlen_Zermatt::view/frontend/web/zermatttoapp/design/frontend/<Package/theme>/web/zermatt - Writes the
zermatt-lock.jsonfile toapp/design/frontend/<Package/theme>/web/zermatt/zermatt-lock.json
Install npm dependencies and start dev mode
In order to develop with Zermatt, it is required to work in dev mode which will rebuild the app in real time.
cd /path/to/app/design/frontend/<Package/theme>/web/zermatt
npm install && npm run devTheme inheritance
Zermatt offers granular and efficient approach to rewrites and overloads. Please continue to Zermatt modules.