Bootstrap-vue indeed is not so flexible when it comes to change to the default theme colors, but it is possible.
You first have to create a custom.scss
file, where you can add new color themes to your bootstrap-vue.
On src/assets/styles/custom.scss
:
// Override / set color variables
$myCustom: rgba(64, 206, 148, 1);
$primary: $myCustom;
Note that on the example above all bootstrap elements - including pagination - without a variant set, will get the $myCustom
color.
Then you have to import this file and the original scss bootstrap file on your root vue component:
<style lang="scss">
@import "./assets/styles/custom.scss";
@import "../node_modules/bootstrap/scss/bootstrap.scss";
</style>
On your code example, you pass the variant accordingly:
<b-pagination
v-model="currentPage"
:total-rows="users.length"
:per-page="perPage"
align="fill"
size='lg'
first-number
last-number
class="my-0"
variant="primary"
></b-pagination>
In case you don't want to modify the default primary color, you can create a new variant on you custom.scss
:
$theme-colors: ( "newVariant": rgba(0, 152, 152, 1));
Hope it suits you well