Magento – the Magento Luma theme files located

cssluma-themetheme

Where are the Magento Luma theme files located?

Been looking around for them for the past hour and just can't find them. Although the theme is being applied to my store locally, I'm not seeing where the theme files are located at, at all. Can't find any css/scss/less files, js, etc etc. in regards to this theme.

What I'd like to do is copy Luma to my custom theme, then customize it from there. Better to start from something, rather than nothing, is how I see it.

If I enable my custom theme right now, it looks like this: https://i.imgur.com/MyQviW4.png

My theme.xml is:

<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
    <title>pilot-shop</title>
    <parent>Magento/Luma</parent>
    <media>
        <preview_image>media/theme-image.jpg</preview_image>
    </media>
</theme>

My registration.php file is:

<?php
/**
 * Copyright © 2015 Magento. All rights reserved.
 * See COPYING.txt for license details.
 */
\Magento\Framework\Component\ComponentRegistrar::register(
    \Magento\Framework\Component\ComponentRegistrar::THEME,
    'frontend/Sportys/pilot-shop',
    __DIR__
);

Thank you.

Best Answer

The files that make up the theme are located in vender/magento/theme-frontend-luma.

For customization, you don't have to copy over any file other then the ones you want to change. By creating a child theme with Luma as the parent, you will already have all those file using Magento's inheritance system.

Just note that as you do overrides, you have to follow Magento's naming convention, not the actual file paths. When you look at the Luma theme, you will see how they are doing this, just follow the same naming convention in your theme.

So say you want to customize the catalog xml layout file. The file lives in the Luma theme here:

vendor/magento/theme-frontend-luma/Magento_Catalog/layout/catalog_product_view.xml

For you, that same file will live in:

app/design/frontend/{{vendor_namespace}}/{{theme}}/Magento_Catalog/layout/catalog_product_view.xml

Related Topic