2025-08-28 12:14:59 +08:00
@use " sass:color " ;
@use " sass:string " ;
@use " colors " as * ;
@use " config " as * ;
@use " functions " as * ;
2014-12-03 06:02:35 +08:00
// Variables
2015-03-09 22:18:25 +08:00
//
2017-06-13 23:25:55 +08:00
// Variables should follow the `$component-state-property-size` formula for
2017-06-13 23:25:18 +08:00
// consistent naming. Ex: $nav-link-disabled-color and $modal-content-box-shadow-xs.
2015-08-11 14:38:41 +08:00
2021-12-23 20:58:25 +08:00
// scss-docs-start theme-color-variables
2025-09-03 11:59:19 +08:00
$primary : $blue-500 !default ;
2021-12-23 20:58:25 +08:00
$secondary : $gray-600 !default ;
2025-08-28 12:14:59 +08:00
$success : $green-500 !default ;
$info : $cyan-500 !default ;
$warning : $yellow-500 !default ;
$danger : $red-500 !default ;
2021-12-23 20:58:25 +08:00
$light : $gray-100 !default ;
$dark : $gray-900 !default ;
// scss-docs-end theme-color-variables
// scss-docs-start theme-colors-map
$theme-colors : (
" primary " : $ primary ,
" secondary " : $ secondary ,
" success " : $ success ,
" info " : $ info ,
" warning " : $ warning ,
" danger " : $ danger ,
" light " : $ light ,
" dark " : $ dark
) ! default ;
// scss-docs-end theme-colors-map
2025-08-28 12:14:59 +08:00
// // scss-docs-start theme-text-variables
// $primary-text-emphasis: shade-color($primary, 60%) !default;
// $secondary-text-emphasis: shade-color($secondary, 60%) !default;
// $success-text-emphasis: shade-color($success, 60%) !default;
// $info-text-emphasis: shade-color($info, 60%) !default;
// $warning-text-emphasis: shade-color($warning, 60%) !default;
// $danger-text-emphasis: shade-color($danger, 60%) !default;
// $light-text-emphasis: $gray-700 !default;
// $dark-text-emphasis: $gray-700 !default;
// // scss-docs-end theme-text-variables
// // scss-docs-start theme-bg-subtle-variables
// $primary-bg-subtle: tint-color($primary, 80%) !default;
// $secondary-bg-subtle: tint-color($secondary, 80%) !default;
// $success-bg-subtle: tint-color($success, 80%) !default;
// $info-bg-subtle: tint-color($info, 80%) !default;
// $warning-bg-subtle: tint-color($warning, 80%) !default;
// $danger-bg-subtle: tint-color($danger, 80%) !default;
// $light-bg-subtle: color.mix($gray-100, $white) !default;
// $dark-bg-subtle: $gray-400 !default;
// // scss-docs-end theme-bg-subtle-variables
// // scss-docs-start theme-border-subtle-variables
// $primary-border-subtle: tint-color($primary, 60%) !default;
// $secondary-border-subtle: tint-color($secondary, 60%) !default;
// $success-border-subtle: tint-color($success, 60%) !default;
// $info-border-subtle: tint-color($info, 60%) !default;
// $warning-border-subtle: tint-color($warning, 60%) !default;
// $danger-border-subtle: tint-color($danger, 60%) !default;
// $light-border-subtle: $gray-200 !default;
// $dark-border-subtle: $gray-500 !default;
// // scss-docs-end theme-border-subtle-variables
Add dark mode support (#35857)
* Add dark mode to docs
* Minor fix: missing space indentation
* Minor fix: revert utilities/z-index added-in modification
* Remove prev: and next: from doc because extracted to another PR
* Use .bg-body-tertiary in all Utilities > Overflow examples
* fix example
* Fix up spacing examples
* Update box-shadow Sass variables and utilities to auto-adjust to color modes
* Remove unused docs class
* Refactor form styles to use CSS variable for background images on .form-check and .form-switch
* Fix docs selector
* Rename shortcut for clarity
* Heading consistency
* Reintroduce missing 4th grid item in Utilities > Spacing example
* Fix bundlewatch
* .bd-callout* rendering is OK so removing comments in the code
* Update scss/_utilities.scss
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
* Fix gutters example styling
* Fix text colors on background utils docs
* redesign and fix up position marker example, which doesn't show nicely in darkmode but at least isn't broken
* fix some color utils examples
* Deprecate mixin notice
* Deprecate notice for list-group-item-variant() mixin
* Revamp new link CSS vars
* Use map-keys in some each Sass files
* Remove list-group-item-variant mixin ref in sass loop desc
* Display CSS vars scoped to our built-in dark mode
* Revert previous commit
* Fix list group variant link
* Fix typo
* Remove imports of alert/list-group mixins in scss/_mixins.scss
* Small formatting + comments removal in scss/_content.scss
* Fix alert links colors
* fix dropdown border-radius mixin
* fix link color and underline again, this time using CSS var override for color var and fallback value for the underline
* fix colors on docs navbar for dark mode
* remove two changes
* missing ref
* another link underline fix, just use sass vars for link decoration for now
* missing color bg docs, plus move dropdown override to scss
* more changes from review
* fix some examples, drop unused docs navbar styles, update docs navbar color mode to use mixin
* Few fixes around type
- Restored CSS variable for color on headings, this time with a fallback value
- In conjunction, restored and wrapped the default CSS var with a null value check
- Split headings and paragraphs docs in Reboot, elaborated on them
* Restyle custom details > summary element in docs
* Rewrite some migration docs
* fix form checks
* Fix up some navbar styling, tweak docs callout
* Fix select images, mostly for validation styling
* Clean up some migration notes, document some new form control CSS vars, mention new variables-dark in sass docs
* Update site/content/docs/5.2/components/scrollspy.md
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
* Apply suggestions from code review
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
* mention form control css vars in migration guide
* Tweak grid and flex docs background examples
* clarify some docs
* fix some more things
Co-authored-by: Julien Déramond <juderamond@gmail.com>
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
2022-11-29 14:30:26 +08:00
2019-07-20 09:57:12 +08:00
// Characters which are escaped by the escape-svg function
$escaped-characters : (
2020-06-09 22:00:07 +08:00
( " < " , " %3c " ) ,
( " > " , " %3e " ) ,
( " # " , " %23 " ) ,
( " ( " , " %28 " ) ,
( " ) " , " %29 " ) ,
2019-07-20 09:57:12 +08:00
) ! default ;
2018-09-17 05:32:11 +08:00
2025-08-28 12:14:59 +08:00
// // Options
// //
// // Quickly modify global styling by enabling or disabling optional features.
// $enable-caret: true !default;
// $enable-rounded: true !default;
// $enable-shadows: false !default;
// $enable-gradients: false !default;
// $enable-transitions: true !default;
// $enable-reduced-motion: true !default;
// $enable-smooth-scroll: true !default;
// $enable-grid-classes: true !default;
// $enable-container-classes: true !default;
// $enable-cssgrid: false !default;
// $enable-button-pointers: true !default;
// $enable-rfs: true !default;
// $enable-validation-icons: true !default;
// $enable-negative-margins: false !default;
// $enable-deprecation-messages: true !default;
// $enable-dark-mode: true !default;
// $color-mode-type: data !default; // `data` or `media-query`
// // Prefix for :root CSS variables
// $prefix: bs- !default;
// $color-mode-type: "media-query" !default;
// $color-contrast-dark: #000 !default;
// $color-contrast-light: #fff !default;
// $min-contrast-ratio: 4.5 !default;
2020-09-30 13:32:58 +08:00
2020-04-14 22:28:20 +08:00
// Gradient
//
// The gradient which is added to components if `$enable-gradients` is `true`
// This gradient is also added to elements with `.bg-gradient`
2021-01-17 06:06:19 +08:00
// scss-docs-start variable-gradient
2020-04-14 22:28:20 +08:00
$gradient : linear-gradient ( 180 deg , rgba ( $white , .15 ) , rgba ( $white , 0 )) !default ;
2021-01-17 06:06:19 +08:00
// scss-docs-end variable-gradient
2018-09-17 05:32:11 +08:00
2016-12-25 04:35:08 +08:00
// Spacing
2015-08-11 14:38:41 +08:00
//
// Control the default styling of most Bootstrap elements by modifying these
// variables. Mostly focused on spacing.
2015-12-28 02:20:39 +08:00
// You can add more entries to the $spacers map, should you need more variation.
2015-08-11 14:38:41 +08:00
2021-02-11 11:29:59 +08:00
// scss-docs-start spacer-variables-maps
2017-03-06 04:20:44 +08:00
$spacer : 1 rem !default ;
2020-02-15 21:41:59 +08:00
$spacers : (
0 : 0 ,
2021-06-15 00:35:30 +08:00
1 : $spacer * .25 ,
2 : $spacer * .5 ,
2020-02-15 21:41:59 +08:00
3 : $spacer ,
4 : $spacer * 1 .5 ,
5 : $spacer * 3 ,
) ! default ;
2021-02-11 11:29:59 +08:00
// scss-docs-end spacer-variables-maps
2018-09-17 05:32:11 +08:00
2020-09-21 10:42:41 +08:00
// Position
//
// Define the edge positioning anchors of the position utilities.
2021-02-11 11:29:59 +08:00
// scss-docs-start position-map
2020-09-21 10:42:41 +08:00
$position-values : (
0 : 0 ,
50 : 50 % ,
100 : 100 %
) ! default ;
2021-02-11 11:29:59 +08:00
// scss-docs-end position-map
2020-09-21 10:42:41 +08:00
2016-12-25 04:35:08 +08:00
// Body
2015-08-11 14:38:41 +08:00
//
// Settings for the `<body>` element.
2014-12-03 06:02:35 +08:00
2019-07-15 19:34:01 +08:00
$body-text-align : null !default ;
Add dark mode support (#35857)
* Add dark mode to docs
* Minor fix: missing space indentation
* Minor fix: revert utilities/z-index added-in modification
* Remove prev: and next: from doc because extracted to another PR
* Use .bg-body-tertiary in all Utilities > Overflow examples
* fix example
* Fix up spacing examples
* Update box-shadow Sass variables and utilities to auto-adjust to color modes
* Remove unused docs class
* Refactor form styles to use CSS variable for background images on .form-check and .form-switch
* Fix docs selector
* Rename shortcut for clarity
* Heading consistency
* Reintroduce missing 4th grid item in Utilities > Spacing example
* Fix bundlewatch
* .bd-callout* rendering is OK so removing comments in the code
* Update scss/_utilities.scss
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
* Fix gutters example styling
* Fix text colors on background utils docs
* redesign and fix up position marker example, which doesn't show nicely in darkmode but at least isn't broken
* fix some color utils examples
* Deprecate mixin notice
* Deprecate notice for list-group-item-variant() mixin
* Revamp new link CSS vars
* Use map-keys in some each Sass files
* Remove list-group-item-variant mixin ref in sass loop desc
* Display CSS vars scoped to our built-in dark mode
* Revert previous commit
* Fix list group variant link
* Fix typo
* Remove imports of alert/list-group mixins in scss/_mixins.scss
* Small formatting + comments removal in scss/_content.scss
* Fix alert links colors
* fix dropdown border-radius mixin
* fix link color and underline again, this time using CSS var override for color var and fallback value for the underline
* fix colors on docs navbar for dark mode
* remove two changes
* missing ref
* another link underline fix, just use sass vars for link decoration for now
* missing color bg docs, plus move dropdown override to scss
* more changes from review
* fix some examples, drop unused docs navbar styles, update docs navbar color mode to use mixin
* Few fixes around type
- Restored CSS variable for color on headings, this time with a fallback value
- In conjunction, restored and wrapped the default CSS var with a null value check
- Split headings and paragraphs docs in Reboot, elaborated on them
* Restyle custom details > summary element in docs
* Rewrite some migration docs
* fix form checks
* Fix up some navbar styling, tweak docs callout
* Fix select images, mostly for validation styling
* Clean up some migration notes, document some new form control CSS vars, mention new variables-dark in sass docs
* Update site/content/docs/5.2/components/scrollspy.md
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
* Apply suggestions from code review
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
* mention form control css vars in migration guide
* Tweak grid and flex docs background examples
* clarify some docs
* fix some more things
Co-authored-by: Julien Déramond <juderamond@gmail.com>
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
2022-11-29 14:30:26 +08:00
$body-color : $gray-900 !default ;
$body-bg : $white !default ;
$body-secondary-color : rgba ( $body-color , .75 ) !default ;
$body-secondary-bg : $gray-200 !default ;
$body-tertiary-color : rgba ( $body-color , .5 ) !default ;
$body-tertiary-bg : $gray-100 !default ;
2023-01-06 11:59:24 +08:00
$body-emphasis-color : $black !default ;
2015-08-11 14:38:41 +08:00
2016-12-25 04:35:08 +08:00
// Links
2015-08-11 14:38:41 +08:00
//
// Style anchor elements.
2014-12-03 06:02:35 +08:00
2019-07-25 15:41:13 +08:00
$link-color : $primary !default ;
2020-03-13 00:35:36 +08:00
$link-decoration : underline !default ;
2025-09-03 11:59:19 +08:00
$link-underline-offset : .2 em !default ;
2020-10-13 15:58:06 +08:00
$link-shade-percentage : 20 % !default ;
2020-11-14 02:50:59 +08:00
$link-hover-color : shift-color ( $link-color , $link-shade-percentage ) !default ;
2020-03-20 16:35:55 +08:00
$link-hover-decoration : null !default ;
2018-09-17 05:32:11 +08:00
2019-06-26 12:54:51 +08:00
$stretched-link-pseudo-element : after !default ;
$stretched-link-z-index : 1 !default ;
2023-03-03 02:32:43 +08:00
// Icon links
// scss-docs-start icon-link-variables
$icon-link-gap : .375 rem !default ;
$icon-link-underline-offset : .25 em !default ;
$icon-link-icon-size : 1 em !default ;
$icon-link-icon-transition : .2 s ease-in-out transform !default ;
$icon-link-icon-transform : translate3d ( .25 em , 0 , 0 ) !default ;
// scss-docs-end icon-link-variables
2017-08-11 14:00:01 +08:00
// Paragraphs
//
// Style p element.
2017-10-04 19:02:35 +08:00
$paragraph-margin-bottom : 1 rem !default ;
2017-08-11 14:00:01 +08:00
2014-12-03 06:02:35 +08:00
2017-03-06 04:20:44 +08:00
// Components
//
// Define common padding and border radius sizes and more.
2021-02-11 11:29:59 +08:00
// scss-docs-start border-variables
2017-10-04 19:02:35 +08:00
$border-width : 1 px !default ;
2020-09-09 16:28:52 +08:00
$border-widths : (
1 : 1 px ,
2 : 2 px ,
3 : 3 px ,
4 : 4 px ,
5 : 5px
) ! default ;
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-14 01:13:09 +08:00
$border-style : solid !default ;
2025-09-03 11:59:19 +08:00
$border-color : color . mix ( $gray-300 , $gray-400 ) !default ;
2022-04-30 04:59:41 +08:00
$border-color-translucent : rgba ( $black , .175 ) !default ;
2021-02-11 11:29:59 +08:00
// scss-docs-end border-variables
2020-10-31 04:42:11 +08:00
2021-02-11 11:29:59 +08:00
// scss-docs-start border-radius-variables
2022-03-01 09:22:14 +08:00
$border-radius : .375 rem !default ;
$border-radius-sm : .25 rem !default ;
$border-radius-lg : .5 rem !default ;
$border-radius-xl : 1 rem !default ;
2023-01-07 03:46:03 +08:00
$border-radius-xxl : 2 rem !default ;
2020-10-31 04:42:11 +08:00
$border-radius-pill : 50 rem !default ;
2021-02-11 11:29:59 +08:00
// scss-docs-end border-radius-variables
2017-03-06 04:20:44 +08:00
2021-02-11 11:29:59 +08:00
// scss-docs-start box-shadow-variables
2023-01-08 07:53:12 +08:00
$box-shadow : 0 .5 rem 1 rem rgba ( $black , .15 ) !default ;
$box-shadow-sm : 0 .125 rem .25 rem rgba ( $black , .075 ) !default ;
$box-shadow-lg : 0 1 rem 3 rem rgba ( $black , .175 ) !default ;
$box-shadow-inset : inset 0 1 px 2 px rgba ( $black , .075 ) !default ;
2021-02-11 11:29:59 +08:00
// scss-docs-end box-shadow-variables
2018-04-01 13:07:48 +08:00
2017-10-04 19:02:35 +08:00
$component-active-color : $white !default ;
2019-07-25 15:41:13 +08:00
$component-active-bg : $primary !default ;
2017-03-06 04:20:44 +08:00
2022-12-30 06:19:22 +08:00
// scss-docs-start focus-ring-variables
$focus-ring-width : .25 rem !default ;
$focus-ring-opacity : .25 !default ;
$focus-ring-color : rgba ( $primary , $focus-ring-opacity ) !default ;
$focus-ring-blur : 0 !default ;
$focus-ring-box-shadow : 0 0 $focus-ring-blur $focus-ring-width $focus-ring-color !default ;
// scss-docs-end focus-ring-variables
2017-10-04 19:02:35 +08:00
$transition-base : all .2 s ease-in-out !default ;
$transition-fade : opacity .15 s linear !default ;
2021-02-11 11:29:59 +08:00
// scss-docs-start collapse-transition
2017-10-04 19:02:35 +08:00
$transition-collapse : height .35 s ease !default ;
2021-06-15 04:25:11 +08:00
$transition-collapse-width : width .35 s ease !default ;
2021-02-11 11:29:59 +08:00
// scss-docs-end collapse-transition
2017-03-06 04:20:44 +08:00
2020-09-23 07:30:00 +08:00
// scss-docs-start aspect-ratios
$aspect-ratios : (
2025-08-27 13:24:47 +08:00
" auto " : auto ,
" 1x1 " : #{ " 1 / 1 " } ,
" 4x3 " : #{ " 4 / 3 " } ,
" 16x9 " : #{ " 16 / 9 " } ,
" 21x9 " : #{ " 21 / 9 " }
2020-02-15 21:41:59 +08:00
) ! default ;
2020-09-23 07:30:00 +08:00
// scss-docs-end aspect-ratios
2017-03-06 04:20:44 +08:00
2019-01-14 07:59:51 +08:00
// Typography
2014-12-03 06:02:35 +08:00
//
2015-03-09 22:18:25 +08:00
// Font, line-height, and color for body text, headings, and more.
2014-12-03 06:02:35 +08:00
2021-02-11 11:29:59 +08:00
// scss-docs-start font-variables
2017-10-03 11:34:56 +08:00
// stylelint-disable value-keyword-case
2021-07-21 15:45:51 +08:00
$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 ;
2017-11-06 08:23:36 +08:00
$font-family-monospace : SFMono-Regular , Menlo , Monaco , Consolas , " Liberation Mono " , " Courier New " , monospace !default ;
2017-10-03 11:34:56 +08:00
// stylelint-enable value-keyword-case
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-14 01:13:09 +08:00
$font-family-base : var ( -- #{ $prefix } font-sans-serif ) !default ;
$font-family-code : var ( -- #{ $prefix } font-monospace ) !default ;
2014-12-03 06:02:35 +08:00
2021-06-20 07:30:31 +08:00
// $font-size-root affects the value of `rem`, which is used for as well font sizes, paddings, and margins
// $font-size-base affects the font size of the body text
2025-09-03 11:59:19 +08:00
$font-size-root : 16 px !default ;
$font-size-base : 14 px !default ; // Assumes the browser default, typically `16px`
2019-01-04 02:59:18 +08:00
$font-size-sm : $font-size-base * .875 !default ;
2020-03-29 04:01:37 +08:00
$font-size-lg : $font-size-base * 1 .25 !default ;
2014-12-10 08:24:05 +08:00
2018-07-25 08:23:17 +08:00
$font-weight-lighter : lighter !default ;
2017-10-04 19:02:35 +08:00
$font-weight-light : 300 !default ;
$font-weight-normal : 400 !default ;
2022-10-04 01:52:02 +08:00
$font-weight-medium : 500 !default ;
2022-03-01 09:22:14 +08:00
$font-weight-semibold : 600 !default ;
2017-10-04 19:02:35 +08:00
$font-weight-bold : 700 !default ;
2018-07-25 08:23:17 +08:00
$font-weight-bolder : bolder !default ;
2016-10-20 03:41:27 +08:00
2017-10-04 19:02:35 +08:00
$font-weight-base : $font-weight-normal !default ;
2019-10-12 19:56:29 +08:00
2017-10-04 19:02:35 +08:00
$line-height-base : 1 .5 !default ;
2019-10-12 19:56:29 +08:00
$line-height-sm : 1 .25 !default ;
2020-03-29 04:01:37 +08:00
$line-height-lg : 2 !default ;
2016-02-04 11:45:13 +08:00
2017-10-19 23:16:38 +08:00
$h1-font-size : $font-size-base * 2 .5 !default ;
$h2-font-size : $font-size-base * 2 !default ;
$h3-font-size : $font-size-base * 1 .75 !default ;
$h4-font-size : $font-size-base * 1 .5 !default ;
$h5-font-size : $font-size-base * 1 .25 !default ;
$h6-font-size : $font-size-base !default ;
2021-02-11 11:29:59 +08:00
// scss-docs-end font-variables
2014-12-03 06:02:35 +08:00
2020-10-27 07:42:07 +08:00
// scss-docs-start font-sizes
$font-sizes : (
1 : $h1-font-size ,
2 : $h2-font-size ,
3 : $h3-font-size ,
4 : $h4-font-size ,
5 : $h5-font-size ,
6 : $ h6-font-size
) ! default ;
// scss-docs-end font-sizes
2021-02-11 11:29:59 +08:00
// scss-docs-start headings-variables
2021-06-15 00:35:30 +08:00
$headings-margin-bottom : $spacer * .5 !default ;
2019-01-14 02:35:48 +08:00
$headings-font-family : null !default ;
2019-05-03 03:35:58 +08:00
$headings-font-style : null !default ;
2017-10-04 19:02:35 +08:00
$headings-font-weight : 500 !default ;
2017-10-19 10:48:35 +08:00
$headings-line-height : 1 .2 !default ;
2023-04-21 11:09:43 +08:00
$headings-color : inherit !default ;
2021-02-11 11:29:59 +08:00
// scss-docs-end headings-variables
2014-12-03 06:02:35 +08:00
2020-04-14 19:57:11 +08:00
// scss-docs-start display-headings
$display-font-sizes : (
1 : 5 rem ,
2 : 4 .5 rem ,
3 : 4 rem ,
4 : 3 .5 rem ,
5 : 3 rem ,
6 : 2 . 5rem
) ! default ;
2022-07-12 05:16:33 +08:00
$display-font-family : null !default ;
$display-font-style : null !default ;
2020-04-14 19:57:11 +08:00
$display-font-weight : 300 !default ;
$display-line-height : $headings-line-height !default ;
// scss-docs-end display-headings
2017-01-03 03:03:25 +08:00
2021-02-11 11:29:59 +08:00
// scss-docs-start type-variables
2019-01-04 02:59:18 +08:00
$lead-font-size : $font-size-base * 1 .25 !default ;
2017-10-19 23:16:38 +08:00
$lead-font-weight : 300 !default ;
2015-08-14 14:18:32 +08:00
2019-08-22 16:14:42 +08:00
$small-font-size : .875 em !default ;
$sub-sup-font-size : .75 em !default ;
2016-10-17 09:49:55 +08:00
2019-08-22 16:14:42 +08:00
$initialism-font-size : $small-font-size !default ;
2020-06-13 05:26:37 +08:00
$blockquote-margin-y : $spacer !default ;
2019-01-04 02:59:18 +08:00
$blockquote-font-size : $font-size-base * 1 .25 !default ;
2020-06-13 05:26:37 +08:00
$blockquote-footer-color : $gray-600 !default ;
$blockquote-footer-font-size : $small-font-size !default ;
2015-08-14 14:18:32 +08:00
2020-03-14 16:41:38 +08:00
$hr-margin-y : $spacer !default ;
2019-04-30 16:00:34 +08:00
$hr-color : inherit !default ;
2022-02-26 06:55:47 +08:00
$hr-border-color : null !default ; // Allows for inherited colors
2022-10-23 12:13:13 +08:00
$hr-border-width : var ( -- #{ $prefix } border-width ) !default ;
2019-04-30 16:00:34 +08:00
$hr-opacity : .25 !default ;
2015-08-05 15:38:36 +08:00
2023-07-10 22:26:44 +08:00
// scss-docs-start vr-variables
$vr-border-width : var ( -- #{ $prefix } border-width ) !default ;
// scss-docs-end vr-variables
2019-06-18 02:08:37 +08:00
$legend-margin-bottom : .5 rem !default ;
$legend-font-size : 1 .5 rem !default ;
$legend-font-weight : null !default ;
2017-10-04 19:02:35 +08:00
$dt-font-weight : $font-weight-bold !default ;
2015-12-07 04:28:15 +08:00
2017-10-31 20:04:26 +08:00
$list-inline-padding : .5 rem !default ;
2015-12-04 17:56:49 +08:00
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-14 01:13:09 +08:00
$mark-padding : .1875 em !default ;
2023-09-13 14:50:42 +08:00
$mark-color : $body-color !default ;
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-14 01:13:09 +08:00
$mark-bg : $yellow-100 !default ;
2021-02-11 11:29:59 +08:00
// scss-docs-end type-variables
2017-06-29 00:36:43 +08:00
2014-12-03 06:02:35 +08:00
2017-10-23 10:56:49 +08:00
// Buttons + Forms
//
// Shared variables that are reassigned to `$input-` and `$btn-` specific variables.
2014-12-03 06:02:35 +08:00
2021-02-11 11:29:59 +08:00
// scss-docs-start input-btn-variables
2017-10-04 19:02:35 +08:00
$input-btn-padding-y : .375 rem !default ;
$input-btn-padding-x : .75 rem !default ;
2019-02-08 01:47:24 +08:00
$input-btn-font-family : null !default ;
2018-09-18 20:35:25 +08:00
$input-btn-font-size : $font-size-base !default ;
2017-10-04 19:02:35 +08:00
$input-btn-line-height : $line-height-base !default ;
2017-03-29 00:28:27 +08:00
2022-12-30 06:19:22 +08:00
$input-btn-focus-width : $focus-ring-width !default ;
$input-btn-focus-color-opacity : $focus-ring-opacity !default ;
$input-btn-focus-color : $focus-ring-color !default ;
$input-btn-focus-blur : $focus-ring-blur !default ;
$input-btn-focus-box-shadow : $focus-ring-box-shadow !default ;
2017-10-20 00:03:33 +08:00
2017-10-04 19:02:35 +08:00
$input-btn-padding-y-sm : .25 rem !default ;
$input-btn-padding-x-sm : .5 rem !default ;
2018-09-18 20:35:25 +08:00
$input-btn-font-size-sm : $font-size-sm !default ;
2017-03-29 00:28:27 +08:00
2017-10-04 19:02:35 +08:00
$input-btn-padding-y-lg : .5 rem !default ;
$input-btn-padding-x-lg : 1 rem !default ;
2018-09-18 20:35:25 +08:00
$input-btn-font-size-lg : $font-size-lg !default ;
2017-03-29 00:28:27 +08:00
2022-10-23 12:13:13 +08:00
$input-btn-border-width : var ( -- #{ $prefix } border-width ) !default ;
2021-02-11 11:29:59 +08:00
// scss-docs-end input-btn-variables
2017-10-19 15:05:07 +08:00
// Buttons
//
2017-10-23 10:56:49 +08:00
// For each of Bootstrap's buttons, define text, background, and border color.
2017-10-19 15:05:07 +08:00
2021-02-11 11:29:59 +08:00
// scss-docs-start btn-variables
2023-03-03 02:49:54 +08:00
$btn-color : var ( -- #{ $prefix } body-color ) !default ;
2017-10-19 15:05:07 +08:00
$btn-padding-y : $input-btn-padding-y !default ;
$btn-padding-x : $input-btn-padding-x !default ;
2019-02-08 01:47:24 +08:00
$btn-font-family : $input-btn-font-family !default ;
2018-09-18 20:35:25 +08:00
$btn-font-size : $input-btn-font-size !default ;
2017-10-19 15:05:07 +08:00
$btn-line-height : $input-btn-line-height !default ;
2019-10-25 17:37:52 +08:00
$btn-white-space : null !default ; // Set to `nowrap` to prevent text wrapping
2017-10-19 15:05:07 +08:00
$btn-padding-y-sm : $input-btn-padding-y-sm !default ;
$btn-padding-x-sm : $input-btn-padding-x-sm !default ;
2018-09-18 20:35:25 +08:00
$btn-font-size-sm : $input-btn-font-size-sm !default ;
2017-10-19 15:05:07 +08:00
$btn-padding-y-lg : $input-btn-padding-y-lg !default ;
$btn-padding-x-lg : $input-btn-padding-x-lg !default ;
2018-09-18 20:35:25 +08:00
$btn-font-size-lg : $input-btn-font-size-lg !default ;
2017-10-19 15:05:07 +08:00
$btn-border-width : $input-btn-border-width !default ;
2017-10-04 19:02:35 +08:00
$btn-font-weight : $font-weight-normal !default ;
2017-10-23 05:00:00 +08:00
$btn-box-shadow : inset 0 1 px 0 rgba ( $white , .15 ) , 0 1 px 1 px rgba ( $black , .075 ) !default ;
2017-10-26 03:30:29 +08:00
$btn-focus-width : $input-btn-focus-width !default ;
$btn-focus-box-shadow : $input-btn-focus-box-shadow !default ;
2017-11-07 05:34:42 +08:00
$btn-disabled-opacity : .65 !default ;
2017-10-23 05:00:00 +08:00
$btn-active-box-shadow : inset 0 3 px 5 px rgba ( $black , .125 ) !default ;
2014-12-03 06:02:35 +08:00
2022-04-05 04:51:21 +08:00
$btn-link-color : var ( -- #{ $prefix } link-color ) !default ;
$btn-link-hover-color : var ( -- #{ $prefix } link-hover-color ) !default ;
2017-10-04 19:02:35 +08:00
$btn-link-disabled-color : $gray-600 !default ;
2025-08-28 12:14:59 +08:00
$btn-link-color-contrast : color-contrast ( $link-color ) !default ;
$btn-link-focus-shadow-rgb : to-rgb ( color . mix ( $btn-link-color-contrast , $link-color , 15 % )) !default ;
2014-12-03 06:02:35 +08:00
2015-06-19 14:56:43 +08:00
// Allows for customizing button radius independently from global border radius
2023-03-25 10:41:44 +08:00
$btn-border-radius : var ( -- #{ $prefix } border-radius ) !default ;
$btn-border-radius-sm : var ( -- #{ $prefix } border-radius-sm ) !default ;
$btn-border-radius-lg : var ( -- #{ $prefix } border-radius-lg ) !default ;
2015-06-19 14:56:43 +08:00
2017-10-23 04:11:07 +08:00
$btn-transition : color .15 s ease-in-out , background-color .15 s ease-in-out , border-color .15 s ease-in-out , box-shadow .15 s ease-in-out !default ;
2016-12-20 12:33:17 +08:00
2020-12-17 13:16:54 +08:00
$btn-hover-bg-shade-amount : 15 % !default ;
$btn-hover-bg-tint-amount : 15 % !default ;
$btn-hover-border-shade-amount : 20 % !default ;
$btn-hover-border-tint-amount : 10 % !default ;
$btn-active-bg-shade-amount : 20 % !default ;
$btn-active-bg-tint-amount : 20 % !default ;
$btn-active-border-shade-amount : 25 % !default ;
$btn-active-border-tint-amount : 10 % !default ;
2021-02-11 11:29:59 +08:00
// scss-docs-end btn-variables
2020-12-17 13:16:54 +08:00
2014-12-03 06:02:35 +08:00
2016-12-25 04:35:08 +08:00
// Z-index master list
2014-12-03 06:02:35 +08:00
//
// 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.
2020-04-14 05:40:47 +08:00
// scss-docs-start zindex-stack
2017-10-04 19:02:35 +08:00
$zindex-dropdown : 1000 !default ;
$zindex-sticky : 1020 !default ;
$zindex-fixed : 1030 !default ;
2021-06-26 04:41:15 +08:00
$zindex-offcanvas-backdrop : 1040 !default ;
$zindex-offcanvas : 1045 !default ;
$zindex-modal-backdrop : 1050 !default ;
$zindex-modal : 1055 !default ;
2021-03-03 01:10:10 +08:00
$zindex-popover : 1070 !default ;
$zindex-tooltip : 1080 !default ;
2022-02-26 00:49:02 +08:00
$zindex-toast : 1090 !default ;
2020-04-14 05:40:47 +08:00
// scss-docs-end zindex-stack
2014-12-03 06:02:35 +08:00
2022-10-23 05:13:39 +08:00
// 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
2018-09-17 05:32:11 +08:00
2016-12-25 04:35:08 +08:00
// Modals
2014-12-03 06:02:35 +08:00
2021-02-11 11:29:59 +08:00
// scss-docs-start modal-variables
2020-04-30 21:17:08 +08:00
$modal-inner-padding : $spacer !default ;
2014-12-03 06:02:35 +08:00
2019-08-16 17:49:06 +08:00
$modal-footer-margin-between : .5 rem !default ;
2018-03-08 20:28:32 +08:00
$modal-dialog-margin : .5 rem !default ;
$modal-dialog-margin-y-sm-up : 1 .75 rem !default ;
2016-02-16 15:10:38 +08:00
2017-10-04 19:02:35 +08:00
$modal-title-line-height : $line-height-base !default ;
2014-12-03 06:02:35 +08:00
2025-04-03 14:49:33 +08:00
$modal-content-color : var ( -- #{ $prefix } body-color ) !default ;
Add dark mode support (#35857)
* Add dark mode to docs
* Minor fix: missing space indentation
* Minor fix: revert utilities/z-index added-in modification
* Remove prev: and next: from doc because extracted to another PR
* Use .bg-body-tertiary in all Utilities > Overflow examples
* fix example
* Fix up spacing examples
* Update box-shadow Sass variables and utilities to auto-adjust to color modes
* Remove unused docs class
* Refactor form styles to use CSS variable for background images on .form-check and .form-switch
* Fix docs selector
* Rename shortcut for clarity
* Heading consistency
* Reintroduce missing 4th grid item in Utilities > Spacing example
* Fix bundlewatch
* .bd-callout* rendering is OK so removing comments in the code
* Update scss/_utilities.scss
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
* Fix gutters example styling
* Fix text colors on background utils docs
* redesign and fix up position marker example, which doesn't show nicely in darkmode but at least isn't broken
* fix some color utils examples
* Deprecate mixin notice
* Deprecate notice for list-group-item-variant() mixin
* Revamp new link CSS vars
* Use map-keys in some each Sass files
* Remove list-group-item-variant mixin ref in sass loop desc
* Display CSS vars scoped to our built-in dark mode
* Revert previous commit
* Fix list group variant link
* Fix typo
* Remove imports of alert/list-group mixins in scss/_mixins.scss
* Small formatting + comments removal in scss/_content.scss
* Fix alert links colors
* fix dropdown border-radius mixin
* fix link color and underline again, this time using CSS var override for color var and fallback value for the underline
* fix colors on docs navbar for dark mode
* remove two changes
* missing ref
* another link underline fix, just use sass vars for link decoration for now
* missing color bg docs, plus move dropdown override to scss
* more changes from review
* fix some examples, drop unused docs navbar styles, update docs navbar color mode to use mixin
* Few fixes around type
- Restored CSS variable for color on headings, this time with a fallback value
- In conjunction, restored and wrapped the default CSS var with a null value check
- Split headings and paragraphs docs in Reboot, elaborated on them
* Restyle custom details > summary element in docs
* Rewrite some migration docs
* fix form checks
* Fix up some navbar styling, tweak docs callout
* Fix select images, mostly for validation styling
* Clean up some migration notes, document some new form control CSS vars, mention new variables-dark in sass docs
* Update site/content/docs/5.2/components/scrollspy.md
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
* Apply suggestions from code review
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
* mention form control css vars in migration guide
* Tweak grid and flex docs background examples
* clarify some docs
* fix some more things
Co-authored-by: Julien Déramond <juderamond@gmail.com>
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
2022-11-29 14:30:26 +08:00
$modal-content-bg : var ( -- #{ $prefix } body-bg ) !default ;
2022-04-30 04:59:41 +08:00
$modal-content-border-color : var ( -- #{ $prefix } border-color-translucent ) !default ;
2022-10-23 12:13:13 +08:00
$modal-content-border-width : var ( -- #{ $prefix } border-width ) !default ;
Add dark mode support (#35857)
* Add dark mode to docs
* Minor fix: missing space indentation
* Minor fix: revert utilities/z-index added-in modification
* Remove prev: and next: from doc because extracted to another PR
* Use .bg-body-tertiary in all Utilities > Overflow examples
* fix example
* Fix up spacing examples
* Update box-shadow Sass variables and utilities to auto-adjust to color modes
* Remove unused docs class
* Refactor form styles to use CSS variable for background images on .form-check and .form-switch
* Fix docs selector
* Rename shortcut for clarity
* Heading consistency
* Reintroduce missing 4th grid item in Utilities > Spacing example
* Fix bundlewatch
* .bd-callout* rendering is OK so removing comments in the code
* Update scss/_utilities.scss
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
* Fix gutters example styling
* Fix text colors on background utils docs
* redesign and fix up position marker example, which doesn't show nicely in darkmode but at least isn't broken
* fix some color utils examples
* Deprecate mixin notice
* Deprecate notice for list-group-item-variant() mixin
* Revamp new link CSS vars
* Use map-keys in some each Sass files
* Remove list-group-item-variant mixin ref in sass loop desc
* Display CSS vars scoped to our built-in dark mode
* Revert previous commit
* Fix list group variant link
* Fix typo
* Remove imports of alert/list-group mixins in scss/_mixins.scss
* Small formatting + comments removal in scss/_content.scss
* Fix alert links colors
* fix dropdown border-radius mixin
* fix link color and underline again, this time using CSS var override for color var and fallback value for the underline
* fix colors on docs navbar for dark mode
* remove two changes
* missing ref
* another link underline fix, just use sass vars for link decoration for now
* missing color bg docs, plus move dropdown override to scss
* more changes from review
* fix some examples, drop unused docs navbar styles, update docs navbar color mode to use mixin
* Few fixes around type
- Restored CSS variable for color on headings, this time with a fallback value
- In conjunction, restored and wrapped the default CSS var with a null value check
- Split headings and paragraphs docs in Reboot, elaborated on them
* Restyle custom details > summary element in docs
* Rewrite some migration docs
* fix form checks
* Fix up some navbar styling, tweak docs callout
* Fix select images, mostly for validation styling
* Clean up some migration notes, document some new form control CSS vars, mention new variables-dark in sass docs
* Update site/content/docs/5.2/components/scrollspy.md
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
* Apply suggestions from code review
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
* mention form control css vars in migration guide
* Tweak grid and flex docs background examples
* clarify some docs
* fix some more things
Co-authored-by: Julien Déramond <juderamond@gmail.com>
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
2022-11-29 14:30:26 +08:00
$modal-content-border-radius : var ( -- #{ $prefix } border-radius-lg ) !default ;
2025-08-27 12:34:58 +08:00
$modal-content-inner-border-radius : calc ( #{ $modal-content-border-radius } - #{ $modal-content-border-width } ) !default ;
2023-07-28 05:00:17 +08:00
$modal-content-box-shadow-xs : var ( -- #{ $prefix } box-shadow-sm ) !default ;
$modal-content-box-shadow-sm-up : var ( -- #{ $prefix } box-shadow ) !default ;
2018-03-08 20:28:32 +08:00
$modal-backdrop-bg : $black !default ;
$modal-backdrop-opacity : .5 !default ;
2022-03-29 06:05:37 +08:00
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-14 01:13:09 +08:00
$modal-header-border-color : var ( -- #{ $prefix } border-color ) !default ;
2018-03-08 20:28:32 +08:00
$modal-header-border-width : $modal-content-border-width !default ;
2020-04-30 21:17:08 +08:00
$modal-header-padding-y : $modal-inner-padding !default ;
$modal-header-padding-x : $modal-inner-padding !default ;
2018-09-19 12:33:31 +08:00
$modal-header-padding : $modal-header-padding-y $modal-header-padding-x !default ; // Keep this for backwards compatibility
2022-03-29 06:05:37 +08:00
2022-02-18 07:14:18 +08:00
$modal-footer-bg : null !default ;
2022-03-29 06:05:37 +08:00
$modal-footer-border-color : $modal-header-border-color !default ;
$modal-footer-border-width : $modal-header-border-width !default ;
2014-12-03 06:02:35 +08:00
2017-10-04 19:02:35 +08:00
$modal-sm : 300 px !default ;
2020-03-29 04:01:37 +08:00
$modal-md : 500 px !default ;
$modal-lg : 800 px !default ;
$modal-xl : 1140 px !default ;
2014-12-03 06:02:35 +08:00
2018-08-13 15:00:53 +08:00
$modal-fade-transform : translate ( 0 , - 50 px ) !default ;
$modal-show-transform : none !default ;
2017-10-04 19:02:35 +08:00
$modal-transition : transform .3 s ease-out !default ;
2019-10-26 02:12:09 +08:00
$modal-scale-transform : scale ( 1 .02 ) !default ;
2021-02-11 11:29:59 +08:00
// scss-docs-end modal-variables
2016-12-20 12:33:17 +08:00
2021-03-03 01:10:10 +08:00
// Offcanvas
// scss-docs-start offcanvas-variables
$offcanvas-padding-y : $modal-inner-padding !default ;
$offcanvas-padding-x : $modal-inner-padding !default ;
$offcanvas-horizontal-width : 400 px !default ;
$offcanvas-vertical-height : 30 vh !default ;
$offcanvas-transition-duration : .3 s !default ;
$offcanvas-border-color : $modal-content-border-color !default ;
$offcanvas-border-width : $modal-content-border-width !default ;
$offcanvas-title-line-height : $modal-title-line-height !default ;
Add dark mode support (#35857)
* Add dark mode to docs
* Minor fix: missing space indentation
* Minor fix: revert utilities/z-index added-in modification
* Remove prev: and next: from doc because extracted to another PR
* Use .bg-body-tertiary in all Utilities > Overflow examples
* fix example
* Fix up spacing examples
* Update box-shadow Sass variables and utilities to auto-adjust to color modes
* Remove unused docs class
* Refactor form styles to use CSS variable for background images on .form-check and .form-switch
* Fix docs selector
* Rename shortcut for clarity
* Heading consistency
* Reintroduce missing 4th grid item in Utilities > Spacing example
* Fix bundlewatch
* .bd-callout* rendering is OK so removing comments in the code
* Update scss/_utilities.scss
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
* Fix gutters example styling
* Fix text colors on background utils docs
* redesign and fix up position marker example, which doesn't show nicely in darkmode but at least isn't broken
* fix some color utils examples
* Deprecate mixin notice
* Deprecate notice for list-group-item-variant() mixin
* Revamp new link CSS vars
* Use map-keys in some each Sass files
* Remove list-group-item-variant mixin ref in sass loop desc
* Display CSS vars scoped to our built-in dark mode
* Revert previous commit
* Fix list group variant link
* Fix typo
* Remove imports of alert/list-group mixins in scss/_mixins.scss
* Small formatting + comments removal in scss/_content.scss
* Fix alert links colors
* fix dropdown border-radius mixin
* fix link color and underline again, this time using CSS var override for color var and fallback value for the underline
* fix colors on docs navbar for dark mode
* remove two changes
* missing ref
* another link underline fix, just use sass vars for link decoration for now
* missing color bg docs, plus move dropdown override to scss
* more changes from review
* fix some examples, drop unused docs navbar styles, update docs navbar color mode to use mixin
* Few fixes around type
- Restored CSS variable for color on headings, this time with a fallback value
- In conjunction, restored and wrapped the default CSS var with a null value check
- Split headings and paragraphs docs in Reboot, elaborated on them
* Restyle custom details > summary element in docs
* Rewrite some migration docs
* fix form checks
* Fix up some navbar styling, tweak docs callout
* Fix select images, mostly for validation styling
* Clean up some migration notes, document some new form control CSS vars, mention new variables-dark in sass docs
* Update site/content/docs/5.2/components/scrollspy.md
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
* Apply suggestions from code review
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
* mention form control css vars in migration guide
* Tweak grid and flex docs background examples
* clarify some docs
* fix some more things
Co-authored-by: Julien Déramond <juderamond@gmail.com>
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
2022-11-29 14:30:26 +08:00
$offcanvas-bg-color : var ( -- #{ $prefix } body-bg ) !default ;
$offcanvas-color : var ( -- #{ $prefix } body-color ) !default ;
2021-03-03 01:10:10 +08:00
$offcanvas-box-shadow : $modal-content-box-shadow-xs !default ;
2021-06-26 04:41:15 +08:00
$offcanvas-backdrop-bg : $modal-backdrop-bg !default ;
$offcanvas-backdrop-opacity : $modal-backdrop-opacity !default ;
2021-03-03 01:10:10 +08:00
// scss-docs-end offcanvas-variables
2016-12-25 04:35:08 +08:00
// Code
2014-12-03 06:02:35 +08:00
2025-09-03 11:59:19 +08:00
$code-font-size : 95 % !default ;
$code-color : var ( -- #{ $prefix } secondary-text ) !default ;
2014-12-03 06:02:35 +08:00
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-14 01:13:09 +08:00
$kbd-padding-y : .1875 rem !default ;
$kbd-padding-x : .375 rem !default ;
2017-12-23 08:49:57 +08:00
$kbd-font-size : $code-font-size !default ;
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-14 01:13:09 +08:00
$kbd-color : var ( -- #{ $prefix } body-bg ) !default ;
$kbd-bg : var ( -- #{ $prefix } body-color ) !default ;
2014-12-03 06:02:35 +08:00
2019-06-26 18:18:59 +08:00
$pre-color : null !default ;
2023-11-14 15:01:29 +08:00
2025-08-28 12:14:59 +08:00
// Dark color mode variables
//
// Custom variables for the `[data-bs-theme="dark"]` theme. Use this as a starting point for your own custom color modes by creating a new theme-specific file like `_variables-dark.scss` and adding the variables you need.
//
// Global colors
//
// scss-docs-start sass-dark-mode-vars
$body-color-dark : $gray-300 !default ;
$body-bg-dark : $gray-900 !default ;
$body-secondary-color-dark : rgba ( $body-color-dark , .75 ) !default ;
$body-secondary-bg-dark : $gray-800 !default ;
$body-tertiary-color-dark : rgba ( $body-color-dark , .5 ) !default ;
$body-tertiary-bg-dark : color . mix ( $gray-800 , $gray-900 , 50 % ) !default ;
$body-emphasis-color-dark : $white !default ;
$border-color-dark : $gray-700 !default ;
$border-color-translucent-dark : rgba ( $white , .15 ) !default ;
$headings-color-dark : inherit !default ;
$link-color-dark : tint-color ( $primary , 40 % ) !default ;
$link-hover-color-dark : shift-color ( $link-color-dark , - $link-shade-percentage ) !default ;
2025-09-03 11:59:19 +08:00
// $code-color-dark: tint-color($code-color, 40%) !default;
2025-08-28 12:14:59 +08:00
$mark-color-dark : $body-color-dark !default ;
$mark-bg-dark : $yellow-800 !default ;
//
// Forms
//
// scss-docs-start form-validation-colors-dark
$form-valid-color-dark : $green-300 !default ;
$form-valid-border-color-dark : $green-300 !default ;
$form-invalid-color-dark : $red-300 !default ;
$form-invalid-border-color-dark : $red-300 !default ;
// scss-docs-end form-validation-colors-dark
// scss-docs-end sass-dark-mode-vars