Documentation
Find out what's included in your Bootstrap theme and how to compile source files. Includes live examples and code snippets for every new component.
Find out what's included in your Bootstrap theme and how to compile source files. Includes live examples and code snippets for every new component.
Hey there! You’re looking at the docs for an Official Bootstrap Theme—thanks for your purchase! This theme has been lovingly crafted by Bootstrap’s founders and friends to help you build awesome projects on the web. Let’s dive in.
Each theme is designed as it’s own toolkit—a series of well designed, intuitive, and cohesive components—built on top of Bootstrap. If you’ve used Bootstrap itself, you’ll find this all super familiar, but with new aesthetics, new components, beautiful and extensive examples, and easy-to-use build tools and documentation.
Since this theme is based on Bootstrap, and includes nearly everything Bootstrap itself does, you’ll want to give the official project documentation a once over before continuing. There’s also the kitchen sink—a one-page view of all Bootstrap’s components restyled by this theme.
For everything else, including compiling and using this Bootstrap theme, read through the docs below.
Thanks, and enjoy!
Within your Bootstrap theme you’ll find the following directories and files, grouping common resources and providing both compiled and minified distribution files, as well as raw source files.
At the top level of your bootstrap theme you’ll find a directory for each major Bootstrap version that’s supported (currently both v3
and v4
). Within each directory you have all the relevant files for that version.
To view your Bootstrap Theme documentation, simply find the docs directory and open index.html in your favorite browser.
If you’re after more customization we’ve also included a custom Gulp file, which can be used to quickly re-compile a theme’s CSS and JS. You’ll need to install both Node and Gulp before using our included gulpfile.js
.
Once node is installed, run the following npm command to install Gulp.
When you’re done, make sure you’ve installed the rest of the theme’s dependencies:
Now, modify your source files and run gulp
to generate new local dist/
files automatically. Be aware that this replaces existing dist/
files, so proceed with caution.
The scss/
, js/
, and fonts/
directories contain the source code for our CSS, JS, and icon fonts (respectively). Within the scss/
and js/
directories you’ll find two subdirectories:
bootstrap/
, which contains the most recently released version of Bootstrap (v4.0.0-alpha.6).custom/
, which contains all of the custom components and overrides authored specifically for this theme.The dist/
folder includes everything above, built into single CSS and JS files that can easily be integrated into your project.
The docs/
folder includes the source code for our documentation, as well as a handful of live examples.
The remaining files not specifically mentioned above provide support for packages, license information, and development.
Leverage the included source files and gulpfile.js
to customize your Bootstrap Theme for your exact needs. Change variables, exclude components, and more.
toolkit-*.scss
is the entry point for Sass files - to build your own custom build, simply modify your local custom files or edit the includes listed here. Note: some themes also rely on a shared components.scss
file, which you can find imported in your toolkit-*.scss
.variables.scss
is home to your theme’s variables. Note that your theme’s variables
file depends on and overrides an existing Bootstrap variable file (found in /scss/bootstrap/_variables.scss
).The basic template is a guideline for how to structure your pages when building with a Bootstrap Theme. Included below are all the necessary bits for using the theme’s CSS and JS, as well as some friendly reminders.
Copy the example below into a new HTML file to get started with it.
Entypo is an awesome, high quality set of icon glyphs made by Daniel Bruce. We’ve replaced Bootstrap’s default icon font, Glyhpicons, with the complete Entypo set and Entypo social extension.
Simply use the new icon
class and an icon-{modifier}
on an inline element. See the examples below for more details.
Below are all the original and social icons from Entypo that you can choose from:
Entypo icons can be placed in just about any other element, so long as they are a separate HTML element (e.g., a <span>
). See the examples below for how to put them to use.
<button class="btn btn-secondary" type="button">
<span class="icon icon-thumbs-up"></span>
Like
</button>
<button class="btn btn-primary" type="button">
<span class="icon icon-thumbs-up"></span>
Liked!
</button>
<ul class="nav nav-pills">
<li class="nav-item active">
<a class="nav-link" href="#">
<span class="icon icon-chat"></span>
Discussions
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">
<span class="icon icon-bell"></span>
Notifications
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">
<span class="icon icon-users"></span>
Members
</a>
</li>
</ul>
Add .btn-pill
to any button to make them more rounded.
<button type="button" class="btn btn-lg btn-pill btn-primary">Primary</button>
<button type="button" class="btn btn-lg btn-pill btn-secondary">Secondary</button>
<button type="button" class="btn btn-lg btn-pill btn-success">Success</button>
<button type="button" class="btn btn-lg btn-pill btn-info">Info</button>
<button type="button" class="btn btn-lg btn-pill btn-warning">Warning</button>
<button type="button" class="btn btn-lg btn-pill btn-danger">Danger</button>
<button type="button" class="btn btn-lg btn-pill btn-link">Link</button>
<button type="button" class="btn btn-pill btn-primary">Primary</button>
<button type="button" class="btn btn-pill btn-secondary">Secondary</button>
<button type="button" class="btn btn-pill btn-success">Success</button>
<button type="button" class="btn btn-pill btn-info">Info</button>
<button type="button" class="btn btn-pill btn-warning">Warning</button>
<button type="button" class="btn btn-pill btn-danger">Danger</button>
<button type="button" class="btn btn-pill btn-link">Link</button>
<button type="button" class="btn btn-sm btn-pill btn-primary">Primary</button>
<button type="button" class="btn btn-sm btn-pill btn-secondary">Secondary</button>
<button type="button" class="btn btn-sm btn-pill btn-success">Success</button>
<button type="button" class="btn btn-sm btn-pill btn-info">Info</button>
<button type="button" class="btn btn-sm btn-pill btn-warning">Warning</button>
<button type="button" class="btn btn-sm btn-pill btn-danger">Danger</button>
<button type="button" class="btn btn-sm btn-pill btn-link">Link</button>
<button type="button" class="btn btn-xs btn-pill btn-primary">Primary</button>
<button type="button" class="btn btn-xs btn-pill btn-secondary">Default</button>
<button type="button" class="btn btn-xs btn-pill btn-success">Success</button>
<button type="button" class="btn btn-xs btn-pill btn-info">Info</button>
<button type="button" class="btn btn-xs btn-pill btn-warning">Warning</button>
<button type="button" class="btn btn-xs btn-pill btn-danger">Danger</button>
<button type="button" class="btn btn-xs btn-pill btn-link">Link</button>
Blocks are a brand new composing metaphor exclusively for use with our Marketing toolkit. Build your site up by stacking several blocks on top of each other to provide focused, attention grabbing units of content.
<div class="block text-center">
<h1 class="block-title">A basic block</h1>
<h4 class="text-muted">Use these to package stackable, image driven content.</h4>
<button class="btn btn-primary mt-1">With a simple button</button>
</div>
We have several basic block types, including an inverse block.
<div class="block block-inverse text-center">
<h1 class="block-title">An inverse block</h1>
<h4 class="text-muted">Use the inverse modifier for working over dark images.</h4>
<button class="btn btn-primary mt-1">With a simple button</button>
</div>
We’ve also made it easy to integrate embeded content for more interactive block backgrounds.
<div class="block block-inverse text-center">
<div class="block-foreground">
<h1 class="block-title">An embed block</h1>
<h4 class="text-muted">Use block-background to integrate interactive backgrounds.</h4>
<button class="btn btn-secondary btn-outline-secondary mt-1">With a simple button</button>
</div>
<div class="block-background">
<iframe frameBorder="0" src="https://a.tiles.mapbox.com/v4/jacobthornton.6681fb42/attribution.html?access_token=pk.eyJ1IjoiamFjb2J0aG9ybnRvbiIsImEiOiJlMGRmZmJlNDZkNDhlN2EzMTQ0YWFiNjhlN2RiZWY1ZCJ9.hO-UNIIplnebJYkya-8TEQ"></iframe>
</div>
</div>
Use different modifiers like block-bordered
and block-angle
to experiment with different visual treatments and flows between your blocks.
“Notice that simple inset border above. Isn't it lovely.”
Mark Otto, Huge Nerd
<div class="block text-center">
<div class="container-fluid">
<h4 class="mb-4">
Join over 900,000 designers already using Bootstrap. Get Bootstrap <strong>free</strong> forever!
</h4>
<form class="form-inline d-flex justify-content-center">
<input class="form-control mb-3" placeholder="email address">
<input class="form-control mb-3 mx-1" type="password" placeholder="Create a Password">
<button class="btn btn-primary mb-3">Get started - free forever</button>
</form>
<small class="text-muted">
By clicking "get started – free Forever!" I agree to Bootstraps
<a href="#">Terms of service</a>
</small>
</div>
</div>
<div class="block block-bordered text-center">
<div class="container-fluid">
<blockquote class="pull-quote">
<p>
“Notice that simple inset border above. Isn't it lovely.”
</p>
<cite>Mark Otto, Huge Nerd</cite>
</blockquote>
</div>
</div>
Use the block-fill-height
modifier to make your block fill a user’s screen, and then use the responsive alignment classes like block-xs-middle
or block-md-bottom
to align your content within the block.
“Started at the bottom… etc”
Drake, OVO
<div class="block block-fill-height text-center">
<div class="block-xs-bottom">
<div class="container-fluid">
<blockquote class="pull-quote">
<p>
“Started at the bottom… etc”
</p>
<cite>Drake, OVO</cite>
</blockquote>
</div>
</div>
</div>
Create culti-line, inline ribbons on your text. Useful for breaking up content and adding strong visual flourishes.
Aenean lacinia bibendum nulla sed consectetur. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Curabitur blandit tempus porttitor.
Aenean lacinia bibendum nulla sed consectetur. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Curabitur blandit tempus porttitor.
Aenean lacinia bibendum nulla sed consectetur. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Curabitur blandit tempus porttitor.
Aenean lacinia bibendum nulla sed consectetur. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Curabitur blandit tempus porttitor.
Aenean lacinia bibendum nulla sed consectetur. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Curabitur blandit tempus porttitor.
<h2 class="mt-0">
<strong class="text-ribbon text-ribbon-primary">
<span>Gucci Flip flops</span>
</strong>
</h2>
<p class="mt-4">
<span class="text-ribbon text-ribbon-primary">
<span>Aenean lacinia bibendum nulla sed consectetur. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Curabitur blandit tempus porttitor.</span>
</span>
</p>
<h2 class="mt-5">
<strong class="text-ribbon text-ribbon-success">
<span>Gucci Flip flops</span>
</strong>
</h2>
<p class="mt-4">
<span class="text-ribbon text-ribbon-success">
<span>Aenean lacinia bibendum nulla sed consectetur. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Curabitur blandit tempus porttitor.</span>
</span>
</p>
<h2 class="mt-5">
<strong class="text-ribbon text-ribbon-info">
<span>Gucci Flip flops</span>
</strong>
</h2>
<p class="mt-4">
<span class="text-ribbon text-ribbon-info">
<span>Aenean lacinia bibendum nulla sed consectetur. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Curabitur blandit tempus porttitor.</span>
</span>
</p>
<h2 class="mt-5">
<strong class="text-ribbon text-ribbon-warning">
<span>Gucci Flip flops</span>
</strong>
</h2>
<p class="mt-4">
<span class="text-ribbon text-ribbon-warning">
<span>Aenean lacinia bibendum nulla sed consectetur. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Curabitur blandit tempus porttitor.</span>
</span>
</p>
<h2 class="mt-5">
<strong class="text-ribbon text-ribbon-danger">
<span>Gucci Flip flops</span>
</strong>
</h2>
<p class="mt-4">
<span class="text-ribbon text-ribbon-danger">
<span>Aenean lacinia bibendum nulla sed consectetur. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Curabitur blandit tempus porttitor.</span>
</span>
</p>
Use the new .navbar-transparent
variation for placing navbars over backgrounds and interactive content.
<div class="py-5 px-1" style="background: url(../assets/img/kanye.jpg) top center; background-size: cover">
<nav class="navbar navbar-transparent navbar-padded navbar-toggleable-sm">
<button
class="navbar-toggler navbar-toggler-right hidden-md-up"
type="button"
data-toggle="collapse"
data-target="#navbarResponsive"
aria-controls="navbarResponsive"
aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<a class="navbar-brand" href="#">
<h4 class="text-uppercase my-0">Project Name</h4>
</a>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="nav navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="#">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Contact</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</nav>
</div>
The bordered nav builds on Bootstrap’s .nav
base styles with a new, bolder variation to nav links.
<ul class="nav nav-bordered">
<li class="nav-item">
<a class="nav-link active" href="#">Bold</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Minimal</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Components</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Docs</a>
</li>
</ul>
Bordered nav links can also be stacked:
<ul class="nav nav-bordered nav-stacked flex-column">
<li class="nav-header">Examples</li>
<li class="nav-item">
<a class="nav-link active" href="#">Bold</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Minimal</a>
</li>
<li class="nav-header">Sections</li>
<li class="nav-item">
<a class="nav-link" href="#">Grid</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Pricing</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">About</a>
</li>
</ul>
The light carousel is a modified version of Bootstrap’s default carousel, using lighter styles on all carousel controls.
<div id="carousel-example-generic-2" class="carousel carousel-light slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#carousel-example-generic-2" data-slide-to="0" class="active"></li>
<li data-target="#carousel-example-generic-2" data-slide-to="1"></li>
<li data-target="#carousel-example-generic-2" data-slide-to="2"></li>
</ol>
<div class="carousel-inner" role="listbox">
<div class="carousel-item active">
<img class="d-block img-fluid" src="http://placehold.it/1140x500/fff/333" alt="First slide">
</div>
<div class="carousel-item">
<img class="d-block img-fluid" src="http://placehold.it/1140x500/fff/333" alt="Second slide">
</div>
<div class="carousel-item">
<img class="d-block img-fluid" src="http://placehold.it/1140x500/fff/333" alt="Third slide">
</div>
</div>
<a class="carousel-control-prev" href="#carousel-example-generic-2" role="button" data-slide="prev">
<span class="icon icon-chevron-thin-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carousel-example-generic-2" role="button" data-slide="next">
<span class="icon icon-chevron-thin-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
Use callouts to quickly draw attention to specific actions with an extended explanation.
<div class="callout">
<div class="callout-content">
<strong>Explore this thing.</strong> Learn more about this thing.
</div>
<div class="callout-secondary">
<button class="btn btn-primary">Get started</button>
</div>
</div>
Featured lists are common marketing components used for associating visual icons with a list of topics.
Use dropbox to save things in the "cloud" because throwing things away is stressful and this way you don't have to.
Use github to share things on the internet then change them. Make things better. Free software? But not as in beer.
Use Medium to write things down and sound smart. Also when you write, your writings looks pretty and that is cool.
Use twitter to share 140 characters worth of anything you want. Pictures, videos, etc. It doesn't really matter.
<div class="container-fluid">
<div class="row my-4">
<div class="col-sm-6">
<ul class="featured-list featured-list-bordered">
<li class="mb-5">
<div class="featured-list-icon">
<span class="icon icon-dropbox"></span>
</div>
<h3>Save things</h3>
<p>
Use dropbox to save things in the "cloud" because throwing things away is stressful and this way you don't have to.
</p>
</li>
<li>
<div class="featured-list-icon">
<span class="icon icon-github"></span>
</div>
<h3>Fork things</h3>
<p>
Use github to share things on the internet then change them. Make things better. Free software? But not as in beer.
</p>
</li>
</ul>
</div>
<div class="col-sm-6">
<ul class="featured-list featured-list-bordered">
<li class="mb-5">
<div class="featured-list-icon">
<span class="icon icon-medium"></span>
</div>
<h3>Write things</h3>
<p>
Use Medium to write things down and sound smart. Also when you write, your writings looks pretty and that is cool.
</p>
</li>
<li>
<div class="featured-list-icon">
<span class="icon icon-twitter"></span>
</div>
<h3>Tweet things</h3>
<p>
Use twitter to share 140 characters worth of anything you want. Pictures, videos, etc. It doesn't really matter.
</p>
</li>
</ul>
</div>
</div>
</div>
Transform normal blockquotes into stylized pull quotes.
“They need to stop sleeping on me and get some understanding about this here game I spit!”
Mark Otto, Huge Nerd
<blockquote class="pull-quote">
<img class="rounded-circle" src="../assets/img/avatar-mdo.png">
<p>
“They need to stop sleeping on me and get some understanding about this here game I spit!”
</p>
<cite>Mark Otto, Huge Nerd</cite>
</blockquote>
Use an icon list to place custom icons next to a list of items.
<ul class="iconlist">
<li>
<span class="icon icon-check"></span>
Single
</li>
<li>
<span class="icon icon-check"></span>
Taken
</li>
<li class="active">
<span class="icon icon-check"></span>
Pokémon Master
</li>
</ul>
Use stat cards to easily display large numbers, great for any kind of simple metrics and dashboard content.
<div class="statcard p-3">
<h3 class="statcard-number">12,938</h3>
<span class="statcard-desc">Page views</span>
</div>
<div class="statcard p-3 text-xs-center">
<h3 class="statcard-number">758</h3>
<span class="statcard-desc">Downloads</span>
</div>
<div class="statcard p-3 text-xs-right">
<h3 class="statcard-number">1,293</h3>
<span class="statcard-desc">Sign-ups</span>
</div>
With optional carets:
<div class="statcard p-3">
<h3 class="statcard-number">
12,938
<small class="delta-indicator delta-positive">5%</small>
</h3>
<span class="statcard-desc">Page views</span>
</div>
<div class="statcard p-3">
<h3 class="statcard-number">
758
<small class="delta-indicator delta-negative">1.3%</small>
</h3>
<span class="statcard-desc">Downloads</span>
</div>
With background variations:
<div class="statcard statcard-primary p-4 mb-2">
<h3 class="statcard-number">
12,938
<small class="delta-indicator delta-positive">5%</small>
</h3>
<span class="statcard-desc">Page views</span>
</div>
<div class="statcard statcard-success p-4 mb-2">
<h3 class="statcard-number">
758
<small class="delta-indicator delta-negative">1.3%</small>
</h3>
<span class="statcard-desc">Downloads</span>
</div>
<div class="statcard statcard-info p-4 mb-2">
<h3 class="statcard-number">
758
<small class="delta-indicator delta-negative">1.3%</small>
</h3>
<span class="statcard-desc">Downloads</span>
</div>
<div class="statcard statcard-danger p-4 mb-2">
<h3 class="statcard-number">
1,293
<small class="delta-indicator delta-positive">6.75%</small>
</h3>
<span class="statcard-desc">Sign-ups</span>
</div>
<div class="statcard statcard-warning p-4 mb-2">
<h3 class="statcard-number">
1,293
<small class="delta-indicator delta-positive">6.75%</small>
</h3>
<span class="statcard-desc">Sign-ups</span>
</div>
And use the grid system to size and align them:
<div class="row">
<div class="col-sm-6">
<div class="statcard statcard-primary p-4">
<h3 class="statcard-number">
12,938
<small class="delta-indicator delta-positive">5%</small>
</h3>
<span class="statcard-desc">Page views</span>
</div>
</div>
<div class="col-sm-6">
<div class="statcard statcard-success p-4">
<h3 class="statcard-number">
758
<small class="delta-indicator delta-negative">1.3%</small>
</h3>
<span class="statcard-desc">Downloads</span>
</div>
</div>
</div>
The zoom plugin provides simple image zoom functionality. Add a data-action="zoom"
attribute to any image you want to make zoomable. Zoomed images can be closed by scroll, esc
, or click. Use the meta key to open raw element in new tab.
<img data-action="zoom" style="width: 150px;" src="../assets/img/avatar-mdo.png">
Enter is a brand new plugin built to transition elements into view on scroll and offer subtle visual flourishes. Simply add a data-transition="entrance"
attribute and a transform
style to any element that you’d like to enter in when a user scrolls the element into view.
cubic-bezier(.2,.7,.5,1)
,<div style="overflow: hidden">
<div data-transition="entrance" style="transform: translateY(50px)">
<p>
Etiam porta sem malesuada magna mollis euismod. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
</p>
<p>
Donec sed odio dui. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Curabitur blandit tempus porttitor. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.
</p>
</div>
</div>
Use the image grid plugin to quickly layout multi sized images in a grid. For the image grid to work properly, it needs to get the raw image sizes (either from a data attribute, like data-width
and data-height
or you need to wait for image load before calling .imageGrid
).
$('.myGrid').imageGrid()
<div data-grid="images">
<img data-width="350" data-height="300" src="http://placehold.it/350x300/EEE04A/ffffff">
<img data-width="420" data-height="320" src="http://placehold.it/420x320/5cb85c/ffffff">
<img data-width="320" data-height="380" src="http://placehold.it/320x380/5bc0de/ffffff">
<img data-width="472" data-height="500" src="http://placehold.it/472x500/f0ad4e/ffffff">
<img data-width="540" data-height="360" src="http://placehold.it/540x360/FF3167/ffffff">
</div>
Use the stage plugin to reveal a hidden “shelf” of content, like some common offscreen navigation. Stage will slide in your hidden content—from the left (default) or right—and shift your page contents.
Add data-toggle="stage"
and a data-target
to any clickable element that you want to trigger a stage transition. When sliding in from the right, use a negative distance like data-distance="-250"
.
cubic-bezier(.2,.7,.5,1)
#sidebar
- hidden elements visibility will be toggle’d on open/close of the stage. This is done for performance reasons in chrome.Stage shelves—the hidden content areas—can house just about any content, but you’ll likely have to tweak some styles depending on what you place within them.
Be sure to match any data-distance
values with the CSS-based width
on the .stage-shelf
.
For an interactive demo, refer to the Menu
button at the top of this page. The example below shows the minimal required markup.
For a right-aligned stage shelf and button, the minimal required markup looks like this: