Bytes
Web Development

Bootstrap Cheat Sheet (Latest Bootstrap 5.3 Cheat Sheet)

Last Updated: 27th April, 2025
icon

Jay Abhani

Senior Web Development Instructor at almaBetter

Master Bootstrap in 2025 with this quick-reference Bootstrap 5.3 cheat sheet. Includes essential classes, components and layout utilities for responsive design.

When it comes to modern web development, Bootstrap stands out as one of the most reliable and widely-used front-end frameworks. Whether you're a beginner crafting your first responsive layout or a seasoned developer designing complex UIs, having a detailed bootstrap cheat sheet can streamline your workflow and speed up development.

In this article, we’ll explore all the essential elements of Bootstrap: layout structures, components, utility classes, icons, customization with Sass variables, and even how Bootstrap plays a role in Dash applications. This is more than a quick reference; it's a full walkthrough that doubles up as a bootstrap classes cheat sheet for developers at all levels.

What is Bootstrap?

Bootstrap is an open-source front-end toolkit originally developed by Twitter. It provides a standardized way to build responsive, mobile-first web interfaces with minimal effort. Its ecosystem includes:

  • A responsive 12-column grid system
  • A wide collection of pre-built UI components
  • Utility classes for spacing, sizing, display, and more
  • JavaScript-powered interactive elements like modals and dropdowns

Because of its consistency and flexibility, Bootstrap is used across websites, admin dashboards, landing pages, and even applications built in Python using frameworks like Dash.

Why Use a Bootstrap Cheat Sheet?

As you build more projects using Bootstrap, you’ll notice a repeating need to look up specific class names, layout behaviors, and syntax. A well-organized bootstrap cheat sheet helps developers:

  • Quickly recall commonly used class names
  • Reduce dependency on documentation during development
  • Minimize custom CSS by leveraging existing utility classes
  • Maintain a consistent and responsive UI faster

It's also helpful to keep a dash bootstrap cheat sheet nearby if you're working with Dash applications and need quick references to Bootstrap-based components in a Python context.

The Grid System: Responsive Layout Made Easy

The grid system is the backbone of any Bootstrap layout. It uses a series of rows and columns based on Flexbox to align content and control spacing responsively.

Basic Grid Structure

<div class="container">
  <div class="row">
    <div class="col">One</div>
    <div class="col">Two</div>
  </div>
</div>

You can also use breakpoint-specific classes like .col-sm-6 or .col-lg-4 to make your layout adjust to various screen sizes.

Responsive Breakpoints

BreakpointPrefixMinimum Width
Extra small.col-0px
Small.col-sm-576px
Medium.col-md-768px
Large.col-lg-992px
Extra large.col-xl-1200px
Extra extra large.col-xxl-1400px

If you’re creating layouts inside data visualizations or Dash dashboards, referring to a dash bootstrap cheat sheet can be very helpful, especially when translating Bootstrap column logic into Dash components like dbc.Row and dbc.Col.

Text Utilities and Typography

Bootstrap includes a flexible set of text utility classes to help you format content easily.

<h1 class="display-4">Heading</h1>
<p class="lead">This is a lead paragraph.</p>
<p class="text-muted">Muted text</p>
<p class="text-center">Centered text</p>

You can use classes like fw-bold, fst-italic, or text-uppercase to apply font styles. If you ever forget one, just glance at your bootstrap css classes cheat sheet for a quick reminder.

Components: Reusable UI Blocks

Bootstrap includes pre-designed components that allow you to build interfaces without writing much CSS.

Buttons

<button class="btn btn-primary">Primary</button>
<button class="btn btn-outline-danger">Danger Outline</button>

You can modify button size using .btn-sm or .btn-lg, or disable them using .disabled.

Cards

Cards are one of Bootstrap’s most versatile components. You can use them for dashboards, listings, or content boxes.

<div class="card" style="width: 18rem;">
  <div class="card-body">
    <h5 class="card-title">Card Title</h5>
    <p class="card-text">Card description here.</p>
  </div>
</div>

These are must-haves in any bootstrap classes cheat sheet, especially when building admin panels or displaying grouped information.

Forms: Clean and Responsive Inputs

Bootstrap form controls allow for rapid creation of stylish and accessible forms.

<form>
  <div class="mb-3">
    <label for="email" class="form-label">Email</label>
    <input type="email" class="form-control" id="email">
  </div>
</form>

There are additional classes for checkboxes (.form-check), file inputs (.form-control-file), and select dropdowns (.form-select).

Bootstrap Icons

Bootstrap also offers its own icon library called Bootstrap Icons, which is maintained separately from the core framework but is widely used in Bootstrap projects.

How to Use

<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css" rel="stylesheet">
<i class="bi bi-alarm"></i>
<i class="bi bi-check-circle-fill"></i>

The bootstrap icons cheat sheet becomes useful when you're dealing with hundreds of available icons and need to find class names quickly.

Utility Classes: Speed Without CSS

Utility classes save you time by allowing quick styling without writing CSS.

Spacing

<div class="mt-3 mb-4">Margin Top and Bottom</div>
<div class="px-5 py-2">Horizontal and Vertical Padding</div>

Display and Flex

<div class="d-flex justify-content-between align-items-center">...</div>
<div class="d-none d-md-block">Hidden on small devices</div>

These classes cover most layout and design needs, and are core to any bootstrap css classes cheat sheet you rely on during development.

Bootstrap Variables: Customization Using SCSS

If you’re using Bootstrap with Sass (SCSS), you can override variables to create custom themes. This is especially useful in large-scale applications or client-based projects.

Example of Common Variables

$primary: #0d6efd;
$danger: #dc3545;
$success: #198754;
$font-size-base: 1rem;
$border-radius: 0.25rem;

Changing the default values lets you implement brand colors, custom typography, or new spacing systems. A bootstrap variables cheat sheet is useful for identifying which variables are customizable and how they affect different components.

Bootstrap in Dash Applications

When building dashboards using Python’s Dash framework, you can integrate Bootstrap themes using the dash-bootstrap-components library.

This makes it possible to use Bootstrap layouts like rows and columns with Python components such as graphs, inputs, and filters.

A dash bootstrap cheat sheet is particularly valuable in such contexts because it helps you translate traditional Bootstrap class logic into Dash component properties (e.g., className="mb-4" or width=6 inside dbc.Col).

Responsive Images and Media

Bootstrap provides helpful media utility classes:

<img src="..." class="img-fluid" alt="Responsive image">

Add shape and alignment using:

<img class="rounded float-start" src="...">
<img class="rounded-circle mx-auto d-block" src="...">

JavaScript Plugins: Modals, Collapse, Tooltips

Bootstrap’s JavaScript features (which no longer require jQuery in version 5) allow you to add interactivity with minimal code.

Collapse

<button class="btn btn-info" data-bs-toggle="collapse" data-bs-target="#example">Toggle</button>
<div class="collapse" id="example">
  Hidden content
</div>

Other JS-based features include tooltips, modals, carousels, dropdowns, and toasts.

Real-Life Tip: Use Cheat Sheets as Developer Tools

Whether you're designing a landing page, building an admin dashboard, or developing a data science app with Dash, a curated bootstrap cheat sheet can boost your productivity. Having a bootstrap icons cheat sheet lets you quickly copy icon class names. Meanwhile, a bootstrap variables cheat sheet helps you know what to override while theming.

A bootstrap classes cheat sheet pinned to your workspace is like a map, guiding your way through all the utility classes, especially when you're under deadline pressure.

Conclusion

Bootstrap makes responsive web design easier, but mastering it is all about using it efficiently. This bootstrap cheat sheet offers a consolidated view of the most important classes, components, icons, variables, and integrations you’ll encounter daily.

Whether you’re writing HTML or integrating Bootstrap with frameworks like React, Vue, or Dash, this cheat sheet saves time, effort, and energy.

Use it as your guide, keep improving your layout and component skills, and you’ll build UIs that are not just fast, but also beautiful and consistent.

More Cheat Sheets and Top Picks

  • Official Address
  • 4th floor, 133/2, Janardhan Towers, Residency Road, Bengaluru, Karnataka, 560025
  • Communication Address
  • Follow Us
  • facebookinstagramlinkedintwitteryoutubetelegram

© 2025 AlmaBetter