Theme Inheritance with Base Themes for Drupal 8, Drupal 9

Last updated February 5, 2020

Custom themes in Drupal must be configured to inherit settings, templates, and other assets from a parent theme. This allows theme developers to use a different set of markup as the starting point for their theme, organize various theme assets into a more maintainable structure, and more.

In this tutorial we'll:

  • Learn what base themes and subthemes are
  • Look at a few examples of template inheritance and how that works
  • Discuss some use cases for theme inheritance

By the end of this tutorial you'll know how to declare the base theme that your theme builds upon.