Class | Description | Quick Example |
---|---|---|
.text-dark
.text-white
.text-muted
.text-primary
.text-secondary
.text-success
.text-danger
.text-warning
.text-pink
.text-indigo
.text-purple
.text-*-soft
.link-muted
.text-*-hover
.text-danger-gradient
|
Basic text colors.Change text color when needed..text-*-hover Change link color on hover.Examples: .text-danger-hover .text-success-hover .text-danger-hover Smarty28+ SOW Plugins.text-danger-gradient
|
.text-primary .text-danger .text-success .text-warning .text-indigo .text-primary-soft .text-danger-soft .text-success-soft .text-warning-soft .text-indigo-soft |
Class | Description | Quick Example |
---|---|---|
.bg-primary
.bg-secondary
.bg-success
.bg-danger
.bg-warning
.bg-pink
.bg-indigo
.bg-purple
.bg-dark
.bg-gray-100
.bg-gray-200
.bg-gray-300
.bg-gray-400
.bg-gray-500
.bg-gray-600
.bg-gray-700
.bg-gray-800
.bg-gray-900 .bg-diff
.bg-inherit
|
Bootstrap default background colors.Mix with.text-white or .text-dark where a text contrast is needed. You can mix with almost any utility class, like rounded: .rounded .rounded-xl , .row-pill etc.
|
.bg-primary
.bg-danger
.bg-danger
.bg-dark
.bg-gray-100
.bg-warning
.bg-diff (as differentiator)
|
.bg-gradient-fake
.bg-gradient-primary
.bg-gradient-secondary
.bg-gradient-success
.bg-gradient-danger
.bg-gradient-warning
.bg-gradient-pink
.bg-gradient-indigo
.bg-gradient-purple
.bg-gradient-dark
.bg-gradient-light
.bg-gradient-radial-primary
.bg-gradient-radial-secondary
.bg-gradient-radial-success
.bg-gradient-radial-danger
.bg-gradient-radial-warning
.bg-gradient-radial-pink
.bg-gradient-radial-indigo
.bg-gradient-radial-purple
.bg-gradient-radial-dark
.bg-gradient-radial-light
.bg-gradient-linear-default
.bg-gradient-linear-primary
.bg-gradient-linear-success
.bg-gradient-linear-danger
.bg-gradient-linear-indigo
.bg-gradient-linear-purple
|
Gradient colors.Same as bootstrap backgrounds, but using gradients for a slightly better look..bg-gradient-fake require relative position (or .position-relative class)
|
.bg-gradient-primary
.bg-gradient-danger
.bg-gradient-danger
.bg-gradient-dark
Comparision using gradient fake
.bg-dark
.bg-gradnient-fake
.bg-gradient-radial-danger
.bg-gradient-radial-warning
.bg-gradient-radial-success
.bg-gradient-linear-default
.bg-gradient-linear-purple
.bg-gradient-linear-success
|
.bg-primary-soft
.bg-secondary-soft
.bg-success-soft
.bg-danger-soft
.bg-warning-soft
.bg-pink-soft
.bg-indigo-soft
.bg-purple-soft
.bg-dark-soft
|
Soft backgrounds.Nice soft looking backgrounds.
Looks good to also mix with borders:
Border width is set using utility classes: |
.bg-primary-soft
.bg-danger-soft
.bg-danger-soft
.bg-dark-soft
|
.bg-primary-light
.bg-secondary-light
.bg-success-light
.bg-danger-light
.bg-warning-light
.bg-pink-light
.bg-indigo-light
.bg-purple-light
.bg-dark-light
|
Light backgrounds.Similiar to soft backgrounds, best for section backgrounds. |
.bg-primary-light
.bg-danger-light
.bg-danger-light
.bg-dark-light
|
.bg-primary-hover
.bg-secondary-hover
.bg-success-hover
.bg-danger-hover
.bg-warning-hover
.bg-pink-hover
.bg-indigo-hover
.bg-purple-hover
.bg-dark-hover
.bg-primary-soft-hover
.bg-secondary-soft-hover
.bg-success-soft-hover
.bg-danger-soft-hover
.bg-warning-soft-hover
.bg-pink-soft-hover
.bg-indigo-soft-hover
.bg-purple-soft-hover
.bg-dark-soft-hover
|
Background color on hover.
Best mixed with
In adition, |
.bg-warning-hover .transition-bg-ease-150
.bg-danger-hover .transition-bg-ease-150
.bg-warning-soft-hover .transition-bg-ease-150
.bg-danger-soft-hover .transition-bg-ease-150
|
Class | Description | Quick Example |
---|---|---|
.bg-cover
|
Set an image as a cover to any block element.
You can mix it with overlay for a nice contrast by adding:
When using |
no overlay
|
.bg-blur
|
Blur background image - usually used with
Because the blur effect is applied to the entire container, when blur effect is needed, add a dedicated div with |
blur background
|
.bg-suprime
|
Suprime/remove white image background. Applied directly to image. Great way to improve existing ecommerce images giving that "luxury" look. Because is pure CSS, works for white image background only, at this time! Also, IE ignore this.
Container backgrounds: No
|
<div class="bg-light bg-gradient-radial-light p-3 text-center">
<img class="img-fluid bg-suprime" src="../demo.files/images/unsplash/honey-yanibel-minaya-cruz-pOVdqtwVjPM-unsplash.jpg" alt="...">
</div>
|