Colors
Colorize text with color utilities. If you want to colorize links, you can use the link helper attributes which have :hover
and :focus
states.
Light Mode
Dark Mode
.text-primary
.text-primary-emphasis
.text-secondary
.text-secondary-emphasis
.text-success
.text-success-emphasis
.text-danger
.text-danger-emphasis
.text-warning
.text-warning-emphasis
.text-info
.text-info-emphasis
.text-light
.text-light-emphasis
.text-dark
.text-dark-emphasis
.text-body
.text-body-emphasis
.text-body-secondary
.text-body-tertiary
.text-black
.text-white
.text-black-50
.text-white-50
.text-primary
.text-primary-emphasis
.text-secondary
.text-secondary-emphasis
.text-success
.text-success-emphasis
.text-danger
.text-danger-emphasis
.text-warning
.text-warning-emphasis
.text-info
.text-info-emphasis
.text-light
.text-light-emphasis
.text-dark
.text-dark-emphasis
.text-body
.text-body-emphasis
.text-body-secondary
.text-body-tertiary
.text-black
.text-white
.text-black-50
.text-white-50
<template>
<Row text-alignment="center">
<Col><h5>Light Mode</h5></Col>
<Col><h5>Dark Mode</h5></Col>
</Row>
<Row>
<Col theme="light">
<b-p text-color="primary">
.text-primary
</b-p>
<b-p text-color="primary-emphasis">
.text-primary-emphasis
</b-p>
<b-p text-color="secondary">
.text-secondary
</b-p>
<b-p text-color="secondary-emphasis">
.text-secondary-emphasis
</b-p>
<b-p text-color="success">
.text-success
</b-p>
<b-p text-color="success-emphasis">
.text-success-emphasis
</b-p>
<b-p text-color="danger">
.text-danger
</b-p>
<b-p text-color="danger-emphasis">
.text-danger-emphasis
</b-p>
<b-p
text-color="warning"
background-color="dark"
>
.text-warning
</b-p>
<b-p text-color="warning-emphasis">
.text-warning-emphasis
</b-p>
<b-p
text-color="info"
background-color="dark"
>
.text-info
</b-p>
<b-p text-color="info-emphasis">
.text-info-emphasis
</b-p>
<b-p
text-color="light"
background-color="dark"
>
.text-light
</b-p>
<b-p text-color="light-emphasis">
.text-light-emphasis
</b-p>
<b-p text-color="dark">
.text-dark
</b-p>
<b-p text-color="dark-emphasis">
.text-dark-emphasis
</b-p>
<b-p text-color="body">
.text-body
</b-p>
<b-p text-color="body-emphasis">
.text-body-emphasis
</b-p>
<b-p text-color="body-secondary">
.text-body-secondary
</b-p>
<b-p text-color="body-tertiary">
.text-body-tertiary
</b-p>
<b-p text-color="black">
.text-black
</b-p>
<b-p
text-color="white"
background-color="dark"
>
.text-white
</b-p>
<b-p text-color="black-50">
.text-black-50
</b-p>
<b-p
text-color="white-50"
background-color="dark"
>
.text-white-50
</b-p>
</Col>
<Col
theme="dark"
background-color="dark"
>
<b-p text-color="primary">
.text-primary
</b-p>
<b-p text-color="primary-emphasis">
.text-primary-emphasis
</b-p>
<b-p text-color="secondary">
.text-secondary
</b-p>
<b-p text-color="secondary-emphasis">
.text-secondary-emphasis
</b-p>
<b-p text-color="success">
.text-success
</b-p>
<b-p text-color="success-emphasis">
.text-success-emphasis
</b-p>
<b-p text-color="danger">
.text-danger
</b-p>
<b-p text-color="danger-emphasis">
.text-danger-emphasis
</b-p>
<b-p
text-color="warning"
background-color="dark"
>
.text-warning
</b-p>
<b-p text-color="warning-emphasis">
.text-warning-emphasis
</b-p>
<b-p
text-color="info"
background-color="dark"
>
.text-info
</b-p>
<b-p text-color="info-emphasis">
.text-info-emphasis
</b-p>
<b-p
text-color="light"
background-color="dark"
>
.text-light
</b-p>
<b-p text-color="light-emphasis">
.text-light-emphasis
</b-p>
<b-p text-color="dark">
.text-dark
</b-p>
<b-p text-color="dark-emphasis">
.text-dark-emphasis
</b-p>
<b-p text-color="body">
.text-body
</b-p>
<b-p text-color="body-emphasis">
.text-body-emphasis
</b-p>
<b-p text-color="body-secondary">
.text-body-secondary
</b-p>
<b-p text-color="body-tertiary">
.text-body-tertiary
</b-p>
<b-p text-color="black">
.text-black
</b-p>
<b-p
text-color="white"
background-color="dark"
>
.text-white
</b-p>
<b-p text-color="black-50">
.text-black-50
</b-p>
<b-p
text-color="white-50"
background-color="dark"
>
.text-white-50
</b-p>
</Col>
</Row>
</template>
Opacity
<template>
<b-div text-color="primary">
This is default primary text
</b-div>
<b-div
text-color="primary"
:opacity="75"
>
This is 75% opacity primary text
</b-div>
<b-div
text-color="primary"
:opacity="50"
>
This is 50% opacity primary text
</b-div>
<b-div
text-color="primary"
:opacity="25"
>
This is 25% opacity primary text
</b-div>
</template>