Core classes

by Gisle Hannemyr

This chapter describes the most interesting CSS classes that comes with Drupal core and how to reuse them.

Table of contents

Introduction

When you create a theme for Drupal 9, a recommended practice is to subtheme the core Classy theme, so you get common CSS classes and usual markup for a Drupal site. This means the Classy theme is used in the runtime as part of your theme.

themeinheritance.png

The Classy core theem comes with a lot of CSS classes that can be reused.

tipInstead of building on core, one may use Bootstrap5 as the base theme.

jQuery UI

The Drupal 8/9 core comes with jQuery UI. This is a set of user interface interactions, effects, widgets, classes and themes built on top of the jQuery JavaScript Library.

Website: jQueryUI.com.

Final word

[TBA]


Last update: 2021-04-15 [gh].