talira

Bootstrap

The most popular HTML, CSS, and JS library in the world

open sourceMITself-hostablefree

Bootstrap is a front-end toolkit of CSS and optional JavaScript: a responsive 12-column grid, ready-made components (navbars, cards, modals, dropdowns, forms, toasts, carousels and more) and utility classes, styled from a single stylesheet or customised by compiling its Sass source with your own variables. Its JavaScript plugins are plain JavaScript with no jQuery dependency since version 5, driven by data attributes or a programmatic API, and ship as UMD and ES module builds. Version 5.3 is the current stable release and adds colour modes (light, dark and your own) built on CSS variables; Bootstrap 6 is in alpha as a rebuilt, framework-agnostic design toolkit with CSS-first theming. It installs from a CDN, npm, RubyGems, Composer or NuGet, has official guides for Vite, webpack and Parcel, and publishes llms.txt docs and agent skills for coding agents.

Problems it solves

  • I need a decent-looking responsive site quickly without designing every button and form from scratch
  • build a page layout that reflows from phone to desktop without writing media queries by hand
  • ready-made modals, dropdowns, tooltips and navbars that work without writing my own JavaScript
  • drop one stylesheet link into a server-rendered app and get consistent forms, tables and buttons
  • change the brand colours, fonts and spacing of a whole component library by setting a few variables
  • add a dark mode toggle to an admin interface without restyling every component
  • style forms with validation states, floating labels and input groups that look the same in every browser
  • our internal tools look different on every team; give everyone one shared set of components
  • support right-to-left languages like Arabic and Hebrew in our layout without a separate stylesheet
  • migrate an old project off jQuery-dependent UI plugins to plain JavaScript
  • get my coding agent to follow official steps when upgrading a site from Bootstrap 4 or 5

Features

  • responsive 12-column flexbox grid with six breakpoints, containers and gutters, plus an opt-in CSS Grid
  • components including accordion, alerts, badges, buttons, cards, carousel, dropdowns, modals, navbar, offcanvas, pagination, popovers, toasts and tooltips
  • form controls, selects, checks and radios, range, input groups, floating labels and validation styles
  • utility API for spacing, colour, display, flex and more, which you can extend or trim
  • colour modes (light, dark, auto and custom) built on CSS variables, from v5.3
  • Sass source with variables, maps and mixins for theming, or the compiled CSS on its own
  • JavaScript plugins in plain JavaScript (no jQuery), with data attributes or a programmatic API, as UMD and ESM builds
  • RTL stylesheets for right-to-left languages
  • installs from jsDelivr, npm, yarn, Bun, RubyGems, Composer or NuGet
  • official guides for Vite, webpack and Parcel, and a starter template
View 2 more
  • llms.txt and llms-full.txt docs, and agent skills (npx skills add twbs/bootstrap) for migrations, installs and components
  • Bootstrap 6 in alpha: rebuilt as a framework-agnostic design toolkit with CSS-first theming and new components

Limitations

  • Doesn't support Internet Explorer: Bootstrap 5 and later drop it, and the docs point IE users to Bootstrap 41
  • Doesn't support proxy browsers such as Opera Mini and UC Browser Mini1

Alternatives

The same job

These do what Bootstrap does.

  1. Bulma Free, open source, and modern CSS framework based on Flexbox
  2. Foundation for Sites The most advanced responsive front-end framework in the world
  3. Tailwind CSS Rapidly build modern websites without ever leaving your HTML.
  4. daisyUI The most popular, free and open-source component library for Tailwind CSS
  5. UIkit A lightweight and modular front-end framework for developing fast and powerful web interfaces

Compare Bootstrap with the top 3