Creating a custom theme

Previously, we looked at creating both a starter theme and a subtheme and, while each has its own benefit, we will often want to have the flexibility to develop on the fly. This means that we do not have to worry about managing a set of files already developed. This may sound contradictory to everything we have heard earlier, but taking an agile approach to theming allows for designers to create rich designs outside the boundaries of Drupal. With the introduction of Twig templates, we pretty much broke the mold on having to architect the layout of Drupal in a specific way. So, gone are the days of telling a designer that we can't implement their ideas.

As we create our custom theme, we will have the freedom to use whatever ...

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.