I overwrite bootstrap's theme-colors
in my scss file, as following
// set variables
$primary: #8dc3a7;
$light: #b4d6c1;
$starorange: #df711b;
// import functions and variables
@import "../node_modules/bootstrap/scss/functions";
@import "../node_modules/bootstrap/scss/variables";
$custom-theme-colors: (
"starorange": $starorange,
);
// modify theme colors
$theme-colors: map-merge($theme-colors, $custom-theme-colors);
// bootstrap import
@import "../node_modules/bootstrap/scss/bootstrap";
I can use starorange
color in a button as the following and it is applying the color properly
<button class="btn btn-md btn-starorange">Send</button>
However I can not use the same color in the same HTML document for text or bg as in the following.
<div class="pb-1 text-starorange">
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
</div>
or
<section class="bg-starorange">
.... some html here ...
</section>
So, both of the above two examples have no effect in the output, I mean the color is not applied at all. I don't understand why this happens, any help would be appreciated.
PS: There is no bg-starorange
, text-starorange
in the transpiled css file, but btn-starorange
, border-starorange
or link-starorange
somehow exist.