diff --git a/docs/assets/scss/_colors.scss b/docs/assets/scss/_colors.scss
index 85104a8df581..1a5654898a82 100644
--- a/docs/assets/scss/_colors.scss
+++ b/docs/assets/scss/_colors.scss
@@ -2,23 +2,9 @@
// Docs color palette classes
//
-.bg-red-light { background-color: $red-light; }
-.bg-orange-light { background-color: $orange-light; }
-.bg-yellow-light { background-color: $yellow-light; }
-.bg-green-light { background-color: $green-light; }
-.bg-teal-light { background-color: $teal-light; }
-.bg-blue-light { background-color: $blue-light; }
-.bg-pink-light { background-color: $pink-light; }
-.bg-purple-light { background-color: $purple-light; }
-
-.bg-red-dark { background-color: $red-dark; }
-.bg-orange-dark { background-color: $orange-dark; }
-.bg-yellow-dark { background-color: $yellow-dark; }
-.bg-green-dark { background-color: $green-dark; }
-.bg-teal-dark { background-color: $teal-dark; }
-.bg-blue-dark { background-color: $blue-dark; }
-.bg-pink-dark { background-color: $pink-dark; }
-.bg-purple-dark { background-color: $purple-dark; }
-
-.bg-gray-light { background-color: $gray-lighter; }
-.bg-gray-dark { background-color: $gray-dark; }
+@each $color, $value in $colors {
+ .swatch-#{$color} {
+ background-color: #{$value};
+ @include color-yiq($value);
+ }
+}
diff --git a/docs/assets/scss/_component-examples.scss b/docs/assets/scss/_component-examples.scss
index 72e842c3248c..be6555a4458a 100644
--- a/docs/assets/scss/_component-examples.scss
+++ b/docs/assets/scss/_component-examples.scss
@@ -86,7 +86,7 @@
.bd-example-container-header {
height: 3rem;
margin-bottom: .5rem;
- background-color: lighten($brand-primary, 50%);
+ background-color: lighten($blue, 50%);
border-radius: .25rem;
}
@@ -94,7 +94,7 @@
float: right;
width: 4rem;
height: 8rem;
- background-color: lighten($brand-warning, 25%);
+ background-color: lighten($orange, 25%);
border-radius: .25rem;
}
diff --git a/docs/assets/scss/_featurettes.scss b/docs/assets/scss/_featurettes.scss
index 03119ce50872..53fc9db532ec 100644
--- a/docs/assets/scss/_featurettes.scss
+++ b/docs/assets/scss/_featurettes.scss
@@ -63,7 +63,7 @@
color: #333;
}
.bd-featurette-img:hover {
- color: $brand-primary;
+ color: $blue;
text-decoration: none;
}
.bd-featurette-img img {
diff --git a/docs/assets/scss/_sidebar.scss b/docs/assets/scss/_sidebar.scss
index 7b9edefea99c..c461f181f9de 100644
--- a/docs/assets/scss/_sidebar.scss
+++ b/docs/assets/scss/_sidebar.scss
@@ -63,7 +63,7 @@
}
.bd-toc-link:hover,
.bd-toc-link:focus {
- color: $brand-primary;
+ color: $blue;
text-decoration: none;
}
.active > .bd-toc-link {
@@ -94,7 +94,7 @@
}
.bd-sidebar .nav > li > a:hover,
.bd-sidebar .nav > li > a:focus {
- color: $brand-primary;
+ color: $blue;
text-decoration: none;
background-color: transparent;
}
diff --git a/docs/components/alerts.md b/docs/components/alerts.md
index dae4ec7d36e8..5f9eac093402 100644
--- a/docs/components/alerts.md
+++ b/docs/components/alerts.md
@@ -14,19 +14,19 @@ Provide contextual feedback messages for typical user actions with the handful o
## Examples
-Alerts are available for any length of text, as well as an optional dismiss button. For proper styling, use one of the four **required** contextual classes (e.g., `.alert-success`). For inline dismissal, use the [alerts jQuery plugin](#dismissing).
+Alerts are available for any length of text, as well as an optional dismiss button. For proper styling, use one of the four **required** contextual classes (e.g., `.alert-green`). For inline dismissal, use the [alerts jQuery plugin](#dismissing).
{% example html %}
-
+
Well done! You successfully read this important alert message.
-
+
Heads up! This alert needs your attention, but it's not super important.
-
+
Warning! Better check yourself, you're not looking too good.
-
+
Oh snap! Change a few things up and try submitting again.
{% endexample %}
@@ -39,16 +39,16 @@ Alerts are available for any length of text, as well as an optional dismiss butt
Use the `.alert-link` utility class to quickly provide matching colored links within any alert.
{% example html %}
-
{% endexample %}
@@ -58,7 +58,7 @@ Use the `.alert-link` utility class to quickly provide matching colored links wi
Alerts can also contain additional HTML elements like headings, paragraphs and dividers.
{% example html %}
-
+
Well done!
Aww yeah, you successfully read this important alert message. This example text is going to run a bit longer so that you can see how spacing within an alert works with this kind of content.
@@ -79,7 +79,7 @@ Using the alert JavaScript plugin, it's possible to dismiss any alert inline. He
You can see this in action with a live demo:
{% example html %}
-
+
diff --git a/docs/components/list-group.md b/docs/components/list-group.md
index d676c9159438..fb10f45c0167 100644
--- a/docs/components/list-group.md
+++ b/docs/components/list-group.md
@@ -92,10 +92,10 @@ Use contextual classes to style list items with a stateful background and color.
{% example html %}
Dapibus ac facilisis in
-
Dapibus ac facilisis in
-
Cras sit amet nibh libero
-
Porta ac consectetur ac
-
Vestibulum at eros
+
Dapibus ac facilisis in
+
Cras sit amet nibh libero
+
Porta ac consectetur ac
+
Vestibulum at eros
{% endexample %}
@@ -104,10 +104,10 @@ Contextual classes also work with `.list-group-item-action`. Note the addition o
{% example html %}
{% endexample %}
diff --git a/docs/content/tables.md b/docs/content/tables.md
index 62579ac69d45..1c722f401bb8 100644
--- a/docs/content/tables.md
+++ b/docs/content/tables.md
@@ -444,11 +444,11 @@ Use contextual classes to color table rows or individual cells.
| Class | Description |
| --- | --- |
-| `.table-active` | Applies the hover color to a particular row or cell |
-| `.table-success` | Indicates a successful or positive action |
-| `.table-info` | Indicates a neutral informative change or action |
-| `.table-warning` | Indicates a warning that might need attention |
-| `.table-danger` | Indicates a dangerous or potentially negative action |
+| `.table-blue` | Applies the hover color to a particular row or cell |
+| `.table-green` | Indicates a successful or positive action |
+| `.table-teal` | Indicates a neutral informative change or action |
+| `.table-orange` | Indicates a warning that might need attention |
+| `.table-red` | Indicates a dangerous or potentially negative action |
@@ -461,7 +461,7 @@ Use contextual classes to color table rows or individual cells.
-
+
1
Column content
Column content
@@ -473,7 +473,7 @@ Use contextual classes to color table rows or individual cells.
Column content
Column content
-
+
3
Column content
Column content
@@ -485,7 +485,7 @@ Use contextual classes to color table rows or individual cells.
Column content
Column content
-
+
5
Column content
Column content
@@ -497,7 +497,7 @@ Use contextual classes to color table rows or individual cells.
Column content
Column content
-
+
7
Column content
Column content
@@ -509,7 +509,7 @@ Use contextual classes to color table rows or individual cells.
Column content
Column content
-
+
9
Column content
Column content
@@ -521,19 +521,19 @@ Use contextual classes to color table rows or individual cells.
{% highlight html %}
-
...
-
...
-
...
-
...
-
...
+
...
+
...
+
...
+
...
+
...
-
...
-
...
-
...
-
...
-
...
+
...
+
...
+
...
+
...
+
...
{% endhighlight %}
diff --git a/docs/getting-started/options.md b/docs/getting-started/options.md
index 08689dec013f..10ff2be413bc 100644
--- a/docs/getting-started/options.md
+++ b/docs/getting-started/options.md
@@ -45,52 +45,11 @@ You can find and customize these variables for key global options in our `_varia
Many of Bootstrap's various components and utilities are built through a series of colors defined in a Sass map. This map can be looped over in Sass to quickly generate a series of rulesets.