The following text colors are available:
- primary
- info
- danger
- success
- warning
- default
- secondary
- grey
- blue
- green
- orange
- purple
- pink
- brown
- yellow
- dark
- white
<span class="text-primary"> Hello! </span>
👉 You can modify their values, add new colors or remove a color by modifying $text-colors in scss/_variables.scss
You can lighten or darken them using the following variations:
- d1 to d4 for darker colors
- m1 to m3 for medium colors
- l1 to l5 for lighter colors
<span class="text-primary-d3"> Darker </span>
<span class="text-primary-m2"> Medium Light </span>
<span class="text-primary-l4"> Very Light </span>
👉 You can change the number of light/dark/medium colors and their intensity (lightness/darkness) in scss/_colors-text.scss and scss/_functions.scss
- In _colors-text.scss change
$dark-text-color-countetc for number of available light or dark variations - In _functions.scss Change values of
$dark-text-color-contrastsor$medium-text-color-contraststo increase or decrease lightness.
.my-element1 {
color: text-color('primary') //will be same color az text-primary
}
.my-element2 {
color: text-color('success', 'd1') //will be same color az text-success-d1
}
Dark and white text colors are also available with some transparency options:
- text-white-tp1 to text-white-tp4 for transparent white text
- text-dark-tp1 to text-dark-tp5 for transparent dark text
- opacity-1 to opacity-5 for opacity
<span class="text-white-tp1"> White with transparency </span>
<span class="text-dark-tp2"> Dark with transparency </span>
<span class="text-danger opacity-2"> Danger with opacity </span>
.text-bodyappliesbodytext color to an element.
The following background colors are available with bgc- prefix:
- primary
- info
- success
- danger
- warning
- default
- secondary
- purple
- pink
- brown
- yellow
- dark
- white
- light
- grey
- lightgrey
- blue
- green
- red
- orange
<div class="bgc-success text-white"> Hello! </div>
👉 You can modify their values or add new colors or remove a color by modifying $background-colors in scss/_variables.scss
You can lighten or darken background colors using the following variations:
- d1 to d3 for darker colors
- m1 to m4 for medium colors
- l1 to l5 for lighter colors
- tp1 to tp4 for more transparency
<div class="bgc-primary-d2"> Darker </div>
<div class="bgc-primary-m2"> Medium Light </div>
<div class="bgc-primary-l3"> Very Light </div>
<div class="bgc-primary-tp2"> With transparency </div>
You can change the number of light/dark/medium colors and their intensity (lightness/darkness) in scss/_colors-background.scss and scss/_functions.scss
- In _colors-background.scss change
$light-color-count,$medium-color-count, etc for number of available light or dark variations - In _functions.scss Change values of
$_lights,$_mediums,$_lightnessesto increase or decrease lightness.
background-color: bgc-color('success', 'l1')
For white and dark colors you can use -tp1 to -tp10 for more transparency. For black there is also tp11
<div class="bgc-black-tp11"> Very Light Black Background </div>
<div class="bgc-white-tp5"> Transparent White Background </div>
Light background colors can be applied on hover using bgc-h-* class name:
<div class="bgc-h-yellow-l2"> Light yellow background on hover </div>
<div class="bgc-h-blue-l1"> Light blue background on hover </div>
<div class="bgc-h-black-tp2"> Transparent Black Background on Hover</div>
The following three gradient backgrounds are available:
bgc-dark-gradbgc-light-gradbgc-white-grad
<div class="bgc-dark-grad"> Dark gradient background </div>
bg-nonesets background image value to nonebgc-currentsets background color to current text colorbrc-currentsets border color to current text colorbrc-inheritinherits border color from parentbgc-currentinherits background color from parent
You can have custom background colors for an element by using existing classes:
<div class="bgc-blue pos-rel">
<div class="bgc-purple-tp4 opacity-4 position-tl h-100 w-100">
<!-- An empty purple overlay element with `position: absolute` on `top:0; left: 0;` and `width: 100%; height: 100%` -->
<!-- It has transparency and mixes with background (blue) color to make a new color -->
</div>
<div class="pos-rel">
<!-- Content inside a `.pos-rel` element to appear above overlay -->
</div>
</div>
Border colors are similar to background colors but the prefix is brc- (short for border-color).
For example:
<div class="brc-grey-m4 border-1"> Lighter Grey Border </div>
<div class="brc-danger-tp3 border-t-2"> Transparent Danger Border on Top (2px) </div>
Medium border colors can be applied on hover using brc-h-* class name:
<div class="border-1 brc-h-yellow-m2"> Medium light yellow border color on hover </div>
<div class="border-t-3 brc-h-blue-m1"> Medium 3px top blue border color on hover </div>