0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2026-11-16 06:58:43 +00:00
The most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web. https://getbootstrap.com
  • MDX 28.1%
  • JavaScript 27.4%
  • Astro 11%
  • CSS 10.8%
  • SCSS 9.5%
  • Other 13.1%
Find a file
Mark Otto 69be1e0966 docs: center flexbox example content on the cross axis
Add `align-items: center` to `.bd-example-content` so examples that turn the
wrapper into a flexbox (`d-flex`, `vstack`, `hstack`) center their items
horizontally, instead of sitting left in the tall min-height frame. Exclude
grid wrappers so grid items keep stretching to equal heights.
History 2026-08-20 13:43:33 -07:00
.github Replace Karma with Vitest and finish the Rollup removal (#42764) 2026-07-28 14:44:00 -07:00
.vscode Add VSCode Extensions & Settings Configs (#41498) 2025-05-29 12:06:36 -07:00
build Replace Karma with Vitest and finish the Rollup removal (#42764) 2026-07-28 14:44:00 -07:00
dist Add color-scheme utilities so one embed can opt out of dark mode (#42807) 2026-08-07 20:33:58 -07:00
js Finish the CSS-first transition model (#42816) 2026-08-11 11:06:32 -07:00
nuget Bump copyright and example dates from 2025 to 2026 2026-02-15 21:05:42 -10:00
scss Add :focus-within styles to .form-control (#42829) 2026-08-12 08:15:18 -07:00
site docs: center flexbox example content on the cross axis 2026-08-20 13:43:33 -07:00
skills Make nav overflow a wrapper around the nav (#42814) 2026-08-10 22:07:45 -07:00
.browserslistrc Replace Karma with Vitest and finish the Rollup removal (#42764) 2026-07-28 14:44:00 -07:00
.bundlewatch.config.json Finish the CSS-first transition model (#42816) 2026-08-11 11:06:32 -07:00
.cspell.json chore(cspell): allow longhands 2026-08-11 21:52:00 -07:00
.editorconfig Trim trailing whitespace from markdown files (#29460) 2019-10-02 22:48:15 +03:00
.gitattributes Update .gitattributes (#30934) 2020-06-12 11:23:44 +03:00
.gitignore Stop tracking the accidental node_modules symlink 2026-08-11 19:32:45 -07:00
.markdownlint.json v6: Add sub-groups to Utilities docs (#41758) 2026-01-08 20:06:23 -08:00
.ncurc.json Replace Karma with Vitest and finish the Rollup removal (#42764) 2026-07-28 14:44:00 -07:00
.nvmrc Bump Node in .nvmrc from 24.17.0 to 24.18.0 2026-06-25 19:55:25 +02:00
.prettierignore Docs: migration from Hugo to Astro (#41251) 2025-04-15 18:37:47 +02:00
.stylelintignore Docs: migration from Hugo to Astro (#41251) 2025-04-15 18:37:47 +02:00
AGENTS.md yap less 2026-08-10 20:54:35 -07:00
CLAUDE.md Add CLAUDE.md (#42160) 2026-06-28 13:59:52 -07:00
CODE_OF_CONDUCT.md Docs: migration from Hugo to Astro (#41251) 2025-04-15 18:37:47 +02:00
composer.json Remove "extra" section from composer.json (#29420) 2019-10-02 22:10:31 +03:00
config.yml v6: Add Pagefind with custom components (#42369) 2026-04-30 17:02:17 -07:00
eslint.config.js Add llms.txt files, an AI docs page, and agent skills (#42770) 2026-07-28 15:11:42 -07:00
LICENSE Bump copyright and example dates from 2025 to 2026 2026-02-15 21:05:42 -10:00
package-lock.json Replace Karma with Vitest and finish the Rollup removal (#42764) 2026-07-28 14:44:00 -07:00
package.js Docs: switch to /6.0/ and mention 6.0.0-alpha1 version 2026-02-14 15:49:51 -10:00
package.json Replace Karma with Vitest and finish the Rollup removal (#42764) 2026-07-28 14:44:00 -07:00
pagefind.yml v6: Add Pagefind with custom components (#42369) 2026-04-30 17:02:17 -07:00
README.md Replace Karma with Vitest and finish the Rollup removal (#42764) 2026-07-28 14:44:00 -07:00
SECURITY.md Improve Security Policy score (#42481) 2026-06-08 06:33:51 +02:00
stylelint.config.mjs Use modern :not() syntax (#42268) 2026-04-03 22:17:08 -07:00
tsconfig.json Replace Karma with Vitest and finish the Rollup removal (#42764) 2026-07-28 14:44:00 -07:00

Bootstrap logo

Bootstrap

Sleek, intuitive, and powerful front-end framework for faster and easier web development.
Explore Bootstrap docs »

Report bug · Request feature · Blog

Bootstrap 6

Our default branch is for development of our Bootstrap 6 release. Head to the v5-dev branch to view the readme, documentation, and source code for Bootstrap 5.

Table of contents

Quick start

Several quick start options are available:

  • Download the latest release
  • Clone the repo: git clone https://github.com/twbs/bootstrap.git
  • Install with npm: npm install bootstrap@6.0.0-alpha1
  • Install with yarn: yarn add bootstrap@6.0.0-alpha1
  • Install with Bun: bun add bootstrap@6.0.0-alpha1
  • Install with Composer: composer require twbs/bootstrap:6.0.0-alpha1
  • Install with NuGet: CSS: Install-Package bootstrap Sass: Install-Package bootstrap.sass

Read the Getting started page for information on the framework contents, templates, examples, and more.

Status

Build Status npm version Gem version Meteor Atmosphere Packagist Prerelease NuGet Coverage Status CSS gzip size CSS Brotli size JS gzip size JS Brotli size Open Source Security Foundation Scorecard Backers on Open Collective Sponsors on Open Collective

What’s included

Within the download you’ll find the following directories and files, logically grouping common assets and providing both compiled and minified variations.

Download contents
bootstrap/
├── css/
│   ├── bootstrap-grid.css
│   ├── bootstrap-grid.css.map
│   ├── bootstrap-grid.min.css
│   ├── bootstrap-grid.min.css.map
│   ├── bootstrap-reboot.css
│   ├── bootstrap-reboot.css.map
│   ├── bootstrap-reboot.min.css
│   ├── bootstrap-reboot.min.css.map
│   ├── bootstrap-utilities.css
│   ├── bootstrap-utilities.css.map
│   ├── bootstrap-utilities.min.css
│   ├── bootstrap-utilities.min.css.map
│   ├── bootstrap.css
│   ├── bootstrap.css.map
│   ├── bootstrap.min.css
│   └── bootstrap.min.css.map
└── js/
    ├── bootstrap.bundle.js
    ├── bootstrap.bundle.js.map
    ├── bootstrap.bundle.min.js
    ├── bootstrap.bundle.min.js.map
    ├── bootstrap.js
    ├── bootstrap.js.map
    ├── bootstrap.min.js
    └── bootstrap.min.js.map

We provide compiled CSS and JS (bootstrap.*), as well as compiled and minified CSS and JS (bootstrap.min.*). Source maps (bootstrap.*.map) are available for use with certain browsers' developer tools. Bundled JS files (bootstrap.bundle.js and minified bootstrap.bundle.min.js) include Floating UI and Vanilla Calendar Pro. All CSS files work for both LTR and RTL layouts thanks to logical properties—simply set dir="rtl" on your HTML element.

Bugs and feature requests

Have a bug or a feature request? Please first read the issue guidelines and search for existing and closed issues. If your problem or idea is not addressed yet, please open a new issue.

Documentation

Bootstrap’s documentation, included in this repo in the root directory, is built with Astro and publicly hosted on GitHub Pages at https://getbootstrap.com/. The docs may also be run locally.

Documentation search is powered by Pagefind.

Running documentation locally

  1. Run npm install to install the Node.js dependencies, including Astro (the site builder).
  2. Run npm run test (or a specific npm script) to rebuild distributed CSS and JavaScript files, as well as our docs assets.
  3. From the root /bootstrap directory, run npm run docs-serve in the command line.
  4. Open http://localhost:9001 in your browser, and voilà.

Learn more about using Astro by reading its documentation.

Documentation for previous releases

You can find all our previous releases docs on https://getbootstrap.com/docs/versions/.

Previous releases and their documentation are also available for download.

Contributing

Please read through our contributing guidelines. Included are directions for opening issues, coding standards, and notes on development.

Moreover, if your pull request contains JavaScript patches or features, you must include relevant unit tests. All HTML and CSS should conform to the Code Guide, maintained by Mark Otto.

Editor preferences are available in the editor config for easy use in common text editors. Read more and download plugins at https://editorconfig.org/.

Community

Get updates on Bootstrap’s development and chat with the project maintainers and community members.

Versioning

For transparency into our release cycle and in striving to maintain backward compatibility, Bootstrap is maintained under the Semantic Versioning guidelines. Sometimes we screw up, but we adhere to those rules whenever possible.

See the Releases section of our GitHub project for changelogs for each release version of Bootstrap. Release announcement posts on the official Bootstrap blog contain summaries of the most noteworthy changes made in each release.

Creators

Mark Otto

Jacob Thornton

Thanks

Netlify

Thanks to Netlify for providing us with Deploy Previews!

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

OC sponsor 0 OC sponsor 1 OC sponsor 2 OC sponsor 3 OC sponsor 4 OC sponsor 5 OC sponsor 6 OC sponsor 7 OC sponsor 8 OC sponsor 9

Backers

Thank you to all our backers! 🙏 [Become a backer]

Backers

Code and documentation copyright 2011-2026 the Bootstrap Authors. Code released under the MIT License. Docs released under Creative Commons.