A quickstart guide for Boost theme.
Unzip the theme folder and you'll see the next file structure:
dist- production files
Note: If you prefer, you can simply use the static files that are in the dist folder and bypass the gulp workflow.
Then run the following npm command to install all the theme's dependencies:
Running gulp will compile the theme, copy all required files to the dist directory and will open a browser window to
The theme uses Nunjucks as a template engine, basically to include partials (header, footer...). Gulp renders Nunjucks templates to HTML.
There are two ways to customize your theme:
- SCSS. If you use the gulp workflow to compile the scss files (recommended) then you can use the
_user-vars.scssfile to add your own variables and
_user.cssto add your own styles.
- CSS. If you use the compiled files, you can simply add a
custom.cssfile in the
assets/cssfolder with your own styles and link it to the head of your pages.
Remove unused CSS
Once your files are ready for production, you can remove all unused CSS using purgecss. To do it just run the following command:
Purgecss analyzes the HTML and Bootstrap JS files and removes unused CSS. The CSS file size will be reduced and your website performance will improve.