Creating a custom theme based on Classy
Drupal 8 ships with a new base theme that is intended to demonstrate the best practice and CSS class management. The Classy theme is provided by Drupal core and is the base theme for the default frontend theme, Bartik, and the administrative theme, Seven.
Unlike the previous versions of Drupal, Drupal 8 provides two base themes: Classy and Stable as a means to jump start Drupal theming. Stable provides a more lean approach to frontend theming with fewer classes and wrapping elements. In this recipe, we will create a new theme called
mytheme that uses Classy as its base.
How to do it...
- In the
rootdirectory of your Drupal site, create a folder called
- Inside the
mythemefolder, create ...