Drupal 10 introduces powerful theming capabilities with Twig, making it easier to create beautiful, functional themes. One of the standout base themes in Drupal 10 is Olivero, the default theme designed with accessibility and responsiveness in mind. But what if you want to create your own unique theme while leveraging the features of Olivero? Enter Acesoftech—a custom theme that extends Olivero’s foundation to provide flexibility and customization.
This tutorial walks you through creating a new Drupal theme, named Acesoftech, that uses Olivero as the base theme. Extending Olivero allows you to inherit its layout, templates, and accessibility features, giving you a robust starting point. You’ll learn how to configure your theme, override templates, and add custom CSS/JavaScript for a personalized design.
By the end of this tutorial, you’ll have a fully functional custom theme ready to take your Drupal site to the next level. Whether you’re a beginner or an experienced Drupal developer, this step-by-step guide will help you harness the power of Drupal’s theming system efficiently.
Let’s get started!
1. Set Up the Acesoftech Theme
Create a new directory in the themes folder of your Drupal installation:
custom/
acesoftech/
acesoftech.info.yml
acesoftech.libraries.yml
css/
style.css
js/
script.js
