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
primary
primary-emphasis
secondary
secondary-emphasis
success
success-emphasis
danger
danger-emphasis
warning
warning-emphasis
info
info-emphasis
light
light-emphasis
dark
dark-emphasis
body
body-emphasis
body-secondary
body-tertiary
black
white
black-50
white-50
primary
primary-emphasis
secondary
secondary-emphasis
success
success-emphasis
danger
danger-emphasis
warning
warning-emphasis
info
info-emphasis
light
light-emphasis
dark
dark-emphasis
body
body-emphasis
body-secondary
body-tertiary
black
white
black-50
white-50
<template>
<Row text-alignment="center">
<Col><h5>Light Mode</h5></Col>
<Col><h5>Dark Mode</h5></Col>
</Row>
<Row>
<Col
theme="light"
background-color="light"
>
<b-p text-color="primary">
primary
</b-p>
<b-p text-color="primary-emphasis">
primary-emphasis
</b-p>
<b-p text-color="secondary">
secondary
</b-p>
<b-p text-color="secondary-emphasis">
secondary-emphasis
</b-p>
<b-p text-color="success">
success
</b-p>
<b-p text-color="success-emphasis">
success-emphasis
</b-p>
<b-p text-color="danger">
danger
</b-p>
<b-p text-color="danger-emphasis">
danger-emphasis
</b-p>
<b-p
text-color="warning"
background-color="dark"
>
warning
</b-p>
<b-p text-color="warning-emphasis">
warning-emphasis
</b-p>
<b-p
text-color="info"
background-color="dark"
>
info
</b-p>
<b-p text-color="info-emphasis">
info-emphasis
</b-p>
<b-p
text-color="light"
background-color="dark"
>
light
</b-p>
<b-p text-color="light-emphasis">
light-emphasis
</b-p>
<b-p text-color="dark">
dark
</b-p>
<b-p text-color="dark-emphasis">
dark-emphasis
</b-p>
<b-p text-color="body">
body
</b-p>
<b-p text-color="body-emphasis">
body-emphasis
</b-p>
<b-p text-color="body-secondary">
body-secondary
</b-p>
<b-p text-color="body-tertiary">
body-tertiary
</b-p>
<b-p text-color="black">
black
</b-p>
<b-p
text-color="white"
background-color="dark"
>
white
</b-p>
<b-p text-color="black-50">
black-50
</b-p>
<b-p
text-color="white-50"
background-color="dark"
>
white-50
</b-p>
</Col>
<Col
theme="dark"
background-color="dark"
>
<b-p text-color="primary">
primary
</b-p>
<b-p text-color="primary-emphasis">
primary-emphasis
</b-p>
<b-p text-color="secondary">
secondary
</b-p>
<b-p text-color="secondary-emphasis">
secondary-emphasis
</b-p>
<b-p text-color="success">
success
</b-p>
<b-p text-color="success-emphasis">
success-emphasis
</b-p>
<b-p text-color="danger">
danger
</b-p>
<b-p text-color="danger-emphasis">
danger-emphasis
</b-p>
<b-p
text-color="warning"
background-color="dark"
>
warning
</b-p>
<b-p text-color="warning-emphasis">
warning-emphasis
</b-p>
<b-p
text-color="info"
background-color="dark"
>
info
</b-p>
<b-p text-color="info-emphasis">
info-emphasis
</b-p>
<b-p
text-color="light"
background-color="dark"
>
light
</b-p>
<b-p text-color="light-emphasis">
light-emphasis
</b-p>
<b-p text-color="dark">
dark
</b-p>
<b-p text-color="dark-emphasis">
dark-emphasis
</b-p>
<b-p text-color="body">
body
</b-p>
<b-p text-color="body-emphasis">
body-emphasis
</b-p>
<b-p text-color="body-secondary">
body-secondary
</b-p>
<b-p text-color="body-tertiary">
body-tertiary
</b-p>
<b-p text-color="black">
black
</b-p>
<b-p
text-color="white"
background-color="dark"
>
white
</b-p>
<b-p text-color="black-50">
black-50
</b-p>
<b-p
text-color="white-50"
background-color="dark"
>
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"
text-opacity="75"
>
This is 75% opacity primary text
</b-div>
<b-div
text-color="primary"
text-opacity="50"
>
This is 50% opacity primary text
</b-div>
<b-div
text-color="primary"
text-opacity="25"
>
This is 25% opacity primary text
</b-div>
</template>