Magento 2.0 theme structure
Magento 2.0 has a new approach toward managing its themes. Generally, the Magento 2.0 themes are located in the app/design/frontend/<Vendor>/
directory. This location differs according to the built-in themes, such as the
Luma theme, which is located in vendor/magento/theme-frontend-luma
.
The different themes are stored in separate directories, as in the following screenshot:
Each vendor can have one or more themes attached to it. So, you can develop different themes inside the same vendor.
The theme structure of Magento 2.0 is illustrated as follows:
How the Magento theme structure works is quite simple to understand: each <Vendor>_<Module>
directory corresponds to a specific module or functionality of your theme. For example, Magento_Customer
has specific .css
and .html
files to handle the Customer
module of the Magento
vendor. Magento handles a significant number of modules. So, I strongly suggest that you navigate to the vendor/magento/theme...