Background utilities are used to manipulate the appearance of the background of any element.

Background Color

Background color utilities follow the contextual classes defined in the color map and are named using the format .bg-{color} where color is any color defined in the color map. A transparent option is also available.

Background color utilities do not set the text color of an element, so in some cases you will need to use text utilities alongside a background color utility.

The demo below features elements with the various background color options that have been styled with padding and box shadow applied.


Background Gradient

Background gradient utilities use the background image property to overlay a solid color with a semi-transparent gradient. Simply append any background utility with the .bg-gradient class to acheive the gradient effect.


Background Pattern

Two options for stylish background patterns have been included with Material Admin Pro. The 'Doubs' and 'Waihou' patterns from Paaatterns have be written as utility classes to include these designs.


Related Links