Reader small image

You're reading from  Modernizing Drupal 10 Theme Development

Product typeBook
Published inAug 2023
PublisherPackt
ISBN-139781803238098
Edition1st Edition
Concepts
Right arrow
Author (1)
Luca Lusso
Luca Lusso
author image
Luca Lusso

Luca Lusso is a Drupal developer with more than 15 years experience, he started with Drupal 5 and PHP 5 in an era where deployments with FTP were still a thing. Since then, he worked as a consultant and contributed to build some of the biggest Drupal websites in Italy. Luca is also a teacher and he has taught Drupal to a lot of different teams, from universities to big system integrators. Luca is an open source lover and Drupal contributor, he maintains some popular modules like WebProfiler and Monolog. He's also a speaker in conferences like DrupalCon Europe and Drupal Developer Days. Lately, he has shifted his interest towards frontend performances. Luca holds a master's degree in Computer Science and he's an Acquia certified developer.
Read more about Luca Lusso

Right arrow

Using a starterkit

Until Drupal 9, the recommended way to create a new custom theme was to extend from a core theme called Classy. The Classy theme contained a copy of all the templates from Drupal core with markup enriched by some useful classes. So, nearly every custom theme out in the wild is a sub-theme of Classy. This has caused some issues with the evolution of Drupal, because Classy needed to stay backward compatible with its first version (which came out with Drupal 8).

Classy has been deprecated and removed from Drupal 10 as a new way of creating custom themes has emerged.

Drupal 10 has a new theme generator command that can be used to create a custom theme from a starterkit. Instead of sub-theming Classy, you can use this command to generate your new theme as a copy of some starterkit. Basically, instead of extending a base theme, you rather copy all the assets of that theme to a new one, completely owned by you. Core provides a default starterkit with markup similar...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Modernizing Drupal 10 Theme Development
Published in: Aug 2023Publisher: PacktISBN-13: 9781803238098

Author (1)

author image
Luca Lusso

Luca Lusso is a Drupal developer with more than 15 years experience, he started with Drupal 5 and PHP 5 in an era where deployments with FTP were still a thing. Since then, he worked as a consultant and contributed to build some of the biggest Drupal websites in Italy. Luca is also a teacher and he has taught Drupal to a lot of different teams, from universities to big system integrators. Luca is an open source lover and Drupal contributor, he maintains some popular modules like WebProfiler and Monolog. He's also a speaker in conferences like DrupalCon Europe and Drupal Developer Days. Lately, he has shifted his interest towards frontend performances. Luca holds a master's degree in Computer Science and he's an Acquia certified developer.
Read more about Luca Lusso