]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Remove Customize > Overview page, it's mostly covered by Sass and others
authorMark Otto <markdotto@gmail.com>
Fri, 24 Apr 2026 21:23:27 +0000 (14:23 -0700)
committerMark Otto <markdotto@gmail.com>
Fri, 24 Apr 2026 21:23:27 +0000 (14:23 -0700)
site/data/sidebar.yml
site/src/components/home/Customize.astro
site/src/content/docs/customize/overview.mdx [deleted file]
site/src/content/docs/customize/sass.mdx

index 56a174e6a4b9b698c22b23a9b10d21c2791edc0a..bf22cfb2b939703400705cb94c6e8d4440a26ae9 100644 (file)
@@ -32,7 +32,6 @@
   icon: palette2
   icon_color: pink
   pages:
-    - title: Overview
     - title: Sass
     - title: Options
     - title: Color
index aff090bb86678c33b667daae9c34e2e9ec99c12e..d8a03ed66d93d202028bbd9d747d47f7e33fc6d7 100644 (file)
@@ -13,7 +13,7 @@ import Code from '@shortcodes/Code.astro'
     global options like gradients and shadows, and write your own CSS with our variables, maps, functions, and mixins.
   </p>
   <p class="d-flex lead fw-normal">
-    <a href={getVersionedDocsPath('customize/overview/')} class="icon-link icon-link-hover fw-semibold">
+    <a href={getVersionedDocsPath('customize/sass/')} class="icon-link icon-link-hover fw-semibold">
       Learn more about customizing
       <svg class="bi" aria-hidden="true"><use href="#arrow-right"></use></svg>
     </a>
diff --git a/site/src/content/docs/customize/overview.mdx b/site/src/content/docs/customize/overview.mdx
deleted file mode 100644 (file)
index eaa3dcb..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
----
-title: Customize
-description: Learn how Bootstrap's colors power our design system theme. Customize and extend Bootstrap with Sass, a boatload of global options, and plenty of global and component-specific CSS variables.
-toc: false
-aliases: "/docs/[[config:docs_version]]/customize/"
-sections:
-  - title: Sass
-    description: Utilize our source Sass files to take advantage of variables, maps, mixins, and functions.
-  - title: Options
-    description: Customize Bootstrap with built-in variables to easily toggle global CSS preferences.
-  - title: Color
-    description: Bootstrap includes 11 shades of 14 colors in our color system that can be used to power our theme.
-  - title: Theme
-    description: Semantic colors, typography, settings, and more that can be customized to fit your brand.
-  - title: Color modes
-    description: Build in light mode, dark mode, or both.
-  - title: Components
-    description: Learn how we build nearly all our components responsively and with base and modifier classes.
-  - title: CSS variables
-    description: Use Bootstrap’s CSS custom properties for fast and forward-looking design and development.
-  - title: Optimize
-    description: Keep your projects lean, responsive, and maintainable so you can deliver the best experience.
----
-
-## Overview
-
-There are multiple ways to customize Bootstrap. Your best path can depend on your project, the complexity of your build tools, the version of Bootstrap you’re using, browser support, and more.
-
-Our two preferred methods are:
-
-1. Using Bootstrap [via package manager]([[docsref:/getting-started/install]]) so you can use and extend our source files.
-2. Using Bootstrap’s compiled distribution files or [jsDelivr]([[docsref:/getting-started/install#cdn]]) so you can add onto or override Bootstrap’s styles.
-
-While we cannot go into details here on how to use every package manager, we can give some guidance on [using Bootstrap with your own Sass compiler]([[docsref:/customize/sass]]).
-
-For those who want to use the distribution files, review the [getting started page]([[docsref:/guides/quickstart]]) for how to include those files and an example HTML page. From there, consult the docs for the layout, components, and behaviors you’d like to use.
-
-As you familiarize yourself with Bootstrap, continue exploring this section for more details on how to utilize our global options, making use of and changing our color system, how we build our components, how to use our growing list of CSS custom properties, and how to optimize your code when building with Bootstrap.
-
-## Sass vs CSS
-
-When Bootstrap 5 first introduced CSS variables, the Sass vs CSS variables setup was a little confusing and somewhat limited. As such, the relationship between Sass and CSS variables was very unclear. In Bootstrap 6, we've clarified that—here's how the two interact.
-
-- At a high level, Sass is a way to manage [global configuration options]([[docsref:/customize/options]]) and generate CSS for our utilities, components, typography, custom properties (aka CSS variables) and more.
-- We consider CSS variables to be the **first-class customization layer** for our users.
-- Sass variables are available for nearly every component—like the new `$check-*` variables for checkboxes. These Sass variables are then consumed by CSS variables on the relevant selector (e.g., `.check` with `--bs-check-bg: #{$check-bg}`) and applied through various properties.
-- CSS variables get their values from Sass variables, or CSS variables, depending on the context.
-- Sass helps us generate CSS variables, too. Think theme and config values, but across components, Sass is consuming CSS variables. This gives you two, clearer avenues for customization.
-
-With that in mind, you can customize Bootstrap 6 via CSS or Sass, both of which are easier than ever thanks to a revamped color system and theme configuration.
-
-## CSPs and embedded SVGs
-
-Several Bootstrap components include embedded SVGs in our CSS to style components consistently and easily across browsers and devices. **For organizations with more strict <abbr title="Content Security Policy">CSP</abbr> configurations**, we’ve documented all instances of our embedded SVGs (all of which are applied via `background-image`) so you can more thoroughly review your options.
-
-- [Accordion]([[docsref:/components/accordion]])
-- [Carousel controls]([[docsref:/components/carousel#with-controls]])
-- [Close button]([[docsref:/components/close-button]]) (used in alerts and modals)
-- [Form validation icons]([[docsref:/forms/validation#server-side]])
-- [Navbar toggle buttons]([[docsref:/components/navbar#responsive-behaviors]])
-
-Based on [community conversation](https://github.com/twbs/bootstrap/issues/25394), some options for addressing this in your own codebase include [replacing the URLs with locally hosted assets]([[docsref:/guides/webpack#extracting-svg-files]]), removing the images and using inline images (not possible in all components), and modifying your CSP. Our recommendation is to carefully review your own security policies and decide on the best path forward, if necessary.
index 5062d668a82d0cfe8571898ccf16a7e3855c9696..cd25a916c5d13553ccdc6b245cc719f6491c7f15 100644 (file)
@@ -546,3 +546,15 @@ The `generate-theme-classes()` mixin loops over the `$theme-colors` map and outp
 // .theme-success { --theme-base: var(--success-base); --theme-bg: var(--success-bg); ... }
 // ...
 ```
+
+## CSPs and embedded SVGs
+
+Several Bootstrap components include embedded SVGs in our CSS to style components consistently and easily across browsers and devices. **For organizations with more strict <abbr title="Content Security Policy">CSP</abbr> configurations**, we’ve documented all instances of our embedded SVGs (all of which are applied via `background-image`) so you can more thoroughly review your options.
+
+- [Accordion]([[docsref:/components/accordion]])
+- [Carousel controls]([[docsref:/components/carousel#with-controls]])
+- [Close button]([[docsref:/components/close-button]]) (used in alerts and modals)
+- [Form validation icons]([[docsref:/forms/validation#server-side]])
+- [Navbar toggle buttons]([[docsref:/components/navbar#responsive-behaviors]])
+
+Based on [community conversation](https://github.com/twbs/bootstrap/issues/25394), some options for addressing this in your own codebase include [replacing the URLs with locally hosted assets]([[docsref:/guides/webpack#extracting-svg-files]]), removing the images and using inline images (not possible in all components), and modifying your CSP. Our recommendation is to carefully review your own security policies and decide on the best path forward, if necessary.