]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
v6: Remove `_variables.scss`, move some vars to `_config.scss`, and clean up typograp...
authorMark Otto <markd.otto@gmail.com>
Sat, 14 Mar 2026 20:00:10 +0000 (13:00 -0700)
committerGitHub <noreply@github.com>
Sat, 14 Mar 2026 20:00:10 +0000 (13:00 -0700)
* Remove _variables.scss, move rest of _config.scss etc

* Rearrange a bunch of stuff for font vars and classes

* fix

* fix link

57 files changed:
build/generate-utilities-metadata.scss
scss/_alert.scss
scss/_card.scss
scss/_config.scss
scss/_datepicker.scss
scss/_dialog.scss
scss/_dropdown.scss
scss/_functions.scss
scss/_list-group.scss
scss/_nav.scss
scss/_offcanvas.scss
scss/_popover.scss
scss/_root.scss
scss/_toasts.scss
scss/_tooltip.scss
scss/_transitions.scss
scss/_utilities.scss
scss/_variables.scss [deleted file]
scss/bootstrap-utilities.scss
scss/content/_reboot.scss
scss/content/_tables.scss
scss/forms/_validation.scss
scss/helpers/_icon-link.scss
scss/helpers/_position.scss
scss/helpers/_stretched-link.scss
scss/tests/mixins/_box-shadow.test.scss
scss/tests/mixins/_color-contrast.test.scss
scss/tests/mixins/_color-modes.test.scss
scss/tests/mixins/_utilities.test.scss
scss/tests/utilities/_api.test.scss
site/src/content/docs/components/collapse.mdx
site/src/content/docs/content/reboot.mdx
site/src/content/docs/content/typography.mdx
site/src/content/docs/customize/color-modes.mdx
site/src/content/docs/customize/color.mdx
site/src/content/docs/customize/css-variables.mdx
site/src/content/docs/customize/options.mdx
site/src/content/docs/docsref.mdx
site/src/content/docs/forms/validation.mdx
site/src/content/docs/getting-started/approach.mdx
site/src/content/docs/helpers/focus-ring.mdx
site/src/content/docs/helpers/icon-link.mdx
site/src/content/docs/layout/breakpoints.mdx
site/src/content/docs/layout/containers.mdx
site/src/content/docs/layout/z-index.mdx
site/src/content/docs/migration.mdx
site/src/content/docs/utilities/aspect-ratio.mdx
site/src/content/docs/utilities/background.mdx
site/src/content/docs/utilities/border-color.mdx
site/src/content/docs/utilities/border.mdx
site/src/content/docs/utilities/colors.mdx
site/src/content/docs/utilities/font-size.mdx
site/src/content/docs/utilities/overflow.mdx
site/src/content/docs/utilities/position.mdx
site/src/content/docs/utilities/width.mdx
site/src/content/docs/utilities/z-index.mdx
site/src/scss/_component-examples.scss

index e146be59e139d66d7c05ec82696fb60bf8fc7f71..3789de00c4c02db66adb97ca6188963d002006e1 100644 (file)
@@ -7,7 +7,6 @@
 @use "sass:meta";
 @use "../scss/config" as *;
 @use "../scss/colors" as *;
-@use "../scss/variables" as *;
 @use "../scss/functions" as *;
 @use "../scss/theme" as *;
 @use "../scss/utilities" as *;
index ede03afeb2c4f09988ac78dc60317d967dab8625..ee751c2db86eff79839b011b469dd158be86946d 100644 (file)
@@ -1,6 +1,5 @@
 @use "config" as *;
 @use "functions" as *;
-@use "variables" as *;
 @use "mixins/border-radius" as *;
 @use "mixins/tokens" as *;
 
index 3be9b885ffc0aaf31d7f66fd6d935bf851250c94..4bf095a7c57949b73072088b794184ad14d3d86e 100644 (file)
@@ -1,6 +1,5 @@
 @use "config" as *;
 @use "functions" as *;
-@use "variables" as *;
 @use "mixins/border-radius" as *;
 @use "mixins/box-shadow" as *;
 @use "mixins/tokens" as *;
index 6ee1673dce1699227120b8cc0e1597e032f29b26..8d47e6661d7db70fa72e95d0f107182a6a380f57 100644 (file)
@@ -1,7 +1,30 @@
+@use "sass:map";
+@use "sass:meta";
+
 // Configuration
 //
 // Variables and settings not related to theme, components, and more go here. It does include layout.
 
+// Merge overrides on top of defaults, stripping null entries.
+// Null values let users remove map keys via @use ... with().
+// Accepts a list as $defaults (converted to a map with `true` values).
+@function defaults($defaults, $overrides) {
+  @if meta.type-of($defaults) == "list" {
+    $map: ();
+    @each $key in $defaults {
+      $map: map.merge($map, ($key: true));
+    }
+    $defaults: $map;
+  }
+  $merged: map.merge($defaults, $overrides);
+  @each $key, $value in $merged {
+    @if $value == null {
+      $merged: map.remove($merged, $key);
+    }
+  }
+  @return $merged;
+}
+
 $enable-caret:                true !default;
 $enable-rounded:              true !default;
 $enable-shadows:              true !default;
@@ -18,9 +41,6 @@ $enable-validation-icons:     true !default;
 $enable-deprecation-messages: true !default;
 
 $enable-dark-mode:            true !default;
-$color-mode-type:             data !default; // `data` or `media-query`
-
-// more to come here…
 
 $color-mode-type:          "media-query" !default;
 $color-contrast-dark:      #000 !default;
@@ -115,3 +135,199 @@ $escaped-characters: (
   ("(", "%28"),
   (")", "%29"),
 ) !default;
+
+// Gradient
+//
+// The gradient which is added to components if `$enable-gradients` is `true`
+// This gradient is also added to elements with `.bg-gradient`
+// scss-docs-start variable-gradient
+$gradient: linear-gradient(180deg, color-mix(var(--white) 15%, transparent), color-mix(var(--white) 0%, transparent)) !default;
+// scss-docs-end variable-gradient
+
+// Position
+//
+// Define the edge positioning anchors of the position utilities.
+
+// scss-docs-start position-map
+$position-values: (
+  0: 0,
+  50: 50%,
+  100: 100%
+) !default;
+// scss-docs-end position-map
+
+// Links
+//
+// Style anchor elements.
+
+$link-decoration:                         underline !default;
+$link-underline-offset:                   .2em !default;
+
+$stretched-link-pseudo-element:           after !default;
+$stretched-link-z-index:                  1 !default;
+
+// Icon links
+// scss-docs-start icon-link-variables
+$icon-link-gap:               .375rem !default;
+$icon-link-underline-offset:  .25em !default;
+$icon-link-icon-size:         1em !default;
+$icon-link-icon-transition:   .2s ease-in-out transform !default;
+$icon-link-icon-transform:    translate3d(.25em, 0, 0) !default;
+// scss-docs-end icon-link-variables
+
+// Paragraphs
+//
+// Style p element.
+
+$paragraph-margin-bottom:   1rem !default;
+
+// Components
+//
+// Define common padding and border radius sizes and more.
+
+// scss-docs-start border-variables
+$border-width:                1px !default;
+$border-widths: (
+  1: 1px,
+  2: 2px,
+  3: 3px,
+  4: 4px,
+  5: 5px
+) !default;
+$border-style:                solid !default;
+$border-color:                color-mix(in oklch, var(--gray-100), var(--gray-200)) !default;
+// scss-docs-end border-variables
+
+$transition-base:             all .2s ease-in-out !default;
+$transition-fade:             opacity .15s linear !default;
+
+// scss-docs-start collapse-transition
+$transition-collapse:         height .35s ease !default;
+$transition-collapse-width:   width .35s ease !default;
+// scss-docs-end collapse-transition
+
+// scss-docs-start aspect-ratios
+$aspect-ratios: (
+  "auto": auto,
+  "1x1": #{"1 / 1"},
+  "4x3": #{"4 / 3"},
+  "16x9": #{"16 / 9"},
+  "21x9": #{"21 / 9"}
+) !default;
+// scss-docs-end aspect-ratios
+
+// Typography
+//
+// Font, line-height, and color for body text, headings, and more.
+
+// scss-docs-start font-variables
+$font-weight-lighter:         lighter !default;
+$font-weight-light:           300 !default;
+$font-weight-normal:          400 !default;
+$font-weight-medium:          500 !default;
+$font-weight-semibold:        600 !default;
+$font-weight-bold:            700 !default;
+$font-weight-bolder:          bolder !default;
+
+$font-weight-base:            $font-weight-normal !default;
+
+$line-height-base:            1.5 !default;
+$line-height-sm:              1.25 !default;
+$line-height-lg:              2 !default;
+// scss-docs-end font-variables
+
+// scss-docs-start font-sizes
+$font-sizes: () !default;
+// stylelint-disable-next-line scss/dollar-variable-default
+$font-sizes: defaults(
+  (
+    "xs": (
+      "font-size": .75rem,
+      "line-height": 1.25
+    ),
+    "sm": (
+      "font-size": .875rem,
+      "line-height": 1.5
+    ),
+    "md": (
+      "font-size": 1rem,
+      "line-height": 1.5
+    ),
+    "lg": (
+      "font-size": clamp(1.25rem, 1rem + .625vw, 1.5rem),
+      "line-height": 1.5
+    ),
+    "xl": (
+      "font-size": clamp(1.5rem, 1.1rem + .75vw, 1.75rem),
+      "line-height": calc(2.5 / 1.75)
+    ),
+    "2xl": (
+      "font-size": clamp(1.75rem, 1.3rem + 1vw, 2rem),
+      "line-height": calc(3 / 2.25)
+    ),
+    "3xl": (
+      "font-size": clamp(2rem, 1.5rem + 1.875vw, 2.5rem),
+      "line-height": 1.2
+    ),
+    "4xl": (
+      "font-size": clamp(2.25rem, 1.75rem + 2.5vw, 3rem),
+      "line-height": 1.1
+    ),
+    "5xl": (
+      "font-size": clamp(3rem, 2rem + 5vw, 4rem),
+      "line-height": 1.1
+    ),
+    "6xl": (
+      "font-size": clamp(3.75rem, 2.5rem + 6.25vw, 5rem),
+      "line-height": 1
+    ),
+  ),
+  $font-sizes
+);
+// scss-docs-end font-sizes
+
+// scss-docs-start headings-variables
+$headings-margin-bottom:      $spacer * .5 !default;
+$headings-font-family:        null !default;
+$headings-font-style:         null !default;
+$headings-font-weight:        500 !default;
+$headings-line-height:        1.2 !default;
+$headings-color:              inherit !default;
+// scss-docs-end headings-variables
+
+// scss-docs-start type-variables
+
+$legend-margin-bottom:        .5rem !default;
+$legend-font-size:            1.5rem !default;
+$legend-font-weight:          null !default;
+
+$dt-font-weight:              $font-weight-bold !default;
+
+// scss-docs-end type-variables
+
+// Z-index master list
+//
+// Warning: Avoid customizing these values. They're used for a bird's eye view
+// of components dependent on the z-axis and are designed to all work together.
+
+// scss-docs-start zindex-stack
+$zindex-dropdown:                   1000 !default;
+$zindex-sticky:                     1020 !default;
+$zindex-fixed:                      1030 !default;
+$zindex-offcanvas-backdrop:         1040 !default;
+$zindex-offcanvas:                  1045 !default;
+$zindex-dialog:                     1055 !default;
+$zindex-popover:                    1070 !default;
+$zindex-tooltip:                    1080 !default;
+$zindex-toast:                      1090 !default;
+// scss-docs-end zindex-stack
+
+// scss-docs-start zindex-levels-map
+$zindex-levels: (
+  n1: -1,
+  0: 0,
+  1: 1,
+  2: 2,
+  3: 3
+) !default;
+// scss-docs-end zindex-levels-map
index 94b2c86386db662ac1e3a32c901492756d9fd9e0..e0cc2cc57f96eafadce0742d0fa3837117e53596 100644 (file)
@@ -1,7 +1,7 @@
 // stylelint-disable selector-max-attribute, property-disallowed-list, selector-no-qualifying-type -- VCP uses extensive data attributes and requires direct border-radius properties for range selection
 
 @use "functions" as *;
-@use "variables" as *;
+@use "config" as *;
 @use "mixins/border-radius" as *;
 @use "mixins/focus-ring" as *;
 @use "mixins/tokens" as *;
index b5bd2f1951daecdcfd533a5921eb17f46fb5985e..0ba009d9e844edbaadd24e2cfad67168ca572fca 100644 (file)
@@ -1,7 +1,6 @@
 @use "sass:map";
 @use "config" as *;
 @use "functions" as *;
-@use "variables" as *;
 @use "layout/breakpoints" as *;
 @use "mixins/border-radius" as *;
 @use "mixins/box-shadow" as *;
index 3d277c9b3578f87bc2a95a523c5911ee7df41dee..e7c87262bb9433a2e95c87a8a7988c58902c466b 100644 (file)
@@ -1,6 +1,5 @@
 @use "config" as *;
 @use "functions" as *;
-@use "variables" as *;
 @use "mixins/border-radius" as *;
 @use "mixins/box-shadow" as *;
 @use "mixins/gradients" as *;
index 0705c0c3069670fd5df243529678ea515180aed5..78eeb74fea9e8431e342ec4798c8834f72449671 100644 (file)
@@ -4,7 +4,7 @@
 @use "sass:math";
 @use "sass:meta";
 @use "sass:string";
-// @use "variables" as *;
+@forward "config" show defaults;
 @use "config" as *;
 
 // Bootstrap functions
   @return $result;
 }
 
-// Merge overrides on top of defaults, stripping null entries.
-// Null values let users remove map keys via @use ... with().
-// Accepts a list as $defaults (converted to a map with `true` values).
-@function defaults($defaults, $overrides) {
-  @if meta.type-of($defaults) == "list" {
-    $map: ();
-    @each $key in $defaults {
-      $map: map.merge($map, ($key: true));
-    }
-    $defaults: $map;
-  }
-  $merged: map.merge($defaults, $overrides);
-  @each $key, $value in $merged {
-    @if $value == null {
-      $merged: map.remove($merged, $key);
-    }
-  }
-  @return $merged;
-}
-
 // Merge multiple maps
 @function map-merge-multiple($maps...) {
   $merged-maps: ();
index 2be90c2d33251c8542df324305fce9d381de3bed..13e48d08f86ac78ddd7c13a81c0db9983b0956d2 100644 (file)
@@ -1,7 +1,6 @@
 @use "sass:map";
 @use "config" as *;
 @use "functions" as *;
-@use "variables" as *;
 @use "mixins/border-radius" as *;
 @use "layout/breakpoints" as *;
 @use "mixins/tokens" as *;
index efd2748a645fce1c172550f5e7edd1922b18c3cd..eb014a9975abc825dacd1927dae32fd8cf005f27 100644 (file)
@@ -1,5 +1,5 @@
 @use "functions" as *;
-@use "variables" as *;
+@use "config" as *;
 @use "mixins/border-radius" as *;
 @use "mixins/focus-ring" as *;
 @use "mixins/gradients" as *;
index 6d889ec281b0cbab663f1a8b742aa9c1e0f31fb5..6a80b7ed43532beb3b681303f42e7a419df0e16b 100644 (file)
@@ -1,5 +1,5 @@
 @use "functions" as *;
-@use "variables" as *;
+@use "config" as *;
 @use "mixins/border-radius" as *;
 @use "mixins/box-shadow" as *;
 @use "mixins/transition" as *;
index f54d3b4aa2e1d5201adc498088e367fd4010cfad..89406fc0b2c3c4e8d1f068844558a42f9fed2bd9 100644 (file)
@@ -1,6 +1,5 @@
 @use "config" as *;
 @use "functions" as *;
-@use "variables" as *;
 @use "mixins/border-radius" as *;
 @use "mixins/box-shadow" as *;
 @use "mixins/reset-text" as *;
index 400d911f6c2c38ec23e3dda89467912ebc92d9eb..7a89c16ad15dbd17974c307cf406ee9613af47e2 100644 (file)
@@ -2,7 +2,6 @@
 @use "colors" as *;
 @use "config" as *;
 @use "functions" as *;
-@use "variables" as *;
 @use "theme" as *;
 @use "mixins/tokens" as *;
 @use "forms/form-variables" as *;
@@ -22,31 +21,6 @@ $root-tokens: defaults(
 
     --gradient: #{$gradient},
 
-    // scss-docs-start root-font-size-variables
-    --font-size-base: 1rem,
-    --font-size-xs: .75rem,
-    --font-size-sm: .875rem,
-    --font-size-md: 1rem,
-    --font-size-lg: clamp(1.25rem, 1rem + .625vw, 1.5rem),
-    --font-size-xl: clamp(1.5rem, 1.1rem + .75vw, 1.75rem),
-    --font-size-2xl: clamp(1.75rem, 1.3rem + 1vw, 2rem),
-    --font-size-3xl: clamp(2rem, 1.5rem + 1.875vw, 2.5rem),
-    --font-size-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3rem),
-    --font-size-5xl: clamp(3rem, 2rem + 5vw, 4rem),
-    --font-size-6xl: clamp(3.75rem, 2.5rem + 6.25vw, 5rem),
-
-    --line-height-xs: 1.25,
-    --line-height-sm: 1.5,
-    --line-height-md: 1.5,
-    --line-height-lg: 1.5,
-    --line-height-xl: calc(2.5 / 1.75),
-    --line-height-2xl: calc(3 / 2.25),
-    --line-height-3xl: 1.2,
-    --line-height-4xl: 1.1,
-    --line-height-5xl: 1.1,
-    --line-height-6xl: 1,
-    // scss-docs-end root-font-size-variables
-
     // scss-docs-start root-font-weight-variables
     --font-weight-lighter: lighter,
     --font-weight-light: 300,
@@ -160,6 +134,14 @@ $root-tokens: defaults(
 // stylelint-enable @stylistic/value-list-max-empty-lines, @stylistic/function-max-empty-lines
 // scss-docs-end root-tokens
 
+// scss-docs-start root-font-size-loop
+// Generate font-size and line-height tokens
+@each $name, $props in $font-sizes {
+  $root-tokens: map.set($root-tokens, --font-size-#{$name}, map.get($props, "font-size"));
+  $root-tokens: map.set($root-tokens, --line-height-#{$name}, map.get($props, "line-height"));
+}
+// scss-docs-end root-font-size-loop
+
 // scss-docs-start root-theme-tokens
 // Generate semantic theme colors
 @each $color-name, $color-map in $theme-colors {
index 20c8ebcef8a3ad9fc30a2451adb4b22303c89153..69a300cec6b97220b7ec4c5d9c299a3671bed3eb 100644 (file)
@@ -1,6 +1,5 @@
 @use "config" as *;
 @use "functions" as *;
-@use "variables" as *;
 @use "mixins/border-radius" as *;
 @use "mixins/tokens" as *;
 
index 0ee7fcff507e5280bb7e3514e8c0cc326d57e27d..89519d51802504b94d6d90797dd37ce6119cd3c1 100644 (file)
@@ -1,6 +1,5 @@
 @use "config" as *;
 @use "functions" as *;
-@use "variables" as *;
 @use "mixins/border-radius" as *;
 @use "mixins/reset-text" as *;
 @use "mixins/tokens" as *;
index 04f5ba152cbfedc26a697e5ac18e157b7b89fa82..3a7f936bc706182f9fec1a5ef049efc7e11da55a 100644 (file)
@@ -1,4 +1,4 @@
-@use "variables" as *;
+@use "config" as *;
 @use "mixins/transition" as *;
 
 .fade {
index 1eb04558a731f6fcc363a600b4e6f466ce77f8cb..a25cafa49d6f2e699412e7fecdda4ea84ea16543 100644 (file)
@@ -1,6 +1,5 @@
 @use "sass:map";
 @use "config" as *;
-@use "variables" as *;
 @use "functions" as *;
 @use "theme" as *;
 
diff --git a/scss/_variables.scss b/scss/_variables.scss
deleted file mode 100644 (file)
index eba2a97..0000000
+++ /dev/null
@@ -1,249 +0,0 @@
-@use "config" as *;
-@use "functions" as *;
-
-// Variables
-//
-// Variables should follow the `$component-state-property-size` formula for
-// consistent naming. Ex: $nav-link-disabled-color and $btn-padding-y-lg.
-
-// Characters which are escaped by the escape-svg function
-$escaped-characters: (
-  ("<", "%3c"),
-  (">", "%3e"),
-  ("#", "%23"),
-  ("(", "%28"),
-  (")", "%29"),
-) !default;
-
-// Gradient
-//
-// The gradient which is added to components if `$enable-gradients` is `true`
-// This gradient is also added to elements with `.bg-gradient`
-// scss-docs-start variable-gradient
-$gradient: linear-gradient(180deg, color-mix(var(--white) 15%, transparent), color-mix(var(--white) 0%, transparent)) !default;
-// scss-docs-end variable-gradient
-
-// Spacing
-//
-// Control the default styling of most Bootstrap elements by modifying these
-// variables. Mostly focused on spacing.
-// You can add more entries to the $spacers map, should you need more variation.
-
-// scss-docs-start spacer-variables-maps
-$spacer: 1rem !default;
-$spacers: (
-  0: 0,
-  1: $spacer * .25,
-  2: $spacer * .5,
-  3: $spacer,
-  4: $spacer * 1.5,
-  5: $spacer * 3,
-) !default;
-// scss-docs-end spacer-variables-maps
-
-// Position
-//
-// Define the edge positioning anchors of the position utilities.
-
-// scss-docs-start position-map
-$position-values: (
-  0: 0,
-  50: 50%,
-  100: 100%
-) !default;
-// scss-docs-end position-map
-
-// Body
-//
-// Settings for the `<body>` element.
-
-// $body-text-align:           null !default;
-
-// Links
-//
-// Style anchor elements.
-
-// $link-color:                              var !default;
-$link-decoration:                         underline !default;
-$link-underline-offset:                   .2em !default;
-
-$stretched-link-pseudo-element:           after !default;
-$stretched-link-z-index:                  1 !default;
-
-// Icon links
-// scss-docs-start icon-link-variables
-$icon-link-gap:               .375rem !default;
-$icon-link-underline-offset:  .25em !default;
-$icon-link-icon-size:         1em !default;
-$icon-link-icon-transition:   .2s ease-in-out transform !default;
-$icon-link-icon-transform:    translate3d(.25em, 0, 0) !default;
-// scss-docs-end icon-link-variables
-
-// Paragraphs
-//
-// Style p element.
-
-$paragraph-margin-bottom:   1rem !default;
-
-// Components
-//
-// Define common padding and border radius sizes and more.
-
-// scss-docs-start border-variables
-$border-width:                1px !default;
-$border-widths: (
-  1: 1px,
-  2: 2px,
-  3: 3px,
-  4: 4px,
-  5: 5px
-) !default;
-$border-style:                solid !default;
-$border-color:                color-mix(in oklch, var(--gray-100), var(--gray-200)) !default;
-// scss-docs-end border-variables
-
-$transition-base:             all .2s ease-in-out !default;
-$transition-fade:             opacity .15s linear !default;
-
-// scss-docs-start collapse-transition
-$transition-collapse:         height .35s ease !default;
-$transition-collapse-width:   width .35s ease !default;
-// scss-docs-end collapse-transition
-
-// scss-docs-start aspect-ratios
-$aspect-ratios: (
-  "auto": auto,
-  "1x1": #{"1 / 1"},
-  "4x3": #{"4 / 3"},
-  "16x9": #{"16 / 9"},
-  "21x9": #{"21 / 9"}
-) !default;
-// scss-docs-end aspect-ratios
-
-// Typography
-//
-// Font, line-height, and color for body text, headings, and more.
-
-// scss-docs-start font-variables
-// $font-family-sans-serif:      system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !default;
-// $font-family-monospace:       SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !default;
-// $font-family-base:            var(--font-sans-serif) !default;
-// $font-family-code:            var(--font-monospace) !default;
-
-$font-weight-lighter:         lighter !default;
-$font-weight-light:           300 !default;
-$font-weight-normal:          400 !default;
-$font-weight-medium:          500 !default;
-$font-weight-semibold:        600 !default;
-$font-weight-bold:            700 !default;
-$font-weight-bolder:          bolder !default;
-
-$font-weight-base:            $font-weight-normal !default;
-
-$line-height-base:            1.5 !default;
-$line-height-sm:              1.25 !default;
-$line-height-lg:              2 !default;
-
-$h1-font-size: var(--font-size-3xl) !default;
-$h2-font-size: var(--font-size-2xl) !default;
-$h3-font-size: var(--font-size-xl) !default;
-$h4-font-size: var(--font-size-lg) !default;
-$h5-font-size: var(--font-size-md) !default;
-$h6-font-size: var(--font-size-sm) !default;
-// scss-docs-end font-variables
-
-// Font sizes with line-height for utilities
-$font-sizes: () !default;
-// stylelint-disable-next-line scss/dollar-variable-default
-$font-sizes: defaults(
-  (
-    "xs": (
-      "font-size": var(--font-size-xs),
-      "line-height": var(--line-height-xs)
-    ),
-    "sm": (
-      "font-size": var(--font-size-sm),
-      "line-height": var(--line-height-sm)
-    ),
-    "md": (
-      "font-size": var(--font-size-md),
-      "line-height": var(--line-height-md)
-    ),
-    "lg": (
-      "font-size": var(--font-size-lg),
-      "line-height": var(--line-height-lg)
-    ),
-    "xl": (
-      "font-size": var(--font-size-xl),
-      "line-height": var(--line-height-xl)
-    ),
-    "2xl": (
-      "font-size": var(--font-size-2xl),
-      "line-height": var(--line-height-2xl)
-    ),
-    "3xl": (
-      "font-size": var(--font-size-3xl),
-      "line-height": var(--line-height-3xl)
-    ),
-    "4xl": (
-      "font-size": var(--font-size-4xl),
-      "line-height": var(--line-height-4xl)
-    ),
-    "5xl": (
-      "font-size": var(--font-size-5xl),
-      "line-height": var(--line-height-5xl)
-    ),
-    "6xl": (
-      "font-size": var(--font-size-6xl),
-      "line-height": var(--line-height-6xl)
-    ),
-  ),
-  $font-sizes
-);
-
-// scss-docs-start headings-variables
-$headings-margin-bottom:      $spacer * .5 !default;
-$headings-font-family:        null !default;
-$headings-font-style:         null !default;
-$headings-font-weight:        500 !default;
-$headings-line-height:        1.2 !default;
-$headings-color:              inherit !default;
-// scss-docs-end headings-variables
-
-// scss-docs-start type-variables
-
-$legend-margin-bottom:        .5rem !default;
-$legend-font-size:            1.5rem !default;
-$legend-font-weight:          null !default;
-
-$dt-font-weight:              $font-weight-bold !default;
-
-// $list-inline-padding:         .5rem !default;
-// scss-docs-end type-variables
-
-// Z-index master list
-//
-// Warning: Avoid customizing these values. They're used for a bird's eye view
-// of components dependent on the z-axis and are designed to all work together.
-
-// scss-docs-start zindex-stack
-$zindex-dropdown:                   1000 !default;
-$zindex-sticky:                     1020 !default;
-$zindex-fixed:                      1030 !default;
-$zindex-offcanvas-backdrop:         1040 !default;
-$zindex-offcanvas:                  1045 !default;
-$zindex-dialog:                     1055 !default;
-$zindex-popover:                    1070 !default;
-$zindex-tooltip:                    1080 !default;
-$zindex-toast:                      1090 !default;
-// scss-docs-end zindex-stack
-
-// scss-docs-start zindex-levels-map
-$zindex-levels: (
-  n1: -1,
-  0: 0,
-  1: 1,
-  2: 2,
-  3: 3
-) !default;
-// scss-docs-end zindex-levels-map
index cf9f3363e72421bb7e93ea8514e5a9163f19ca24..44ffa78f1027081419868eb4257dd5f564140a4c 100644 (file)
@@ -2,9 +2,6 @@
   $file: "Utilities"
 );
 
-// Configuration
-// @forward "variables";
-
 // Layout & components
 @forward "root";
 
index 6d37eedea379534e3091973f8657096d76b020be..744877bdb7691620f68b356a789e5488d8a81b49 100644 (file)
@@ -1,13 +1,13 @@
 @use "../colors" as *;
 @use "../config" as *;
 @use "../functions" as *;
-@use "../variables" as *;
 @use "../mixins/border-radius" as *;
 @use "../mixins/tokens" as *;
 
 // stylelint-disable declaration-no-important, selector-no-qualifying-type, property-no-vendor-prefix
 
 $reboot-kbd-tokens: () !default;
+$reboot-mark-tokens: () !default;
 
 // scss-docs-start reboot-kbd-tokens
 // stylelint-disable-next-line scss/dollar-variable-default
@@ -24,8 +24,6 @@ $reboot-kbd-tokens: defaults(
 );
 // scss-docs-end reboot-kbd-tokens
 
-$reboot-mark-tokens: () !default;
-
 // scss-docs-start reboot-mark-tokens
 // stylelint-disable-next-line scss/dollar-variable-default
 $reboot-mark-tokens: defaults(
@@ -119,37 +117,37 @@ $reboot-mark-tokens: defaults(
   h1,
   .h1 {
     @extend %heading;
-    font-size: $h1-font-size;
+    font-size: var(--font-size-3xl);
   }
 
   h2,
   .h2 {
     @extend %heading;
-    font-size: $h2-font-size;
+    font-size: var(--font-size-2xl);
   }
 
   h3,
   .h3 {
     @extend %heading;
-    font-size: $h3-font-size;
+    font-size: var(--font-size-xl);
   }
 
   h4,
   .h4 {
     @extend %heading;
-    font-size: $h4-font-size;
+    font-size: var(--font-size-lg);
   }
 
   h5,
   .h5 {
     @extend %heading;
-    font-size: $h5-font-size;
+    font-size: var(--font-size-md);
   }
 
   h6,
   .h6 {
     @extend %heading;
-    font-size: $h6-font-size;
+    font-size: var(--font-size-sm);
   }
 
   // Reset margins on paragraphs
index 29d3de7ed4654fdc34b587d5358ad56cd484b0b7..670d1fc35e3248cd5807ba3f6fba32143f738f6d 100644 (file)
@@ -1,6 +1,5 @@
 @use "sass:map";
 @use "../config" as *;
-@use "../variables" as *;
 @use "../functions" as *;
 @use "../layout/breakpoints" as *;
 @use "../mixins/tokens" as *;
index 423b4171ac03b3db645ca354a983f7c3b35cc7a6..75897491f291fab288fc3027c775da953794836f 100644 (file)
@@ -1,5 +1,4 @@
 @use "../config" as *;
-@use "../variables" as *;
 @use "../functions" as *;
 @use "../mixins/border-radius" as *;
 @use "../mixins/focus-ring" as *;
index 05ea763e9d891865ca12d21fce272b55e57cf1db..23f0ad718f9f254f8a83911809f83ff9c35d4f3c 100644 (file)
@@ -1,4 +1,4 @@
-@use "../variables" as *;
+@use "../config" as *;
 @use "../mixins/transition" as *;
 
 @layer helpers {
index 0a7c9de07d663aa823a397c2ec0f888d8e98c059..00784502f0fbfe66a482c29d726783dd39d11a7c 100644 (file)
@@ -1,6 +1,5 @@
 @use "sass:map";
 @use "../config" as *;
-@use "../variables" as *;
 @use "../layout/breakpoints" as *;
 
 @layer helpers {
index 31bed73bc0a4f4a793c6e45044e63e0986f5286d..c3a319b636fcb08296e68207af0e6537ed1c528c 100644 (file)
@@ -1,4 +1,4 @@
-@use "../variables" as *;
+@use "../config" as *;
 
 @layer helpers {
   .stretched-link {
index c8737e99fa14e26d1fc2e464f78df0c8e151fab7..725311cb8d015efd23ba91c21c9ac2afcfe2336b 100644 (file)
@@ -1,6 +1,6 @@
 // check-unused-imports-disable — test infrastructure imports.
 @use "../../functions" as *;
-@use "../../variables" as *;
+@use "../../config" as *;
 @use "../../mixins" as *;
 
 $true-terminal-output: false;
index 5b94ac57d61b359b9ebabd6c3417dcc111cf0390..bf2db2420d670d35d08a2dc2be903dcf1f610f50 100644 (file)
@@ -1,5 +1,5 @@
 @import "../../functions";
-@import "../../variables";
+@import "../../config";
 @import "../../variables-dark";
 @import "../../maps";
 @import "../../mixins";
index d42053ad70ee0f9c8fb8e2a5a7be20968bb28831..ab55cde714fa5106ef7832055a8b1531c6b0cd97 100644 (file)
@@ -2,7 +2,7 @@
 
 @import "../../colors";
 @import "../../functions";
-@import "../../variables";
+@import "../../config";
 @import "../../variables-dark";
 @import "../../maps";
 @import "../../mixins";
index 9ca6c926774088701498810af4858d1ddaa402ab..d9e9bc4acb59fdbbde7f0e0af60c8648cf18aea6 100644 (file)
@@ -1,5 +1,5 @@
 // check-unused-imports-disable — test infrastructure imports.
-@use "../../variables" as *;
+@use "../../config" as *;
 @use "../../functions" as *;
 @use "../../mixins/utilities" as *;
 
index cf8a8a8dc476d787991aa5b0b04dd11c215c3689..b21e7d3f77cd8ed74f35f10a39bb20e87986620c 100644 (file)
@@ -1,6 +1,6 @@
 // check-unused-imports-disable — test infrastructure imports.
 @use "../../functions";
-@use "../../variables";
+@use "../../config";
 @use "../../maps";
 @use "../../mixins";
 
index e096dc2d71a52a6b7e7765ae780ba6411f125686..3c6ff9291f4ffa4c32a98bc30183c4f50f2a2331 100644 (file)
@@ -94,7 +94,7 @@ Note that Bootstrap’s current implementation does not cover the various *optio
 
 ### Sass variables
 
-<ScssDocs name="collapse-transition" file="scss/_variables.scss" />
+<ScssDocs name="collapse-transition" file="scss/_config.scss" />
 
 ### Classes
 
index 9502e619358af2b4eae92851d3d01a87256b3cfd..e90851aecb9588bcca5a9dd418ee755a3ac1cd1f 100644 (file)
@@ -80,6 +80,8 @@ This `font-family` is applied to the `<body>` and automatically inherited global
 
 All heading elements—`<h1>`—`<h6>` have their `margin-top` removed, `margin-bottom: .5rem` set, and `line-height` tightened. While headings inherit their `color` by default, you can also override it via optional CSS variable, `--bs-heading-color`.
 
+You can also use the `.h1`–`.h6` classes to style headings without using the HTML elements.
+
 <BsTable>
 | Heading | Example |
 | --- | --- |
index ea8b8a4f48af6d83d9eaa70aecc9a1d383f72cad..059461145cc935fe2d813d7cc38a39370ef2e7d8 100644 (file)
@@ -14,11 +14,11 @@ Bootstrap sets basic global display, typography, and link styles. When more cont
 - Set the global link color via `--bs-link-color`.
 - Use `--bs-body-bg` to set a `background-color` on the `<body>` (`#fff` by default).
 
-These styles can be found within `_reboot.scss`, and the global variables are defined in `_variables.scss`. Make sure to set `--font-size-base` in `rem`.
+These styles can be found within `_reboot.scss`, and the global variables are defined in `_config.scss`. Make sure to set `--font-size-base` in `rem`.
 
 ## Headings
 
-All HTML headings, `<h1>` through `<h6>`, are available.
+As mentioned in [Reboot]([[docsref:/content/reboot#headings]]), all HTML headings, `<h1>` through `<h6>`, are available, as element or class selectors.
 
 <BsTable>
 | Heading | Example |
@@ -38,27 +38,33 @@ All HTML headings, `<h1>` through `<h6>`, are available.
 <h4>h4. Bootstrap heading</h4>
 <h5>h5. Bootstrap heading</h5>
 <h6>h6. Bootstrap heading</h6>
-```
-
-`.h1` through `.h6` classes are also available, for when you want to match the font styling of a heading but cannot use the associated HTML element.
 
-<Example code={`<p class="h1">h1. Bootstrap heading</p>
+<p class="h1">h1. Bootstrap heading</p>
 <p class="h2">h2. Bootstrap heading</p>
 <p class="h3">h3. Bootstrap heading</p>
 <p class="h4">h4. Bootstrap heading</p>
 <p class="h5">h5. Bootstrap heading</p>
-<p class="h6">h6. Bootstrap heading</p>`} />
+<p class="h6">h6. Bootstrap heading</p>
+```
 
 Head to our [font size utilities]([[docsref:/utilities/font-size]]) for more control over the `font-size` and `line-height`.
 
-### Customizing headings
+## Global font sizes
 
-Use the included utility classes to recreate the small secondary heading text from Bootstrap 3.
+Headings are sized with our responsive font-size root CSS variables. You can use these yourself, or with our heading classes, [font size utilities]([[docsref:/utilities/font-size]]), and [text size utilities]([[docsref:/utilities/font-size#with-line-height]]) (where you’ll get a `line-height` as well).
 
-<Example code={`<h3>
-    Fancy display heading
-    <small class="text-body-secondary">With faded secondary text</small>
-  </h3>`} />
+Learn more about how these work down below in the [CSS](#css) section.
+
+<Example code={`<div class="fs-xs">.fs-xs</div>
+<div class="fs-sm">.fs-sm</div>
+<div class="fs-md">.fs-md</div>
+<div class="fs-lg">.fs-lg</div>
+<div class="fs-xl">.fs-xl</div>
+<div class="fs-2xl">.fs-2xl</div>
+<div class="fs-3xl">.fs-3xl</div>
+<div class="fs-4xl">.fs-4xl</div>
+<div class="fs-5xl">.fs-5xl</div>
+<div class="fs-6xl">.fs-6xl</div>`} />
 
 ## Inline text elements
 
@@ -240,16 +246,56 @@ Bootstrap uses CSS's `clamp()` function to enable responsive font sizes, allowin
 
 ## CSS
 
+### Variables
+
+All `--font-size-*` and `--line-height-*` CSS custom properties are defined in `_root.scss`, generated from the `$font-sizes` Sass map in `_config.scss`.
+
+```css
+:root {
+  /* Abbreviated list for example purposes… */
+  --font-size-xs: 0.75rem;
+  --font-size-sm: 0.875rem;
+  --font-size-md: 1rem;
+  --font-size-lg: 1.25rem;
+  --font-size-xl: 1.5rem;
+  /* Plus the rest… */
+}
+```
+
 ### Sass variables
 
 Headings have some dedicated variables for sizing and spacing.
 
-<ScssDocs name="headings-variables" file="scss/_variables.scss" />
+<ScssDocs name="headings-variables" file="scss/_config.scss" />
 
 Miscellaneous typography elements covered here and in [Reboot]([[docsref:/content/reboot]]) also have dedicated variables.
 
-<ScssDocs name="type-variables" file="scss/_variables.scss" />
+<ScssDocs name="type-variables" file="scss/_config.scss" />
+
+### Sass maps
+
+The `$font-sizes` map in `_config.scss` defines Bootstrap's type scale. Each key (e.g., `xs`, `md`, `3xl`) holds a nested map with `font-size` and `line-height` values. Larger sizes use `clamp()` for responsive scaling.
+
+<ScssDocs name="font-sizes" file="scss/_config.scss" />
+
+You can override individual keys, replace the entire map, or remove keys by setting them to `null`:
+
+```scss
+// Per-key override
+@use "bootstrap/scss/config" with (
+  $font-sizes: ("xs": ("font-size": .625rem, "line-height": 1.25))
+);
+
+// Remove a key
+@use "bootstrap/scss/config" with (
+  $font-sizes: ("6xl": null)
+);
+```
+
+### Sass loops
+
+The font-size map is used to generate `--font-size-*` and `--line-height-*` CSS custom properties in `_root.scss`, as well as `.fs-*` and `.text-*` utility classes in `_utilities.scss`.
 
-### Sass mixins
+<ScssDocs name="root-font-size-loop" file="scss/_root.scss" />
 
-There are no dedicated mixins for typography.
+<ScssDocs name="utils-font-size" file="scss/_utilities.scss" />
index 990f778a92eee90d5adce6bf9e0ce10a08d9cbfe..bb76ac5d25be0056650a825cde1609e96591c328 100644 (file)
@@ -196,7 +196,7 @@ Dozens of root level CSS variables are repeated as overrides for dark mode. Thes
 
 CSS variables for our dark color mode are partially generated from dark mode specific Sass variables in `_variables-dark.scss`. This also includes some custom overrides for changing the colors of embedded SVGs used throughout our components.
 
-{/* <ScssDocs name="sass-dark-mode-vars" file="scss/_variables.scss" /> */}
+{/* <ScssDocs name="sass-dark-mode-vars" file="scss/_config.scss" /> */}
 
 ### Sass mixins
 
index 343da0881030b2c0bd3a6d9d7b2afd1f39bbdf4f..7c4cd7057118a7fc7629c186739f059059e09bc0 100644 (file)
@@ -16,7 +16,7 @@ export const additionalColors = [
 
 There are 13 shades of 16 colors in Bootstrap's new color system, meaning we have 208 colors to work with when using Bootstrap.
 
-All Bootstrap colors are available as Sass variables and a Sass map in `scss/_variables.scss` file. To avoid increased file sizes, we don’t create text or background color classes for each of these variables. Instead, we choose a subset of these colors for a [theme palette]([[docsref:/customize/theme]]).
+All Bootstrap colors are available as Sass variables and a Sass map in `scss/_config.scss` file. To avoid increased file sizes, we don’t create text or background color classes for each of these variables. Instead, we choose a subset of these colors for a [theme palette]([[docsref:/customize/theme]]).
 
 Be sure to monitor contrast ratios as you customize colors. As shown below, we’ve added three contrast ratios to each of the main colors—one for the swatch’s current colors, one for against white, and one for against black.
 
index 613cd727fc4a2b7fbc35a7d70f3fd0e144f15046..0400a72e524cbf97e338fddb18dcef9473aa60af 100644 (file)
@@ -70,7 +70,7 @@ Bootstrap provides custom `:focus` styles using a combination of Sass and CSS va
 
 In our Sass, we set default values that can be customized before compiling.
 
-{/* <ScssDocs name="focus-ring-variables" file="scss/_variables.scss" /> */}
+{/* <ScssDocs name="focus-ring-variables" file="scss/_config.scss" /> */}
 
 Those variables are then reassigned to `:root` level CSS variables that can be customized in real-time, including with options for `x` and `y` offsets (which default to their fallback value of `0`).
 
index 2c72b7fe3cbef78b0e29bcc9846599bec2d2b4de..e964543163de5603fd4a3ea2cce8d9048686f256 100644 (file)
@@ -5,7 +5,7 @@ description: Quickly customize Bootstrap with built-in variables to easily toggl
 
 Customize Bootstrap with our built-in custom variables file and easily toggle global CSS preferences with new `$enable-*` Sass variables. Override a variable’s value and recompile with `npm run test` as needed.
 
-You can find and customize these variables for key global options in Bootstrap’s `scss/_variables.scss` file.
+You can find and customize these variables for key global options in Bootstrap’s `scss/_config.scss` file.
 
 <BsTable class="table table-options">
 | Variable                       | Values                             | Description                                                                            |
index c26c2d7a17daa2ac983b996549b27b3eb5dde978..213d94499abbf026035a69e1398a0fc4fa52de75 100644 (file)
@@ -38,6 +38,6 @@ robots: noindex,follow
 
 <Example code={`<div class="test">This is a test.</div>`} />
 
-<ScssDocs name="variable-gradient" file="scss/_variables.scss" />
+<ScssDocs name="variable-gradient" file="scss/_config.scss" />
 
 <JsDocs name="live-toast" file="site/src/assets/partials/snippets.js" />
index c942ab732545ccf2c657c9279ce9fd5312c222f6..cdaa566a5e59934a47f2483fbca1070a22ff69a7 100644 (file)
@@ -363,7 +363,7 @@ Two mixins are combined, through our [loop](#sass-loops), to generate our form v
 
 ### Sass maps
 
-This is the validation Sass map from `_variables.scss`. Override or extend this to generate different or additional states.
+This is the validation Sass map from `forms/_form-variables.scss`. Override or extend this to generate different or additional states.
 
 <ScssDocs name="form-validation-states" file="scss/forms/_form-variables.scss" />
 
@@ -377,4 +377,4 @@ Used to iterate over `$form-validation-states` map values to generate our valida
 
 ### Customizing
 
-Validation states can be customized via Sass with the `$form-validation-states` map. Located in our `_variables.scss` file, this Sass map is how we generate the default `valid`/`invalid` validation states. Included is a nested map for customizing each state’s color, icon, tooltip color, and focus shadow. While no other states are supported by browsers, those using custom styles can easily add more complex form feedback.
+Validation states can be customized via Sass with the `$form-validation-states` map. Located in our `forms/_form-variables.scss` file, this Sass map is how we generate the default `valid`/`invalid` validation states. Included is a nested map for customizing each state’s color, icon, tooltip color, and focus shadow. While no other states are supported by browsers, those using custom styles can easily add more complex form feedback.
index 7f90ca6a1d72d7880d9207a57a76f7bccc170e74..98c33fa0e2cd6d009f3c35aa122b41d71ea41c82 100644 (file)
@@ -179,7 +179,7 @@ Some components in Bootstrap are built with overlapping elements to prevent doub
 
 Components built with overlays also have a predefined z-index scale, beginning at `1000`. This starting number was chosen arbitrarily and serves as a small buffer between our styles and your project’s custom styles.
 
-<ScssDocs name="zindex-stack" file="scss/_variables.scss" />
+<ScssDocs name="zindex-stack" file="scss/_config.scss" />
 
 Each overlay component increases its `z-index` value slightly in such a way that common UI principles allow user focused or hovered elements to remain in view at all times. For example, a modal is document blocking (e.g., you cannot take any other action save for the modal’s action), so we put that above our navbars.
 
index 934d1312decc1a889e84a1c3b9fbc5fb80c2bf2c..8e0575d9910b4aeda5c6a5341b0673b664a35614 100644 (file)
@@ -42,7 +42,7 @@ By default, there is no `--bs-focus-ring-x`, `--bs-focus-ring-y`, or `--bs-focus
 
 Customize the focus ring Sass variables to modify all usage of the focus ring styles across your Bootstrap-powered project.
 
-{/* <ScssDocs name="focus-ring-variables" file="scss/_variables.scss" /> */}
+{/* <ScssDocs name="focus-ring-variables" file="scss/_config.scss" /> */}
 
 ### Sass utilities API
 
index d4914cdc3397a1e2b7c29f7cb1dbc5c45f31d57c..31d92c51e2320d43a46395f5c1b93e9f8415b711 100644 (file)
@@ -72,7 +72,7 @@ Customize the color by overriding the `--bs-link-*` CSS variable:
 
 Customize the icon link Sass variables to modify all icon link styles across your Bootstrap-powered project.
 
-<ScssDocs name="icon-link-variables" file="scss/_variables.scss" />
+<ScssDocs name="icon-link-variables" file="scss/_config.scss" />
 
 ### Sass utilities API
 
index 99b42714cb675bd5cf6c791f92ade16e334c5aa3..358862bc563e39d57200985dfc335921236ff69a 100644 (file)
@@ -30,7 +30,7 @@ Bootstrap includes six default breakpoints, sometimes referred to as _grid tiers
 
 Each breakpoint was chosen to comfortably hold containers whose widths are multiples of 12. Breakpoints are also representative of a subset of common device sizes and viewport dimensions—they don’t specifically target every use case or device. Instead, the ranges provide a strong and consistent foundation to build on for nearly any device.
 
-These breakpoints are customizable via Sass—you’ll find them in a Sass map in our `_variables.scss` stylesheet.
+These breakpoints are customizable via Sass—you’ll find them in a Sass map in our `_config.scss` stylesheet.
 
 <ScssDocs name="breakpoints" file="scss/_config.scss" />
 
index 50b05d8c53d3d59971ebf2139bd45c525a1d6eef..90549cb6aeb1caf09658d9b072cc5d58b7d8c4dd 100644 (file)
@@ -66,7 +66,7 @@ Use `.container-fluid` for a full width container, spanning the entire width of
 
 ### Sass variables
 
-As shown above, Bootstrap generates a series of predefined container classes to help you build the layouts you desire. You may customize these predefined container classes by modifying the Sass map (found in `_variables.scss`) that powers them:
+As shown above, Bootstrap generates a series of predefined container classes to help you build the layouts you desire. You may customize these predefined container classes by modifying the Sass map (found in `_config.scss`) that powers them:
 
 <ScssDocs name="container-max-widths" file="scss/_config.scss" />
 
index d1fbd02040956f95141658b2a2f93c3dec13cbbf..459ef868cade0d074ff33f063267802d44af95f2 100644 (file)
@@ -9,6 +9,6 @@ These higher values start at an arbitrary number, high and specific enough to id
 
 We don’t encourage customization of these individual values; should you change one, you likely need to change them all.
 
-<ScssDocs name="zindex-stack" file="scss/_variables.scss" />
+<ScssDocs name="zindex-stack" file="scss/_config.scss" />
 
 To handle overlapping borders within components (e.g., buttons and inputs in input groups), we use low single digit `z-index` values of `1`, `2`, and `3` for default, hover, and active states. On hover/focus/active, we bring a particular element to the forefront with a higher `z-index` value to show their border over the sibling elements.
index b092c25e72359dd1e183256dda0a4e8fd42cf01a..0d70f4d5a633d375def8182e77003306c25319f2 100644 (file)
@@ -55,7 +55,8 @@ Bootstrap 6 is a major release with many breaking changes to modernize our codeb
 - New, streamlined color modes and theming.
   - Removed `_maps.scss`
   - Removed `_variables-dark.scss`
-  - Added `_colors.scss`, splitting them out from `_variables.scss`,
+  - Added `_colors.scss`, splitting colors out to their own file
+  - Removed `_variables.scss`, consolidating all variables into `_config.scss`
   - Added `_theme.scss` where we setup all our global theming for how colors are applied
 - **Updated lg, xl, and 2xl breakpoints and containers.**
   - Increased the `lg` breakpoint from 992px to 1024px; it's container remains the same at 960px.
index 34adc7aa90f90367a72a0df7e0c3af0a6d9ab761..71ee1532820cc00a7a03c7c3b086cb3c0bdce473 100644 (file)
@@ -70,6 +70,6 @@ This CSS variable makes it easy to modify the aspect ratio across breakpoints. T
 
 ## Sass map
 
-Within `_variables.scss`, you can change the aspect ratios you want to use. Here's our default `$aspect-ratios` map. Modify the map as you like and recompile your Sass to put them to use.
+Within `_config.scss`, you can change the aspect ratios you want to use. Here's our default `$aspect-ratios` map. Modify the map as you like and recompile your Sass to put them to use.
 
-<ScssDocs name="aspect-ratios" file="scss/_variables.scss" />
+<ScssDocs name="aspect-ratios" file="scss/_config.scss" />
index bc194b91a890f9889eb413bafcd7afba38e3d2d1..05a867037c8a8f22cfdb28aa425a17f70d5e4737 100644 (file)
@@ -78,19 +78,19 @@ In addition to the following Sass functionality, consider reading about our incl
 
 Most `background-color` utilities are generated by our theme colors, reassigned from our generic color palette variables.
 
-{/*<ScssDocs name="color-variables" file="scss/_variables.scss" />*/}
+{/*<ScssDocs name="color-variables" file="scss/_config.scss" />*/}
 
-{/* <ScssDocs name="theme-color-variables" file="scss/_variables.scss" /> */}
+{/* <ScssDocs name="theme-color-variables" file="scss/_config.scss" /> */}
 
-<ScssDocs name="variable-gradient" file="scss/_variables.scss" />
+<ScssDocs name="variable-gradient" file="scss/_config.scss" />
 
 Grayscale colors are also available, but only a subset are used to generate any utilities.
 
-{/*<ScssDocs name="gray-color-variables" file="scss/_variables.scss" />*/}
+{/*<ScssDocs name="gray-color-variables" file="scss/_config.scss" />*/}
 
 Variables for setting `background-color` in `.bg-*-subtle` utilities in light and dark mode:
 
-{/* <ScssDocs name="theme-bg-subtle-variables" file="scss/_variables.scss" /> */}
+{/* <ScssDocs name="theme-bg-subtle-variables" file="scss/_config.scss" /> */}
 
 {/* <ScssDocs name="theme-bg-subtle-dark-variables" file="scss/_variables-dark.scss" /> */}
 
@@ -98,11 +98,11 @@ Variables for setting `background-color` in `.bg-*-subtle` utilities in light an
 
 Theme colors are then put into a Sass map so we can loop over them to generate our utilities, component modifiers, and more.
 
-{/* <ScssDocs name="theme-colors-map" file="scss/_variables.scss" /> */}
+{/* <ScssDocs name="theme-colors-map" file="scss/_config.scss" /> */}
 
 Grayscale colors are also available as a Sass map. **This map is not used to generate any utilities.**
 
-{/*<ScssDocs name="gray-colors-map" file="scss/_variables.scss" />*/}
+{/*<ScssDocs name="gray-colors-map" file="scss/_config.scss" />*/}
 
 ### Sass mixins
 
index 4d887489772999e8b40345e22143333f8bac542b..d7f77a4ec79eb532706fe392ecd95b52db6f4a54 100644 (file)
@@ -80,7 +80,7 @@ Change the opacity of a border color by using any of the `.border-<percentage>`
 
 Variables for setting `border-color` in `.border-*-subtle` utilities in light and dark mode:
 
-{/* <ScssDocs name="theme-border-subtle-variables" file="scss/_variables.scss" /> */}
+{/* <ScssDocs name="theme-border-subtle-variables" file="scss/_config.scss" /> */}
 
 {/* <ScssDocs name="theme-border-subtle-dark-variables" file="scss/_variables-dark.scss" /> */}
 
index 80b2bc3ffeca0db4d61f2e91a3ee91bab41ab4f3..c20aa9989b7dae442b630cb4e42bff2039205fdd 100644 (file)
@@ -54,7 +54,7 @@ Or remove borders:
 
 ### Sass variables
 
-<ScssDocs name="border-variables" file="scss/_variables.scss" />
+<ScssDocs name="border-variables" file="scss/_config.scss" />
 
 ### Sass mixins
 
index adae092c8be0a61bcd05545a1588381410955b54..df7d2be2bb119374d02f5db4f9dfd26eed09d22a 100644 (file)
@@ -111,7 +111,7 @@ In addition to the following Sass functionality, consider reading about our incl
 
 Most `color` utilities are generated by our theme colors, reassigned from our generic color palette variables.
 
-{/* <ScssDocs name="theme-color-variables" file="scss/_variables.scss" /> */}
+{/* <ScssDocs name="theme-color-variables" file="scss/_config.scss" /> */}
 
 Grayscale colors are also available, but only a subset are used to generate any utilities.
 
@@ -119,11 +119,11 @@ Grayscale colors are also available, but only a subset are used to generate any
 
 Theme colors are then put into a Sass map so we can loop over them to generate our utilities, component modifiers, and more.
 
-{/* <ScssDocs name="theme-colors-map" file="scss/_variables.scss" /> */}
+{/* <ScssDocs name="theme-colors-map" file="scss/_config.scss" /> */}
 
 Grayscale colors are also available as a Sass map. **This map is not used to generate any utilities.**
 
-{/*<ScssDocs name="gray-colors-map" file="scss/_variables.scss" />*/}
+{/*<ScssDocs name="gray-colors-map" file="scss/_config.scss" />*/}
 
 ### Sass utilities API
 
index dfa6081ad5d495859312d33f573f61833865759b..72a4227dc088ebf99b308ca7f86ecbd4224c4c01 100644 (file)
@@ -72,11 +72,11 @@ Customize your **available** `font-size`s by modifying the `$font-sizes` Sass ma
 
 ## CSS
 
-### Variables
+### Sass map
 
-Root font size variables are declared in our root file in `scss/_root.scss`.
+Font sizes and their associated line heights are defined in the `$font-sizes` map in `scss/_config.scss`. CSS custom properties and utility classes are generated from this map.
 
-<ScssDocs name="root-font-size-variables" file="scss/_root.scss" />
+<ScssDocs name="font-sizes" file="scss/_config.scss" />
 
 ### Sass utilities API
 
index 953bff3a8c88d5f2fe57047df39f3f941a4962de..20d9305e89269c18a790a6d7226126159b4f6ee7 100644 (file)
@@ -90,7 +90,7 @@ Adjust the `overflow-y` property to affect the overflow of content vertically.
 <div class="overflow-y-scroll">...</div>
 ```
 
-Using Sass variables, you may customize the overflow utilities by changing the `$overflows` variable in `_variables.scss`.
+Using Sass variables, you may customize the overflow utilities by changing the `$overflows` variable in `_config.scss`.
 
 ## CSS
 
index 2e1f79028225c12788bd98710cc163af65b9adda..8f9f7e74af4f23187bc0ede895d4ca9b639f387b 100644 (file)
@@ -116,7 +116,7 @@ You can use these classes with existing components to create new ones. Remember
 
 Default position utility values are declared in a Sass map, then used to generate our utilities.
 
-<ScssDocs name="position-map" file="scss/_variables.scss" />
+<ScssDocs name="position-map" file="scss/_config.scss" />
 
 ### Sass utilities API
 
index 570d18613e8e217c14b6355f9d893596a7380abd..04e63936064192f30a3fd3e6e8844db8bee405ef 100644 (file)
@@ -15,7 +15,7 @@ Use width utilities to set the width of elements. Width utilities are generated
 
 ## Width
 
-Set width using `.w-{size}` utilities for any size from `1` to `12`. These classes are generated from the utility API based on the `$sizes` map in `_variables.scss`. Each number is a multiple of the `$spacer` variable, which defaults to `1rem`.
+Set width using `.w-{size}` utilities for any size from `1` to `12`. These classes are generated from the utility API based on the `$sizes` map in `_config.scss`. Each number is a multiple of the `$spacer` variable, which defaults to `1rem`.
 
 <Example
   class="bd-example-flex"
index 8e902ef6fa625f2238b26fc4de2cd8f0f0c4c72d..62d0869eb43d3531a014140c74df9df3ead0401c 100644 (file)
@@ -38,7 +38,7 @@ Learn about our [`z-index` approach]([[docsref:/getting-started/approach#z-index
 
 Customize this Sass map to change the available values and generated utilities.
 
-<ScssDocs name="zindex-levels-map" file="scss/_variables.scss" />
+<ScssDocs name="zindex-levels-map" file="scss/_config.scss" />
 
 ### Sass utilities API
 
index 1218783bfafdeccc5fc8749f98497672d5ffe7a1..ff09512a0b235491f9f5c88e8a513ea63dc2f58d 100644 (file)
@@ -1,5 +1,4 @@
 @use "../../../scss/config" as *;
-@use "../../../scss/variables" as *;
 @use "../../../scss/layout/breakpoints" as *;
 @use "../../../scss/mixins/border-radius" as *;
 @use "variables" as *;