Subthemes

One point of interest in Drupal 8 is that there is a new base theme named Classy, which both Bartik and Seven reference. This means that Bartik and Seven in reality are subthemes. So why not learn from the best, in this case, Morten Birch Heide-Jørgensen, otherwise known as "Div Killer." Morten has come through, as his nickname suggests, and created one hell of a base theme.

To become a little more intimate with this new base theme, we will create a subtheme of our own called Sassy. Since the steps involved to create and install a subtheme are similar to a starter theme, we will progress a little faster through this first part.

Adding the theme folder

Begin by navigating to our themes folder and create a new folder inside named sassy.

Get Drupal 8 Theming with Twig now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.