Starter themes
Whenever we begin developing in Drupal, it is preferable to have a collection of commonly used functions and libraries that we can reuse. Being able to have a consistent starting point when creating multiple themes means that we don't have to rethink much from design to design. This concept of a starter theme makes this possible, and we will walk through the steps involved in creating one.
Before we begin, take a moment to browse the Chapter04/start
folder and use the drupal8.sql
file to restore our current Drupal instance. This file will add additional content and configuration needed while creating a starter theme. Once the restore is complete, our homepage should look like the following image:
This is a pretty bland-looking homepage with no real styling or layout. So, one thing to keep in mind when first creating a starter theme is how do we want our content to look? Do we want our starter theme to include another CSS framework or do we want to create our own from...