Loading...
Loading...
Compare original and translation side by side
bin/magentohyva-exec-shell-cmdbin/magentohyva-exec-shell-cmdapp/design/frontendapp/codeapp/design/frontendHyva/default-cspHyva/default{Vendor}/{ThemeName}app/design/frontend/hyva-theme-listHyva/default-cspHyva/default{Vendor}/{ThemeName}vendor/hyva-themes/magento2-default-theme-cspvendor/hyva-themes/magento2-default-themeapp/design/frontend/{Vendor}/{ThemeName}Hyva/default-cspHyva/defaultapp/design/frontend/{Vendor}/{ThemeName}hyva-theme-listHyva/default-cspHyva/default{Vendor}/{ThemeName}vendor/hyva-themes/magento2-default-theme-cspvendor/hyva-themes/magento2-default-themeapp/design/frontend/{Vendor}/{ThemeName}app/design/frontend/<Vendor>/<themeName>/app/design/frontend/<Vendor>/<themeName>/
├── registration.php
├── theme.xml
├── composer.json
└── web/
└── tailwind/
└── (copied from parent theme)app/design/frontend/<Vendor>/<themeName>/app/design/frontend/<Vendor>/<themeName>/
├── registration.php
├── theme.xml
├── composer.json
└── web/
└── tailwind/
└── (copied from parent theme)<?php
declare(strict_types=1);
use Magento\Framework\Component\ComponentRegistrar;
ComponentRegistrar::register( ComponentRegistrar::THEME, 'frontend/<Vendor>/<themeName>', __DIR__);<?php
declare(strict_types=1);
use Magento\Framework\Component\ComponentRegistrar;
ComponentRegistrar::register( ComponentRegistrar::THEME, 'frontend/<Vendor>/<themeName>', __DIR__);<?xml version="1.0"?>
<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
<title>Example Store Theme</title>
<parent>Hyva/default-csp</parent>
</theme>StoreThemeStore Theme<Vendor> <Theme Name Words>Example/StoreThemeExample Store Theme<parent>Hyva/default-cspHyva/default{ParentVendor}/{ParentThemeName}Example/baseTheme<?xml version="1.0"?>
<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
<title>Example Store Theme</title>
<parent>Hyva/default-csp</parent>
</theme>StoreThemeStore Theme<Vendor> <Theme Name Words>Example/StoreThemeExample Store Theme<parent>Hyva/default-cspHyva/default{ParentVendor}/{ParentThemeName}Example/baseTheme{
"name": "<vendor-lowercase>/<package-name>",
"description": "Example Store Theme based on Hyvä",
"type": "magento2-theme",
"license": "proprietary",
"require": {
"hyva-themes/magento2-default-theme-csp": "*"
},
"autoload": {
"files": [
"registration.php"
]
}
}<ThemeName>StoreThemestore-theme-themeStoreThemestore-themeCustomStorecustom-store-thememyThememy-themerequirehyva-themes/magento2-default-theme-csphyva-themes/magento2-default-themecomposer.json{
"name": "<vendor-lowercase>/<package-name>",
"description": "Example Store Theme based on Hyvä",
"type": "magento2-theme",
"license": "proprietary",
"require": {
"hyva-themes/magento2-default-theme-csp": "*"
},
"autoload": {
"files": [
"registration.php"
]
}
}<ThemeName>StoreThemestore-theme-themeStoreThemestore-themeCustomStorecustom-store-thememyThememy-themerequirehyva-themes/magento2-default-theme-csphyva-themes/magento2-default-themecomposer.jsonnode_modulesmkdir -p app/design/frontend/<Vendor>/<ThemeName>/web
rsync -a --exclude='node_modules' <parent_theme_path>/web/tailwind app/design/frontend/<Vendor>/<ThemeName>/web/<parent_theme_path>vendor/hyva-themes/magento2-default-theme-cspvendor/hyva-themes/magento2-default-themeapp/design/frontend/{ParentVendor}/{ParentTheme}web/tailwind/hyva.config.json{
"tailwind": {
"include": [
{ "src": "vendor/hyva-themes/magento2-default-theme-csp" }
]
}
}{
"tailwind": {
"include": [
{ "src": "app/design/frontend/{ParentVendor}/{ParentTheme}" },
{ "src": "vendor/hyva-themes/magento2-default-theme-csp" }
]
}
}hyva.config.jsonnode_modulesmkdir -p app/design/frontend/<Vendor>/<ThemeName>/web
rsync -a --exclude='node_modules' <parent_theme_path>/web/tailwind app/design/frontend/<Vendor>/<ThemeName>/web/<parent_theme_path>vendor/hyva-themes/magento2-default-theme-cspvendor/hyva-themes/magento2-default-themeapp/design/frontend/{ParentVendor}/{ParentTheme}web/tailwind/hyva.config.json{
"tailwind": {
"include": [
{ "src": "vendor/hyva-themes/magento2-default-theme-csp" }
]
}
}{
"tailwind": {
"include": [
{ "src": "app/design/frontend/{ParentVendor}/{ParentTheme}" },
{ "src": "vendor/hyva-themes/magento2-default-theme-csp" }
]
}
}hyva.config.jsonhyva-compile-tailwind-cssapp/design/frontend/<Vendor>/<ThemeName>/hyva-compile-tailwind-cssapp/design/frontend/<Vendor>/<ThemeName>/bin/magento config:set design/theme/theme_id <theme_id>bin/magento setup:upgrade
bin/magento cache:flushbin/magento config:set design/theme/theme_id <theme_id>bin/magento setup:upgrade
bin/magento cache:flushcomposer require hyva-themes/magento2-default-themehyva-themes/magento2-default-theme-cspcomposer require hyva-themes/magento2-default-themehyva-themes/magento2-default-theme-cspcomposer installcomposer installweb/tailwindvendor/hyva-themes/magento2-default-theme-csp/web/tailwindweb/tailwindvendor/hyva-themes/magento2-default-theme-csp/web/tailwindnode --versionnode_modulespackage-lock.jsonnpm installpackage-lock.jsonnode --versionnode_modulespackage-lock.jsonnpm installhyva.config.jsonhyva.config.jsonhyva.config.jsonhyva.config.jsonapp/design/frontend/<Vendor>/<ThemeName>/Hyva/default-cspHyva/default{Vendor}/{ThemeName}web/tailwind/tailwind-source.cssnpm run watchnpm run buildapp/design/frontend/<Vendor>/<ThemeName>/Hyva/default-cspHyva/default{Vendor}/{ThemeName}web/tailwind/tailwind-source.cssnpm run watchnpm run build