Customizing Themes
Use b-config-provider to customize themes.
By default, all components use the light theme with no configuration needed.
Learn more about b-config-provider at ConfigProvider.
Customizing Theme Variables
You don't need to write any CSS (Scss, Less, Stylus...).
The configured global theme variables will override theme variables for all descendant components.
[default]Defaultbutton
[plain]Plain Button
[round]border radiusbutton
[dashed]Dashed Button
<template>
<b-config-provider
:theme="{
binColorPrimary: '#722ed1',
binColorSuccess: '#13c2c2',
binColorWarning: '#e14c19',
binColorDanger: '#d42a87'
}"
>
<div>
<div>[default]Defaultbutton</div>
<div class="demo-button">
<b-button type="primary">Primary</b-button>
<b-button type="success">Success</b-button>
<b-button type="warning">Warning</b-button>
<b-button type="danger">Danger</b-button>
</div>
<div>[plain]Plain Button</div>
<div class="demo-button">
<b-button type="primary" plain>Primary</b-button>
<b-button type="success" plain>Success</b-button>
<b-button type="warning" plain>Warning</b-button>
<b-button type="danger" plain>Danger</b-button>
</div>
<div>[round]border radiusbutton</div>
<div class="demo-button">
<b-button type="primary" round>Primary</b-button>
<b-button type="success" round>Success</b-button>
<b-button type="warning" round>Warning</b-button>
<b-button type="danger" round>Danger</b-button>
</div>
<div>[dashed]Dashed Button</div>
<div class="demo-button">
<b-button type="primary" dashed>Primary</b-button>
<b-button type="success" dashed>Success</b-button>
<b-button type="warning" dashed>Warning</b-button>
<b-button type="danger" dashed>Danger</b-button>
</div>
</div>
</b-config-provider>
</template>
<style scoped>
.demo-button {
margin: 8px 0;
}
</style>