Skip to content
Snippets Groups Projects
Forked from project / mercury_editor
Source project has a limited visibility.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.

UI Suite Bootstrap

A site-builder friendly Bootstrap theme for Drupal, using the UI Suite approach.

Use Bootstrap directly from Drupal backoffice (layout builder, manage display, views, blocks...).

See the docs folder for more detailed documentation on:

Requirements

This theme requires the following modules:

This theme requires the Bootstrap library to be placed in the libraries folder.

Install Bootstrap library manually

You can download the library on its GitHub page.

Install Bootstrap library with Composer

With Asset Packagist

If you are using the website Asset Packagist, the composer.json can be like:

{
    "require": {
        "composer/installers": "2.*",
        "oomphinc/composer-installers-extender": "2.*",
        "npm-asset/bootstrap": "5.3.3"
    },
    "repositories": {
        "asset-packagist": {
            "type": "composer",
            "url": "https://asset-packagist.org"
        }
    },
    "extra": {
        "installer-paths": {
            "app/libraries/{$name}": [
                "type:drupal-library",
                "type:bower-asset",
                "type:npm-asset"
            ]
        },
        "installer-types": [
            "bower-asset",
            "npm-asset"
        ]
    }
}

This version of Bootstrap will only contain compiled CSS/JS and SASS files.

With a package repository

You can declare a custom package repository, Example:

{
    "require": {
        "asset/bootstrap": "5.3.3",
        "composer/installers": "2.*"
    },
    "repositories": {
        "asset-bootstrap": {
            "type": "package",
            "package": {
                "name": "asset/bootstrap",
                "version": "5.3.3",
                "type": "drupal-library",
                "extra": {
                    "installer-name": "bootstrap"
                },
                "dist": {
                    "type": "zip",
                    "url": "https://api.github.com/repos/twbs/bootstrap/zipball/6e1f75f420f68e1d52733b8e407fc7c3766c9dba",
                    "reference": "6e1f75f420f68e1d52733b8e407fc7c3766c9dba"
                }
            }
        }
    },
    "extra": {
        "installer-paths": {
            "app/libraries/{$name}": [
                "type:drupal-library"
            ]
        }
    }
}

This version will contain compiled CSS/JS and SASS files as well as all the files used on for the development of Bootstrap.

Installation

Install as you would normally install a contributed Drupal theme. For further information, see Installing Drupal Themes.

Configuration

The theme has no menu or modifiable settings on its own.

Configuration is provided by the UI Suite ecosystem modules.

Maintainers

Current maintainers:

Supporting organizations: