Created
October 16, 2019 00:20
-
-
Save Sunnyztj/bb4dfce420dde4da11a91fd66b6aacbe to your computer and use it in GitHub Desktop.
Bootstrap 4 customize button color
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2019 Update for Bootstrap 4 | |
Now that Bootstrap 4 uses SASS, you can easily change the primary button color using the button-variant mixins: | |
.btn-danger { | |
@include button-variant($red, darken($red, 7.5%), darken($red, 10%), lighten($red,5%), lighten($red, 10%), darken($red,30%)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment