I am creating custom theme in magento 2. Is it necessary to assign parent theme to my new custom theme.


I want to develop whole things from the scratch, that's why I don't want to include parent theme.

  • 1
    no need if you develop everything on your own, if not you suppose get basic thins like parent styles and layout from parent theme. That's why we include parent theme – Prathap Gunasekaran Mar 15 '19 at 12:15

No it is not necessary, if you do not set a parent theme you can create all your CSS from scratch. See this post for an example - Theming for Magento 2 - Starting from scratch


Parent theme is not necessary to defined it

It is not necessary to define parent theme check here
also if you do not set a parent theme you can create all your own CSS of theme becuase it is scratch
also if you want to create your parent theme in template,layout,css,extension then here available

  • What if I want to create all the thing (property, layout, template files, and styles) in my new theme. Do I need to use parent theme now? – Muhammad Bilal khan Mar 15 '19 at 12:17
  • 1
    No you don't need but that doesn't make sense, you can customise anything by inheriting parent theme instead of creating all the page layouts from the scratch @MuhammadBilalkhan – Prathap Gunasekaran Mar 15 '19 at 12:19
  • i know customiza all thing in custom theme but sometime is needed is parent theme check default reference : devdocs.magento.com/guides/v2.3/frontend-dev-guide/themes/… @MuhammadBilalkhan – Rakesh Donga Mar 15 '19 at 12:20
  • 1
    @RakeshDonga has given the same, do accept this answer because that doesn't make sense provide repeating answer for single question.Hope you understand – Prathap Gunasekaran Mar 15 '19 at 12:25
  • 1
    @PrathapGunasekaran thanks i have updated it – Rakesh Donga Mar 15 '19 at 12:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.