Building the CompStore theme
As you noted in the previous chapter, Magento can store different themes inside the same vendor scope. The proposal project called CompStore will be a template of the Packt vendor. This is the same vendor created in the previous chapter.
First of all, it is important to build the theme directory in the Packt
vendor directory (<Magento root directory>/app/design/frontend/Packt/compstore
). Create this folder as the following image suggests:
The etc
directory usually handles the XML configuration of some components. The Magento_Theme
directory will override the native Magento_Theme
module by adding new functionalities. The media
directory will store the preview image of the CompStore theme. Meanwhile, the web
directory would have store CSS and image files by now.
The Compstore theme will have Luma as the parent theme. This example shows you the power of the abstraction used in Magento theme projects. Create the theme.xml
file in the Packt/compstore
directory...