Install

Works with Drupal: ^10.5 || ^11.3

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 503.65 KB
MD5: ea639db97dbffd5c290b0efe4fb5b310
SHA-1: 11c5135a6415e8fa691b4130e3257f6616d1573a
SHA-256: 7fdee95bd3176b685649d3c119de500e6fb664886e2454c726a19181c16b7cb4
Download zip 979.88 KB
MD5: 6934de21a37d6e30022c28837bf87c9f
SHA-1: 233459418f173d3993dbe8cdb6e1e8a9c34b9a70
SHA-256: 549334597143740b13ff75c5743e10d6e1c12a700403f390b2c93e5c37743212

Release notes

With this release, the theme evolves once again to stay aligned with the latest ecosystem updates. The Bootstrap Italia library has been upgraded to v2.17.3, bringing refinements, new icons, and style improvements. At the same time, the project now adopts Node.js 22, the current LTS version, ensuring long-term stability and compatibility with modern toolchains.

This version introduces an important breaking change in the way libraries are declared in your sub-theme: the previous theme_library_info_build() hook has been replaced by theme_library_info_alter(). Although the migration is straightforward, it is mandatory to keep your sub-theme fully functional with Drupal >= 11.1.x.

For those relying on vanilla libraries, the update simply requires replacing the distributed assets with the new version. For projects using custom builds with webpack, additional adjustments are required in SCSS files, configuration, and the webpack.common.js entry point. Deprecated files have been removed or merged, helping simplify and streamline the theme structure.

⚠️ Breaking changes!!!

Edit your <sub-theme>.theme file (e.g. italiagov.theme) and change this:

/**
 * Implements theme_library_info_build().
 */
function italiagov_library_info_build(): array {
  return Libraries::setLibraries();
}

with this:

/**
 * @file
 * Theme file for Bootstrap Italia.
 */

use Drupal\bootstrap_italia\Helper\Libraries;

/**
 * Implements hook_library_info_alter().
 *
 * @phpstan-param array<string, mixed> $libraries
 *   Libraries array.
 */
function italiagov_library_info_alter(array &$libraries): void {
  if (class_exists(Libraries::class)) {
    Libraries::setLibraries($libraries);
  }
}

Update libraries

Vanilla libraries

If you use vanilla libraries, download bootstrap-italia v2.17.3 and update <your-sub-theme>/dist folder.

Custom build

If you use custom libraries built with webpack, do:

$ npx npm-check-updates -u
$ npm install bootstrap-italia@2.17.3 --save-exact
$ npm update

Using as reference the files contained in /var/starter_kits/italiagov/... and update /themes/custom/<your-sub-theme>

  • add:
    • src/scss/overrides/_carousel.scss
  • update:
    • src/scss/_bootstrap-italia.scss
    • src/scss/_bootstrap-italia_ckeditor5.scss
    • src/scss/ckeditor5.scss
    • src/scss/theme.scss
    • webpack.common.js (line 7th)
    • .nvmmrc
  • remove:
    • src/scss/_bootstrap.scss
    • src/scss/_bootstrap_ckeditor5.scss

All changes

  • Issue #3501035: Drupal 11.1.x breaks' theme
  • Issue #3530966 by scalas89: Error when adding a block with lazy_builder
  • Issue #3507049 by dhruv.mittal, arturopanetta, gbonline, divyansh.gupta: The "file_validate_extensions" plugin does not exist
  • fix: #3540683 TypeError breaks the theme with mini paginator
  • feat: add new icons
  • feat: refactoring styles
  • feat: up to boostrap-italia 2.17.3
  • fix: install script
  • fix(a11y): main navigation
  • fix(modules): deps in paragraph module
  • fix: #3540683 TypeError breaks the theme with mini paginator
  • fix: improve a11y in follow us component
  • fix: typo in form element
  • a11y: fix breadcrumb separator aria-hidden attribute
  • feat: compliance phpstan level 8 and code standards

Summary 2.16.0

The version 2.16, even though it was not released, is fully incorporated
into version 2.17. This means that all the changes, fixes, and new features
planned for 2.16 are available in 2.17.

Summary 2.15.0

The version 2.15, even though it was not released, is fully incorporated
into version 2.17. This means that all the changes, fixes, and new features
planned for 2.15 are available in 2.17.

Summary 2.14.0

The version 2.14, even though it was not released, is fully incorporated
into version 2.17. This means that all the changes, fixes, and new features
planned for 2.14 are available in 2.17.

Summary 2.13.0

The version 2.13, even though it was not released, is fully incorporated
into version 2.17. This means that all the changes, fixes, and new features
planned for 2.13 are available in 2.17.

Created by: arturopanetta
Created on: 6 Feb 2026 at 14:35 UTC
Last updated: 6 Feb 2026 at 14:49 UTC
Bug fixes
New features

Other releases