Skip to content

Colors

Vue MDBootstrap provides color classes that follow commonly used colors. Each color might exposed various tones varying from bright to dark. This will aid you in creating an inviting and color-consistent design. When using Vue MDBootstrap components, these variants refers to their color-name, rather than by the underlying CSS classname.

Updated in v2.2.0

Applying Color

Background color

Background color can be applied to any html element by using the CSS classname bg-{color-name}.

Inner text.

Border color

Border color can be applied to any html element by using the CSS classname border-{color-name}.

Inner text.

Text color

Text color can be applied to any html element by using the CSS classname text-{color-name}.

Lorem ipsum dolor sit amet, consectetur adipisicing elit.

Impedit architecto, totam hic sunt eum odio, deleniti.

Similique ex, expedita minus assumenda a magni beatae dolorum itaque.

Contextual Colors

default
primary
secondary
success
danger
warning
info
light
dark

INFO

Since v2.2.0, Vue MDBootstrap doesn't provides color variants in its core bundle (dist/bundle-core.css and dist/bundle-core.min.css) to reduce the file size. The component color variants are distributed in dist/theme-light.css and dist/theme-dark.css. This will give developers the freedom to produce their own theme colors.

Use the following code to get the distribution:

ts
// Import components core css stylesheet
import 'vue-mdbootstrap/styles';

// Import theme color for light theme
import 'vue-mdbootstrap/theme-light';

// Import theme color for dark theme
import 'vue-mdbootstrap/theme-dark';

Additional Colors

Since v2.2.0, these color variants are distributed in dist/decorator-colors.css and dist/decorator-colors.min.css.

Use the following code to get the distribution:

ts
// Optional, import style color decorators
import 'vue-mdbootstrap/styles-color';

Main Colors

red
deep-orange
orange
amber
yellow
lime
light-green
green
dark-green
blue-green
teal
cyan
light-blue
blue
dark-blue
indigo
deep-purple
purple
pink
unique
midnight-haze
blue-grey
gray
neutral

Material Colors

default-color
default-color-dark
primary-color
primary-color-dark
secondary-color
secondary-color-dark
info-color
info-color-dark
warning-color
warning-color-dark
danger-color
danger-color-dark
success-color
success-color-dark
blue-green-color
blue-green-color-dark
elegant-color
elegant-color-dark
stylish-color
stylish-color-dark
special-color
special-color-dark
unique-color
unique-color-dark

Full Colors

 
50
100
200
300
400
500
600
700
800
900
950
Red
 
 
 
 
 
 
 
 
 
 
 
Deep Orange
 
 
 
 
 
 
 
 
 
 
 
Orange
 
 
 
 
 
 
 
 
 
 
 
Amber
 
 
 
 
 
 
 
 
 
 
 
Yellow
 
 
 
 
 
 
 
 
 
 
 
Lime
 
 
 
 
 
 
 
 
 
 
 
Light Green
 
 
 
 
 
 
 
 
 
 
 
Green
 
 
 
 
 
 
 
 
 
 
 
Teal
 
 
 
 
 
 
 
 
 
 
 
Cyan
 
 
 
 
 
 
 
 
 
 
 
Light Blue
 
 
 
 
 
 
 
 
 
 
 
Blue
 
 
 
 
 
 
 
 
 
 
 
Indigo
 
 
 
 
 
 
 
 
 
 
 
Deep Purple
 
 
 
 
 
 
 
 
 
 
 
Purple
 
 
 
 
 
 
 
 
 
 
 
Pink
 
 
 
 
 
 
 
 
 
 
 
Midnight Haze
 
 
 
 
 
 
 
 
 
 
 
Blue Grey
 
 
 
 
 
 
 
 
 
 
 
Gray
 
 
 
 
 
 
 
 
 
 
 
Neutral
 
 
 
 
 
 
 
 
 
 
 

TIP

These color variants can only be applied as the background color of an html element, see: applying background color above.

Accent Colors

Red
accent-100
accent-200
accent-300
accent-400
Deep Orange
accent-100
accent-200
accent-300
accent-400
Orange
accent-100
accent-200
accent-300
accent-400
Amber
accent-100
accent-200
accent-300
accent-400
Yellow
accent-100
accent-200
accent-300
accent-400
Lime
accent-100
accent-200
accent-300
accent-400
Light Green
accent-100
accent-200
accent-300
accent-400
Green
accent-100
accent-200
accent-300
accent-400
Teal
accent-100
accent-200
accent-300
accent-400
Cyan
accent-100
accent-200
accent-300
accent-400
Light Blue
accent-100
accent-200
accent-300
accent-400
Blue
accent-100
accent-200
accent-300
accent-400
Indigo
accent-100
accent-200
accent-300
accent-400
Deep Purple
accent-100
accent-200
accent-300
accent-400
Purple
accent-100
accent-200
accent-300
accent-400
Pink
accent-100
accent-200
accent-300
accent-400

TIP

These color variants can only be applied as the background color of an html element, see: applying background color above.

RGBA Colors

The Main colors can also be used to produce an RGBA background color.

rgba-blue-slight
rgba-blue-light
rgba-blue-strong
rgba-red-slight
rgba-red-light
rgba-red-strong

TIP

These color variants can only be applied as the background color of an html element, see: applying background color above.

Released under the BSD-3-Clause License.