There are number of ways where you can follow to avoid this.
1. You can use your project name as a namespace for your css class/id names.
e.g.
.yourprojectname-class-name
2. You can use
!important to override the exiting css classes
Check here for more :
!important
Please read this for more methods :
conflict between bootstraps css and own css