Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Block Styles

Security covered Under active development 1,606 sites

The Block Styles module allows you to add custom styles to block wrappers without needing to override the block's theme file. It provides a style selector within the block configuration form, making it easy to apply pre-defined styles or create your own for blocks.

Using the Styles API Module allows to set different styles for block wrapper theme.

This module affects only block.html.twig, and not the way content is displayed.

Classes could be added to block wrapper, even if block theme has not been overwritten.

The styles selector is shown at the end of the block configuration form.

Installation

  • Download and install Styles API Module.
  • Download and install Block Styles.
  • Enter to the block configuration form and select styles.

Included styles

  • Clean wrapper (cero marckup)
  • Bootstrsap styles on submodule (modal, dropdown, card and collapse)

For developers

New layouts can be defined using *.themes.yml with type=block. Please refer to Styles API Module for detailed information.

Drupal 8–11

Ask your assistant about Block Styles

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Jan 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
2.0.5 Stable 8–11 Feb 9, 2025
2.0.4 Stable 8–10 Jul 2, 2023
2.0.3 Stable 8–10 Jan 18, 2023