Magento – Best way to create new Magento 2 theme based on Luma, which parent theme

luma-thememagento-2.0magento-2.1magento2theme

I am having a theme made for Magento 2 and the developer wishes to use Luma as the parent theme to keep the styling like Luma for all elements not changed in our design.

I also plan on regularly updating Magento 2 to latest versions as new bugs are fixed and wish to keep upgrade issues to a minimum.

Previously I read from the Magento team that Luma should not be used as a parent theme and only use Magento Blank, but now I see they say it is ok.

Would it be better to:

1) Use Luma as parent theme and create child theme for all our changes?

or…

2) Clone the Luma theme to our new child theme (use Magento Blank as parent) and make all changes to our new child theme?

Best Answer

Hello as per my experience. We're using Magento Blank as our parent theme.

We're using porto theme for magento 2. and this theme's parent is Magento Blank.

Here's a part code of the porto theme.xml

<parent>Magento/blank</parent>
<media>
    <preview_image>media/preview.png</preview_image>
</media>

I hope this helps you in choosing what to use as parent. but also you can use Luma as your parent theme. It's up to you.

Related Topic