Drupal Bootstrap 4.x Base Theme For UNB Libraries Branding.

Installs: 37 617

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 7

Forks: 0

Open Issues: 0



dev-8.x-bootstrap-4.x 2021-08-16 15:01 UTC

This package is auto-updated.

Last update: 2021-10-08 13:46:14 UTC


Drupal 8 Theme Based on Bootstrap.

UNB Libraries Theme.


Administration theme

This theme contains various stylistic improvements to Drupal core's Seven administration theme defined in the src/scss/admin-overrides-seven.scss Sass file. These style rules are primary intended for UNB Libraries projects - should you use Seven as your project's administration theme and want to incorporate these overrides one method to do so is as follows:

  • create an admin-style.scss files inside your subtheme's src/scss folder
  • add the following import at the top of this file:
@import '../../../../../vendor/unb-libraries/unb_lib_theme/src/scss/admin-overrides-seven.scss';

This will compile (minimized) to dist/css/admin-style.css.

  • note: should you wish to add additional project-specific administration rules simply add them after this import line
  • next, define a library for the administration styles in your subtheme's SUBTHEMENAME.libraries.yml file:
  version: VERSION
      dist/css/admin-style.css: { minified: true }
  • finally, you may attach the admin library assets to an administration form in code using: $form['#attached']['library'][] = 'lib_unb_ca/admin-styling';


  • This depends on Bootstrap Barrio theme, 5.x branch:

  • The banner hours depends on the UNB Libraries > Calendar Hours > Calendar Hours Client module:

  • Currently using Bootstrap version 4.5.3 (see global-styling theme library)

    • Subthemes compiling sass should add the following require-dev package:
      "twbs/bootstrap": "~4.5.3",
  • Add Font Awesome Icons module, 2.x branch for icons used in Header/Footer:

    • https://www.drupal.org/project/fontawesome
    • load only the free icon subset, i.e. the Solid and Brand icons (else the non-free icon font may take precedence and not display)
      • this in done via the Font Awesome Settings > Partial File Configuration admin config form: /admin/config/content/fontawesome