Skip to content

Instantly share code, notes, and snippets.

@Sunnyztj
Created October 16, 2019 00:20
Show Gist options
  • Save Sunnyztj/bb4dfce420dde4da11a91fd66b6aacbe to your computer and use it in GitHub Desktop.
Save Sunnyztj/bb4dfce420dde4da11a91fd66b6aacbe to your computer and use it in GitHub Desktop.
Bootstrap 4 customize button color
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