1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00
twbs--bootstrap/docs/getting-started/download.md

3.3 KiB

layout title group
page Download getting-started

Bootstrap is available for download via ZIP file in two flavors: precompiled CSS and Javascript, and the complete source code with documentation.

Contents

  • Will be replaced with the ToC, excluding the "Contents" header {:toc}

Custom builds

Need only a part of Bootstrap's CSS or JS? Use one of the custom builds to snag just what you need.

Reboot

Includes variables/mixins, Normalize, and Reboot. No JavaScript.

Download

Grid only

Includes variables/mixins and our grid system. No JavaScript.

Download

Flexbox

All of Bootstrap, with flexbox support enabled and lower browser support.

Download

Precompiled

Compiled and minified CSS and JavaScript. No docs or original source files are included.

Download Bootstrap

Download source and docs

Source Sass, JavaScript, and documentation. Requires a Sass compiler and some setup.

Download source

Package managers

Bower

You can also install and manage Bootstrap's Sass, CSS, and JavaScript using Bower.

{% highlight bash %}$ bower install bootstrap{% endhighlight %}

npm

Bootstrap is available as an npm package. Install it into your Node powered apps with:

{% highlight bash %}$ npm install bootstrap{% endhighlight %}

require('bootstrap') will load all of Bootstrap's jQuery plugins onto the jQuery object. The bootstrap module itself does not export anything. You can manually load Bootstrap's jQuery plugins individually by loading the /js/*.js files under the package's top-level directory.

Bootstrap's package.json contains some additional metadata under the following keys:

  • less - path to Bootstrap's main Less source file
  • style - path to Bootstrap's non-minified CSS that's been precompiled using the default settings (no customization)

Meteor

{% highlight bash %} $ meteor add twbs:bootstrap {% endhighlight %}

Composer

You can also install and manage Bootstrap's Less, CSS, JavaScript, and fonts using Composer:

{% highlight bash %} $ composer require twbs/bootstrap {% endhighlight %}

Autoprefixer required

Bootstrap uses Autoprefixer to deal with CSS vendor prefixes. If you're compiling Bootstrap from its source Sass and not using our Gruntfile, you'll need to integrate Autoprefixer into your build process yourself. If you're using precompiled Bootstrap or using our Gruntfile, you don't need to worry about this as Autoprefixer is already integrated into our Gruntfile.