An optimized starter template for Bootstrap 5.3 and Sass (SCSS). Composer (PHP)
is used as dependency manager for Bootstrap. A Sass compiler is not included, I
recommend Dart Sass, then you can
use both sass_watch.sh
and sass_compress.sh
shell scripts.
Online demo here
- Tested on different desktop browsers and on Google Android and Apple iOS devices
- Optimized for accesibility (page readers)
- Accessible via keyboard: use "ESC" to open the navigation, "TAB" to switch between sections, "ENTER" for action
- Optimized for fast loading
- PageSpeed Insights results: mobile 94%, desktop 99%
- Basic setup for switching between light/dark mode included (new approach since BS 5.3)
Click the "Use this template" button on the GitHub page to create your own copy directly on GitHub.
Be sure you have Git and Composer installed. Run:
git clone https://github.com/Amarok24/template_bootstrap5_sass_php.git
Then enter the automatically created directory and run:
composer install
to install all dependencies (Bootstrap).
There is also an older version of this project at GitHub which uses Bootstrap 5.1 and NPM as package manager.