Guides

Bootstrap guides & tutorials

Practical, no-nonsense guides to customizing Bootstrap 5.

Basics

What is Bootstrap? A Beginner Guide for 2026

Bootstrap is a free, open-source CSS framework for responsive, mobile-first sites. Learn what it does, what is new in 5.3, and how to get started.

8 min read
Comparisons

Bootstrap vs Tailwind CSS: Which Should You Use?

A practical comparison of Bootstrap and Tailwind CSS: component framework versus utility-first, speed, design control, CSS size, and when to choose each.

10 min read
AI theming

AI Prompts for Bootstrap Themes: From Brief to Sass

Use AI to explore Bootstrap theme ideas, then turn the best direction into real Bootstrap 5 Sass variables for colors, type, spacing, radius, and dark mode.

8 min read
Customization

How to Customize Bootstrap 5: The Complete Guide

The complete guide to customizing Bootstrap 5: the two ways to do it, what to change first, the Sass variable system, and exporting your theme.

9 min read
Customization

How to Customize Bootstrap 5 Colors

Recolor your Bootstrap theme in the browser or with Sass: override $primary and $theme-colors, add a brand color, and export the result.

8 min read
Customization

Bootstrap Sass Variables and the Override Order

How Bootstrap 5 Sass variables work: the !default system, the tiers and maps, Sass vs CSS variables, and the import order to override them correctly.

8 min read
Customization

How to Change Fonts and Typography in Bootstrap 5

Swap the Bootstrap font, load a Google Font, and tune the type scale: $font-family-base, $font-size-base, headings, and line height, visually or with Sass.

8 min read
Color modes

How to Add Dark Mode to a Bootstrap 5 Theme

Enable Bootstrap 5.3 dark mode with data-bs-theme, add a light and dark toggle, customize the dark palette, and even build your own color mode.

7 min read
AI UI

How to Build an AI Chat Interface with Bootstrap 5

Build an AI chat interface with Bootstrap 5 using cards, forms, badges, spinners, offcanvas settings, accessible loading states, and themeable chat bubbles.

8 min read
Customization

How to Export a Custom Bootstrap Theme and Use It

Ship your custom Bootstrap theme as Sass source for a build pipeline, or as compiled CSS you link with no build step, and where each file goes.

6 min read
Customization

How to Shrink Bootstrap's CSS (Import Only What You Need)

Bootstrap's full CSS is about 28 KB gzipped. Cut it down by importing only the partials you use, purging unused classes, and trimming utilities.

6 min read
Layout

How to Use Flexbox in Bootstrap (d-flex Utilities)

Build flexible layouts with Bootstrap flexbox utilities: d-flex, justify-content, align-items, how to center a div, responsive variants, and gap spacing.

7 min read
Layout

Bootstrap Spacing: Margin and Padding Utilities

Master Bootstrap spacing utilities: the m and p notation, sides, the 0 to 5 scale based on $spacer, responsive spacing, auto-centering, and how to customize it.

7 min read
Layout

How to Center a Div in Bootstrap (Every Way)

Center a div in Bootstrap horizontally, vertically, or both with mx-auto, text-center, and d-flex utilities, plus a decision table and common gotchas.

6 min read
Layout

Bootstrap Grid System Explained

How the Bootstrap 5 grid works: the 12-column flexbox model, containers, rows and columns, breakpoints, offsets, gutters, and nesting.

8 min read
Hosting

Where to Host Your HTML Website

Where to host a static HTML website the easy way: what static hosting is, what to look for, and how to publish your files in about a minute.

5 min read