Creating a simple theme
Now that we have reviewed the basics of how a theme is installed and configured, there is no better time than the present to create our own simple theme. We will begin by creating a theme named Twiggy that we will use to work with exploring how Twig and the theme system works in Drupal 8.
Step one - creating a new folder
Create a new folder under our themes folder called twiggy
.
Step two - create an info file
Create a new file named twiggy.info.yml
within our new theme
folder, and add the following configuration information to the file:
name: Twiggy type: theme description: 'A simple theme' core: 8.x base theme: classy libraries: - twiggy/global regions: header: Header primary_menu: 'Primary menu' secondary_menu: 'Secondary menu' breadcrumb: Breadcrumb help: Help highlighted: Highlighted content: Content sidebar_first: 'Left sidebar' sidebar_second: 'Right sidebar' footer: Footer page_top: 'Page top' page_bottom: 'Page...