Skip to content

WP Packages is our new WPackagist replacement that's 17x faster and updates every 5 minutes

Sage
  • Sage page

Roots is an independent open source org, supported only by developers like you. We’ve been improving the WordPress developer experience since 2011, and your support keeps it independent.

How to Use Bootstrap with Sage

View as Markdown:

Setup Sass first

See how to use Sass before you follow this guide

Install Bootstrap

Add Bootstrap as a dependency:

$ npm install --save bootstrap @popperjs/core

Add Bootstrap to resources/css/app.scss:

@import "bootstrap/scss/bootstrap";

Bootstrap's Vite docs

See Bootstrap's Vite docs for more information.

Last updated