Back in the days of bootstrap 3, the sweet info color was #d9edf7
. Whenever you used bg-info or alert-info, that trusty old background color was #d9edf7
like clockwork. I'm on a mission to make bootstrap 5.0 behave the same way with the info color.
So, I've got this custom scss file to twist bootstrap to my will:
When I set the info or cyan variable to #d9edf7
, my .bg-info elements look on point but the .alert-info elements end up lightened by 60%.
$info: #d9edf7;
@import "../scss/bootstrap.scss";
However, when I switch things up and set the info or cyan variable to #40a4d7
, suddenly my .alert-info elements are turning heads and looking just right, but the .bg-info elements are 40% darker than #d9edf7
.
$info: #40a4d7;
@import "../scss/bootstrap.scss";
How can I crack the code and override bootstrap to bring my vision to life? Basically, any element using the info color should rock a background color of #d9edf7
.
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="07656868737473756677473229372935">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet"/>
<div class="alert alert-info" role="alert">
A simple info alert—check it out!
</div>
<div class="bg-info" style="width:100%; height:60px;">
This should have the same background color because they're both using the 'info' color
</div>