Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Usage Milestone: Time Field for Drupal 8+ Module time_field crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Class it up

27 sites Security covered Drupal 8–11
View on drupal.org

Classitup automatically adds CSS classes to your Drupal site based on block and page information. This helps with theming by providing more granular control over styling elements like blocks, custom blocks, and specific content types. Future plans include adding classes for views displays.

This project provides classes based on information Drupal knows about.

We will try to follow Drupal's CSS guidelines.

Currently it offers:

  • region machine names as classes on blocks
  • block type as classes on custom blocks
  • page--content-item class pages with a standalone full content item (node).
  • page--content-item--[content-type] (node bundle) class to standalone full content item (node) pages.

And plans:

  • view display machine names on views

Please make your own suggestions or requests!

Exactly what classes it provides is liable to change until a release candidate or at least a stable release is reached. Until then (and after!) feel free to mine it for examples of preprocessors you can put in your own theme.

Note that the Classy core theme does not provide any preprocessors, and adds all of its themes through templates. By contrast, this extension adds classes which will be added to the attributes core-respecting template output anyway. This reduces the need for templates that differ only in the classes they add (though we absolutely suggest templates as the answer to most of the world's problems).

Class it up is meant to be required by themes, whether custom or contrib, which will be enforceable when this core issue finally lands: #474684: Allow themes to declare dependencies on modules

See also

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Dec 2025
Latest release
8 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

Version Type Core Release date
8.x-1.2 Stable 8–11 Dec 15, 2025