Skip to content

Elements:Colours Utils

Useful colour classes for making text and blocks stand out or fade in.

Text and background colours combined .text-bg-*

Bootstrap automatically defines the text contract colour (light or dark) based on the background colour.

.text-bg-primary
.text-bg-info
.text-bg-success
.text-bg-warning
.text-bg-danger
.text-bg-dark
.text-bg-light
.text-bg-green
.text-bg-red
.text-bg-blue
.text-bg-purple
.text-bg-pink
.text-bg-orange
.text-bg-brown
.text-bg-slate
.text-bg-olive
.text-bg-teal
.text-bg-charcoal
.text-bg-gray-200
.text-bg-gray-300
.text-bg-gray-400
.text-bg-gray-500
.text-bg-gray-600
.text-bg-gray-700
.text-bg-gray-800

Text Colours

Light text has background colour so it can be seen.

.text-primary
.text-info
.text-success
.text-warning
.text-danger
.text-dark
.text-light
.text-green
.text-red
.text-blue
.text-purple
.text-pink
.text-orange
.text-brown
.text-slate
.text-olive
.text-teal
.text-charcoal
.text-gray-200
.text-gray-300
.text-gray-400
.text-gray-500
.text-gray-600
.text-gray-700
.text-gray-800

Background Colours

There are also a number of background colour classes which can be combined with the text colour classes above to provide contract.

.bg-primary
.bg-info
.bg-success
.bg-warning
.bg-danger
.bg-dark
.bg-light
.bg-green
.bg-red
.bg-blue
.bg-purple
.bg-pink
.bg-orange
.bg-brown
.bg-slate
.bg-olive
.bg-teal
.bg-charcoal
.bg-gray-200
.bg-gray-300
.bg-gray-400
.bg-gray-500
.bg-gray-600
.bg-gray-700
.bg-gray-800

Text/Background Hover/Focus Colours

Have better control over element hover/focus backgrounds and text, these classes can be combined together and also support Background & Text Colour Opacity utils (below).

.bg-hover-COLOUR requires SASS variable $enable-hover-colours: true;

.bg-hover-primary
.bg-hover-info
.bg-hover-success
.bg-hover-warning
.bg-hover-danger
.bg-hover-dark
.bg-hover-light
.bg-hover-green
.bg-hover-red
.bg-hover-blue
.bg-hover-purple
.bg-hover-pink
.bg-hover-orange
.bg-hover-brown
.bg-hover-slate
.bg-hover-olive
.bg-hover-teal
.bg-hover-charcoal
.bg-hover-gray-200
.bg-hover-gray-300
.bg-hover-gray-400
.bg-hover-gray-500
.bg-hover-gray-600
.bg-hover-gray-700
.bg-hover-gray-800

.bg-focus-COLOUR requires SASS variable $enable-focus-colours: true;

.bg-focus-primary
.bg-focus-info
.bg-focus-success
.bg-focus-warning
.bg-focus-danger
.bg-focus-dark
.bg-focus-light
.bg-focus-green
.bg-focus-red
.bg-focus-blue
.bg-focus-purple
.bg-focus-pink
.bg-focus-orange
.bg-focus-brown
.bg-focus-slate
.bg-focus-olive
.bg-focus-teal
.bg-focus-charcoal
.bg-focus-gray-200
.bg-focus-gray-300
.bg-focus-gray-400
.bg-focus-gray-500
.bg-focus-gray-600
.bg-focus-gray-700
.bg-focus-gray-800

.text-hover-COLOUR requires SASS variable $enable-hover-colours: true;

.text-hover-primary
.text-hover-info
.text-hover-success
.text-hover-warning
.text-hover-danger
.text-hover-dark
.text-hover-light
.text-hover-green
.text-hover-red
.text-hover-blue
.text-hover-purple
.text-hover-pink
.text-hover-orange
.text-hover-brown
.text-hover-slate
.text-hover-olive
.text-hover-teal
.text-hover-charcoal
.text-hover-gray-200
.text-hover-gray-300
.text-hover-gray-400
.text-hover-gray-500
.text-hover-gray-600
.text-hover-gray-700
.text-hover-gray-800

.bg-focus-COLOUR requires SASS variable $enable-focus-colours: true;

Only works on focusable elements like links and form fields.

Combined Examples

Combing all these classes.


Background Colour Opacity

Control background colour opacity using the .bg-op-(1-9) classes for ultimate control over background colours.

.bg-primary

.bg-op-1
.bg-op-2
.bg-op-3
.bg-op-4
.bg-op-5
.bg-op-6
.bg-op-7
.bg-op-8
.bg-op-9
.bg-op-auto

.bg-info

.bg-op-1
.bg-op-2
.bg-op-3
.bg-op-4
.bg-op-5
.bg-op-6
.bg-op-7
.bg-op-8
.bg-op-9
.bg-op-auto

.bg-success

.bg-op-1
.bg-op-2
.bg-op-3
.bg-op-4
.bg-op-5
.bg-op-6
.bg-op-7
.bg-op-8
.bg-op-9
.bg-op-auto

.bg-warning

.bg-op-1
.bg-op-2
.bg-op-3
.bg-op-4
.bg-op-5
.bg-op-6
.bg-op-7
.bg-op-8
.bg-op-9
.bg-op-auto

.bg-danger

.bg-op-1
.bg-op-2
.bg-op-3
.bg-op-4
.bg-op-5
.bg-op-6
.bg-op-7
.bg-op-8
.bg-op-9
.bg-op-auto

.bg-dark

.bg-op-1
.bg-op-2
.bg-op-3
.bg-op-4
.bg-op-5
.bg-op-6
.bg-op-7
.bg-op-8
.bg-op-9
.bg-op-auto

.bg-light

.bg-op-1
.bg-op-2
.bg-op-3
.bg-op-4
.bg-op-5
.bg-op-6
.bg-op-7
.bg-op-8
.bg-op-9
.bg-op-auto

.bg-green

.bg-op-1
.bg-op-2
.bg-op-3
.bg-op-4
.bg-op-5
.bg-op-6
.bg-op-7
.bg-op-8
.bg-op-9
.bg-op-auto

.bg-red

.bg-op-1
.bg-op-2
.bg-op-3
.bg-op-4
.bg-op-5
.bg-op-6
.bg-op-7
.bg-op-8
.bg-op-9
.bg-op-auto

.bg-blue

.bg-op-1
.bg-op-2
.bg-op-3
.bg-op-4
.bg-op-5
.bg-op-6
.bg-op-7
.bg-op-8
.bg-op-9
.bg-op-auto

.bg-purple

.bg-op-1
.bg-op-2
.bg-op-3
.bg-op-4
.bg-op-5
.bg-op-6
.bg-op-7
.bg-op-8
.bg-op-9
.bg-op-auto

.bg-pink

.bg-op-1
.bg-op-2
.bg-op-3
.bg-op-4
.bg-op-5
.bg-op-6
.bg-op-7
.bg-op-8
.bg-op-9
.bg-op-auto

.bg-orange

.bg-op-1
.bg-op-2
.bg-op-3
.bg-op-4
.bg-op-5
.bg-op-6
.bg-op-7
.bg-op-8
.bg-op-9
.bg-op-auto

.bg-brown

.bg-op-1
.bg-op-2
.bg-op-3
.bg-op-4
.bg-op-5
.bg-op-6
.bg-op-7
.bg-op-8
.bg-op-9
.bg-op-auto

.bg-slate

.bg-op-1
.bg-op-2
.bg-op-3
.bg-op-4
.bg-op-5
.bg-op-6
.bg-op-7
.bg-op-8
.bg-op-9
.bg-op-auto

.bg-olive

.bg-op-1
.bg-op-2
.bg-op-3
.bg-op-4
.bg-op-5
.bg-op-6
.bg-op-7
.bg-op-8
.bg-op-9
.bg-op-auto

.bg-teal

.bg-op-1
.bg-op-2
.bg-op-3
.bg-op-4
.bg-op-5
.bg-op-6
.bg-op-7
.bg-op-8
.bg-op-9
.bg-op-auto

.bg-charcoal

.bg-op-1
.bg-op-2
.bg-op-3
.bg-op-4
.bg-op-5
.bg-op-6
.bg-op-7
.bg-op-8
.bg-op-9
.bg-op-auto

.bg-gray-200

.bg-op-1
.bg-op-2
.bg-op-3
.bg-op-4
.bg-op-5
.bg-op-6
.bg-op-7
.bg-op-8
.bg-op-9
.bg-op-auto

.bg-gray-300

.bg-op-1
.bg-op-2
.bg-op-3
.bg-op-4
.bg-op-5
.bg-op-6
.bg-op-7
.bg-op-8
.bg-op-9
.bg-op-auto

.bg-gray-400

.bg-op-1
.bg-op-2
.bg-op-3
.bg-op-4
.bg-op-5
.bg-op-6
.bg-op-7
.bg-op-8
.bg-op-9
.bg-op-auto

.bg-gray-500

.bg-op-1
.bg-op-2
.bg-op-3
.bg-op-4
.bg-op-5
.bg-op-6
.bg-op-7
.bg-op-8
.bg-op-9
.bg-op-auto

.bg-gray-600

.bg-op-1
.bg-op-2
.bg-op-3
.bg-op-4
.bg-op-5
.bg-op-6
.bg-op-7
.bg-op-8
.bg-op-9
.bg-op-auto

.bg-gray-700

.bg-op-1
.bg-op-2
.bg-op-3
.bg-op-4
.bg-op-5
.bg-op-6
.bg-op-7
.bg-op-8
.bg-op-9
.bg-op-auto

.bg-gray-800

.bg-op-1
.bg-op-2
.bg-op-3
.bg-op-4
.bg-op-5
.bg-op-6
.bg-op-7
.bg-op-8
.bg-op-9
.bg-op-auto

Border Colours

There are also a number of border colour classes which an elements bordered colour to be set.

You can set thicker borders using the border-w-(2-5) classes.

You can also remove borders using the border-0 and border-SIDE-0 classes.

.border-primary
.border-info
.border-success
.border-warning
.border-danger
.border-dark
.border-light
.border-green
.border-red
.border-blue
.border-purple
.border-pink
.border-orange
.border-brown
.border-slate
.border-olive
.border-teal
.border-charcoal

Border Colour Opacity

Control border colour opacity using the .border-op-(1-9) classes for ultimate control over border colours.

.border-primary

.border-op-1
.border-op-2
.border-op-3
.border-op-4
.border-op-5
.border-op-6
.border-op-7
.border-op-8
.border-op-9

.border-info

.border-op-1
.border-op-2
.border-op-3
.border-op-4
.border-op-5
.border-op-6
.border-op-7
.border-op-8
.border-op-9

.border-success

.border-op-1
.border-op-2
.border-op-3
.border-op-4
.border-op-5
.border-op-6
.border-op-7
.border-op-8
.border-op-9

.border-warning

.border-op-1
.border-op-2
.border-op-3
.border-op-4
.border-op-5
.border-op-6
.border-op-7
.border-op-8
.border-op-9

.border-danger

.border-op-1
.border-op-2
.border-op-3
.border-op-4
.border-op-5
.border-op-6
.border-op-7
.border-op-8
.border-op-9

.border-dark

.border-op-1
.border-op-2
.border-op-3
.border-op-4
.border-op-5
.border-op-6
.border-op-7
.border-op-8
.border-op-9

.border-light

.border-op-1
.border-op-2
.border-op-3
.border-op-4
.border-op-5
.border-op-6
.border-op-7
.border-op-8
.border-op-9

.border-green

.border-op-1
.border-op-2
.border-op-3
.border-op-4
.border-op-5
.border-op-6
.border-op-7
.border-op-8
.border-op-9

.border-red

.border-op-1
.border-op-2
.border-op-3
.border-op-4
.border-op-5
.border-op-6
.border-op-7
.border-op-8
.border-op-9

.border-blue

.border-op-1
.border-op-2
.border-op-3
.border-op-4
.border-op-5
.border-op-6
.border-op-7
.border-op-8
.border-op-9

.border-purple

.border-op-1
.border-op-2
.border-op-3
.border-op-4
.border-op-5
.border-op-6
.border-op-7
.border-op-8
.border-op-9

.border-pink

.border-op-1
.border-op-2
.border-op-3
.border-op-4
.border-op-5
.border-op-6
.border-op-7
.border-op-8
.border-op-9

.border-orange

.border-op-1
.border-op-2
.border-op-3
.border-op-4
.border-op-5
.border-op-6
.border-op-7
.border-op-8
.border-op-9

.border-brown

.border-op-1
.border-op-2
.border-op-3
.border-op-4
.border-op-5
.border-op-6
.border-op-7
.border-op-8
.border-op-9

.border-slate

.border-op-1
.border-op-2
.border-op-3
.border-op-4
.border-op-5
.border-op-6
.border-op-7
.border-op-8
.border-op-9

.border-olive

.border-op-1
.border-op-2
.border-op-3
.border-op-4
.border-op-5
.border-op-6
.border-op-7
.border-op-8
.border-op-9

.border-teal

.border-op-1
.border-op-2
.border-op-3
.border-op-4
.border-op-5
.border-op-6
.border-op-7
.border-op-8
.border-op-9

.border-charcoal

.border-op-1
.border-op-2
.border-op-3
.border-op-4
.border-op-5
.border-op-6
.border-op-7
.border-op-8
.border-op-9

Awesome Features

Beginner + developer friendly
Free Lifetime Upgrades
Fully Responsive
About Us

Making the web a prettier place one template at a time! We make beautiful, quality, responsive Drupal & web templates!

Find out more
Contact Us

019223 8092344

info@themelize.me

Sunshine House, Sunville. SUN12 8LU.

Colour Options

AppStrap comes with 11 pre-defined colour options which are shown below.

You can easily switch colours doing one of the following:

  1. via the config colourScheme option
  2. or via ./src/scss/_variables.scss defining a preset colour or by defining your own.


Cookies are NOT enabled so colour selection is not persistent.

To main homepage

To admin homepage

To intro page