Bootstrap 4 theme
Features:
- Includes Bootstrap 4 library (JS and CSS)
- Includes Bootstrap 4 breakpoints
- Bootstrap controls within user interface (TBA)
-
No subtheme mode
(unless template override required) - Style guide with most of Boostrap components navigate to
http://[your site url]/themes/contrib/bootstrap4/style-guide
SASS compilation:
- SASS compilation is no longer in the theme.
- Use Bootstrap4 Tools module
Installation
Using composer
composer require drupal/bootstrap4
Subtheme
-
If you require subtheme (usually if you want to override templates), see subtheme docs.
-
You can create subtheme by running
bash bin/subtheme.sh [name] [path]
, e.g.bash bin/subtheme.sh b4subtheme ..
-
Interface subtheme creation is coming to Bootstrap4 Tools module
Development and patching
- To compile SASS run
sass scss/style.scss css/style.css
(requires SASS compiler).