I am attempting to use sass in order to change the text color of the btn-primary
class from its default grey to white.
Upon reviewing the default _buttons.scss file, I discovered that the variable responsible for setting the color is $body-color
. However, modifying this variable to white will cause all body text to also become white against a white background.
I have experimented with manually defining the color of .btn
, but when hovering over the button, the text reverts back to grey. The code snippet used:
@import "../node_modules/bootstrap/scss/bootstrap";
.btn {
color: #fff;
}
Is there a way for me to override this style effectively?