diff options
| author | louismaximepiton <[email protected]> | 2023-01-17 16:09:52 +0100 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2023-01-21 09:46:48 -0800 |
| commit | 15744ee1d04bcca03155c3bb37ee7e65a7b011c6 (patch) | |
| tree | 2f8e5d4bf307f01c915b58be675adca94518613b /site/content/docs/5.3/customize | |
| parent | cfd3560c6df1decc0d203041c1218d9ca2547a67 (diff) | |
| download | bootstrap-15744ee1d04bcca03155c3bb37ee7e65a7b011c6.tar.xz bootstrap-15744ee1d04bcca03155c3bb37ee7e65a7b011c6.zip | |
Proposal to rename the CSS and Sass variables
Diffstat (limited to 'site/content/docs/5.3/customize')
| -rw-r--r-- | site/content/docs/5.3/customize/color-modes.md | 8 | ||||
| -rw-r--r-- | site/content/docs/5.3/customize/color.md | 30 |
2 files changed, 19 insertions, 19 deletions
diff --git a/site/content/docs/5.3/customize/color-modes.md b/site/content/docs/5.3/customize/color-modes.md index 964170a3c..3aedfd258 100644 --- a/site/content/docs/5.3/customize/color-modes.md +++ b/site/content/docs/5.3/customize/color-modes.md @@ -166,7 +166,7 @@ $color-mode-type: data; @include color-mode(dark) { .element { - color: var(--bs-primary-text); + color: var(--bs-primary-text-emphasis); background-color: var(--bs-primary-bg-subtle); } } @@ -176,7 +176,7 @@ Outputs to: ```css [data-bs-theme=dark] .element { - color: var(--bs-primary-text); + color: var(--bs-primary-text-emphasis); background-color: var(--bs-primary-bg-subtle); } ``` @@ -188,7 +188,7 @@ $color-mode-type: media-query; @include color-mode(dark) { .element { - color: var(--bs-primary-text); + color: var(--bs-primary-text-emphasis); background-color: var(--bs-primary-bg-subtle); } } @@ -199,7 +199,7 @@ Outputs to: ```css @media (prefers-color-scheme: dark) { .element { - color: var(--bs-primary-text); + color: var(--bs-primary-text-emphasis); background-color: var(--bs-primary-bg-subtle); } } diff --git a/site/content/docs/5.3/customize/color.md b/site/content/docs/5.3/customize/color.md index 93d102199..6a3c323b0 100644 --- a/site/content/docs/5.3/customize/color.md +++ b/site/content/docs/5.3/customize/color.md @@ -10,7 +10,7 @@ toc: true {{< added-in "5.3.0" >}} -Bootstrap's color palette has continued to expand and become more nuanced in v5.3.0. We've added new variables for `secondary` and `tertiary` text and background colors, plus `{color}-bg-subtle`, `{color}-border-subtle`, and `{color}-text` for our theme colors. These new colors are available through Sass and CSS variables (but not our color maps or utility classes) with the express goal of making it easier to customize across multiple colors modes like light and dark. These new variables are globally set on `:root` and are adapted for our new dark color mode while our original theme colors remain unchanged. +Bootstrap's color palette has continued to expand and become more nuanced in v5.3.0. We've added new variables for `secondary` and `tertiary` text and background colors, plus `{color}-bg-subtle`, `{color}-border-subtle`, and `{color}-text-emphasis` for our theme colors. These new colors are available through Sass and CSS variables (but not our color maps or utility classes) with the express goal of making it easier to customize across multiple colors modes like light and dark. These new variables are globally set on `:root` and are adapted for our new dark color mode while our original theme colors remain unchanged. Colors ending in `-rgb` provide the `red, green, blue` values for use in `rgb()` and `rgba()` color modes. For example, `rgba(var(--bs-secondary-bg-rgb), .5)`. @@ -135,10 +135,10 @@ Colors ending in `-rgb` provide the `red, green, blue` values for use in `rgb()` </tr> <tr> <td> - <div class="py-3 fw-bold h5" style="color: var(--bs-primary-text)">Text</div> + <div class="py-3 fw-bold h5" style="color: var(--bs-primary-text-emphasis)">Text</div> </td> <td> - {{< markdown >}}`--bs-primary-text`{{< /markdown >}} + {{< markdown >}}`--bs-primary-text-emphasis`{{< /markdown >}} </td> </tr> <tr> @@ -170,10 +170,10 @@ Colors ending in `-rgb` provide the `red, green, blue` values for use in `rgb()` </tr> <tr> <td> - <div class="py-3 fw-bold h5" style="color: var(--bs-success-text)">Text</div> + <div class="py-3 fw-bold h5" style="color: var(--bs-success-text-emphasis)">Text</div> </td> <td> - {{< markdown >}}`--bs-success-text`{{< /markdown >}} + {{< markdown >}}`--bs-success-text-emphasis`{{< /markdown >}} </td> </tr> <tr> @@ -205,10 +205,10 @@ Colors ending in `-rgb` provide the `red, green, blue` values for use in `rgb()` </tr> <tr> <td> - <div class="py-3 fw-bold h5" style="color: var(--bs-danger-text)">Text</div> + <div class="py-3 fw-bold h5" style="color: var(--bs-danger-text-emphasis)">Text</div> </td> <td> - {{< markdown >}}`--bs-danger-text`{{< /markdown >}} + {{< markdown >}}`--bs-danger-text-emphasis`{{< /markdown >}} </td> </tr> <tr> @@ -240,10 +240,10 @@ Colors ending in `-rgb` provide the `red, green, blue` values for use in `rgb()` </tr> <tr> <td> - <div class="py-3 fw-bold h5" style="color: var(--bs-warning-text)">Text</div> + <div class="py-3 fw-bold h5" style="color: var(--bs-warning-text-emphasis)">Text</div> </td> <td> - {{< markdown >}}`--bs-warning-text`{{< /markdown >}} + {{< markdown >}}`--bs-warning-text-emphasis`{{< /markdown >}} </td> </tr> <tr> @@ -275,10 +275,10 @@ Colors ending in `-rgb` provide the `red, green, blue` values for use in `rgb()` </tr> <tr> <td> - <div class="py-3 fw-bold h5" style="color: var(--bs-info-text)">Text</div> + <div class="py-3 fw-bold h5" style="color: var(--bs-info-text-emphasis)">Text</div> </td> <td> - {{< markdown >}}`--bs-info-text`{{< /markdown >}} + {{< markdown >}}`--bs-info-text-emphasis`{{< /markdown >}} </td> </tr> <tr> @@ -310,10 +310,10 @@ Colors ending in `-rgb` provide the `red, green, blue` values for use in `rgb()` </tr> <tr> <td> - <div class="py-3 fw-bold h5" style="color: var(--bs-light-text)">Text</div> + <div class="py-3 fw-bold h5" style="color: var(--bs-light-text-emphasis)">Text</div> </td> <td> - {{< markdown >}}`--bs-light-text`{{< /markdown >}} + {{< markdown >}}`--bs-light-text-emphasis`{{< /markdown >}} </td> </tr> <tr> @@ -345,10 +345,10 @@ Colors ending in `-rgb` provide the `red, green, blue` values for use in `rgb()` </tr> <tr> <td> - <div class="py-3 fw-bold h5" style="color: var(--bs-dark-text)">Text</div> + <div class="py-3 fw-bold h5" style="color: var(--bs-dark-text-emphasis)">Text</div> </td> <td> - {{< markdown >}}`--bs-dark-text`{{< /markdown >}} + {{< markdown >}}`--bs-dark-text-emphasis`{{< /markdown >}} </td> </tr> </tbody> |
