Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Bootstrap 5.3 gives you semantic theme colors, color utilities, Sass customization, and light/dark color modes. Use .text-* for text, .bg-* for backgrounds, and .text-bg-* when you want Bootstrap to set both; use Sass when you need to change the compiled theme or generate additional utility classes. Check the version installed in your project: the versioned documentation covered here is Bootstrap v5.3 and currently identifies itself as v5.3.8.

Bootstrap’s color palette and theme colors

Bootstrap has a broad palette of named colors and a smaller semantic theme palette. The palette provides design values; the theme map connects a limited set of names to component variants and many generated utilities.

Generic palette color Documented value
Blue #0d6efd
Indigo #6610f2
Purple #6f42c1
Pink #d63384
Red #dc3545
Orange #fd7e14
Yellow #ffc107
Green #198754
Teal #20c997
Cyan #0dcaf0

Bootstrap also includes neutral colors. These generic colors are not the same as theme names, and Bootstrap does not generate every possible text and background utility for every palette shade by default. See the Bootstrap color utilities documentation and theme color documentation.

The standard $theme-colors map contains primary, secondary, success, info, warning, danger, light, and dark. Primary is used for prominent theme elements such as links, focus styles, and active component or form states. Success signals a positive result; danger signals an error or dangerous action; warning is for non-destructive warnings; and info is for neutral or informative content. Light and dark provide additional theme options.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

Use these roles consistently, but do not rely on the color alone to tell users what a status means.

Choose the utility that matches the job

Color text with .text-*

Use classes such as .text-primary, .text-success, or .text-danger to color text. Bootstrap’s opacity mechanism uses RGB CSS variables, so opacity can be adjusted without recompiling Sass. Check the exact utility and mode behavior in the color utilities documentation.

Set a background with .bg-*

.bg-primary, .bg-success, and related classes set a background, not a foreground text color. Pair a background with a deliberate text color, or use a helper that sets both. The background utilities documentation describes these classes and their subtle variants.

Set text and background together with .text-bg-*

Use a helper such as .text-bg-primary or .text-bg-warning when the element needs a theme background and a contrasting foreground. Bootstrap uses its Sass color-contrast() function to choose a foreground. A customized theme can still create insufficient contrast, so verify the rendered pairing rather than assuming the helper guarantees accessibility.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

Style links with .link-*

Classes such as .link-primary provide hover and focus states as well as a link color. Preserve recognizable link behavior and confirm that keyboard focus remains visible after changing colors. Bootstrap describes the behavior in its color utilities documentation.

Use subtle surfaces and emphasis in v5.3

Bootstrap 5.3 provides theme variants such as .bg-primary-subtle, .border-primary-subtle, and .text-primary-emphasis. They are intended to adapt across color modes. For example:

<div class="p-3 text-primary-emphasis bg-primary-subtle border border-primary-subtle rounded-3">
  Example element with utilities
</div>

These are useful for subdued backgrounds, borders, and emphasized text without treating every element as a solid theme-color block.

What changes in light and dark mode

Bootstrap 5.3 introduced color modes based on the data-bs-theme attribute and the Sass color-mode() mixin. A common setup applies the dark mode at the document root:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
<html lang="en" data-bs-theme="dark">

Bootstrap’s color modes documentation also explains scoped modes and custom named modes. A mode changes values supplied through the relevant variables; hard-coded colors or custom CSS that bypasses those variables may not change with it.

Do not assume that every older theme utility automatically switches color. In the Bootstrap v5.3 documentation, the original theme-map .text-* and .bg-* classes are not uniformly mode-adaptive. The newer .text-*-emphasis and .bg-*-subtle variants are intended to adapt. Inspect the actual foreground, background, border, and focus colors in every mode your interface supports.

How to change Bootstrap colors

Choose the method by the scope of the change. A one-off visual treatment can use utilities or local CSS; a runtime mode override should use the variables Bootstrap exposes for that mode; a site-wide theme or new generated utility calls for Sass. Bootstrap’s versioned guidance is in Sass customization and color customization.

Approach Best for What to watch
Built-in utilities A particular element or component using existing theme roles Background classes do not set text color; original theme utilities may not adapt to modes.
CSS variables Runtime or mode-specific changes supported by Bootstrap’s variable system Hard-coded styles and custom rules may bypass the variables.
Sass maps and utilities API Changing compiled theme tokens or generating additional utility classes Components may depend on standard map keys; additional utilities increase generated CSS.

Change an existing theme color with Sass

Set a token before Bootstrap consumes the theme map, then compile the Sass. For example, the documented customization pattern allows changing existing values such as $primary and $danger. The exact import sequence depends on how Bootstrap Sass is integrated into your project; follow the documentation for your installed version rather than pasting a partial override after the compiled CSS.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
$primary: #4f46e5;
$danger: #b42318;

// Import Bootstrap's Sass after overriding the variables.
@import "bootstrap";

This changes the compiled theme values that use those variables. Choose values deliberately and test the component states, focus styles, and text pairings they affect.

Add a theme color and generate utilities

To add a theme color, merge it into $theme-colors before Bootstrap generates dependent styles. The additional theme entry can produce corresponding theme-based utilities and component variants. Bootstrap also documents its utilities API for generating classes for colors outside the default theme map, such as a project-specific .text-purple-500.

Do not remove or rename standard keys casually: Bootstrap components may reference them during Sass compilation. If your design needs a custom color but not a new semantic component variant, consider whether a narrowly scoped CSS rule is simpler than expanding the generated utility set.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Check contrast and communicate meaning accessibly

Bootstrap’s official color utility guidance warns that using color to add meaning provides only a visual indication and is not conveyed to screen-reader users. Pair a colored status with visible text, an icon with an accessible name, or another non-color cue; use visually hidden text when appropriate. The Bootstrap team also advises: “Be sure to monitor contrast ratios as you customize colors.”

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

For WCAG 2.2 Level AA, the W3C’s 2023 standard sets a minimum contrast ratio of 4.5:1 for normal text and 3:1 for large text. At Level AAA, the corresponding minimums are 7:1 for normal text and 4.5:1 for large text. WCAG defines exceptions, including inactive UI components, purely decorative or invisible text, and text that is part of a logo or brand name. Consult the W3C WCAG 2.2 standard for the criteria and exceptions.

  • Check the actual text against its rendered background, including subtle surfaces and hover states.
  • Check borders, icons, focus indicators, and disabled or active states where they convey information.
  • Test both light and dark modes, including any component-level mode overrides.
  • Keep labels or other cues with status colors so meaning does not depend on color perception alone.

Or skip the browser setup

If your next task is to capture a page rather than build its styling, ScreenshotNeo is a website screenshot API and MCP server. One GET request can return a PNG, JPEG, WebP, or PDF. For a quick screenshot, use cURL:

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

See the ScreenshotNeo API documentation for request options. ScreenshotNeo accepts cookie or consent banners as a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each of those steps can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits cost nothing, and response headers report the page verdict and billing status. Its MCP server provides take_screenshot, get_page_info, and capture_pdf for AI agents and MCP clients. The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 shots.

Sign up for 1,000 free screenshots a month, with no card required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.