Skip to content

Change btn color with sass #351

Closed Answered by justinkruit
VictorStochero asked this question in Q&A
Discussion options

You must be logged in to vote

To quickly and easily override the text color on the primary button, you can just change the css variables by adding a new class in your own styling.

.btn-primary {
  --bs-btn-color: #fff;
}

The default colors are calculated by Bootstrap while compiling by checking the contrast of the background color and then giving either a black or white color.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by crftwrk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants