Background
../variables/_colors.scss
file.
../variables/_colors.scss
file.
The adaptive grayscale is a custom feature in SB Admin Pro. The grayscale is formed by setting a value to the
$grayscale-base-hue
variable in the
../variables/_colors.scss
file. The base hue, set to blue by default, is then blended with a true black and white grayscale to make a slightly tinted grayscale that is used throughout the theme.
You can use the above utilty classes as background colors for your elements, and you can modify the adaptive grayscale within the
../variables/_colors.scss
file.
Background Image (Cover):
.bg-img-cover(style='background-image: url("path/to/image")')
| ...
.bg-img-cover
utility along with a background image set using inline CSS and the background image will cover the element it is used on.
Background Image (Repeat):
.bg-img-repeat(style='background-image: url("path/to/pattern")')
| ...
.bg-img-repeat
utility along with a background pattern set using inline CSS and the background image will repeat across the element it is used on. Use a background color utility along with it to add a background color to accompany the pattern.
.bg-img-cover.overlay(style='background-image: url("path/to/image")')
| ...
.overlay
utility along with a background image to add an overlay to an element. The default overlay adds a 50% dark overlay to the element. There are color and opacity options available as well.
//- 10% Overlay
.bg-img-cover.overlay.overlay-10(style='background-image: url("path/to/image")')
.z-1
| ...
//- 20% Overlay
.bg-img-cover.overlay.overlay-20(style='background-image: url("path/to/image")')
.z-1
| ...
//- 30% Overlay
.bg-img-cover.overlay.overlay-30(style='background-image: url("path/to/image")')
.z-1
| ...
//- 40% Overlay
.bg-img-cover.overlay.overlay-40(style='background-image: url("path/to/image")')
.z-1
| ...
//- 50% Overlay
.bg-img-cover.overlay.overlay-50(style='background-image: url("path/to/image")')
.z-1
| ...
//- 60% Overlay
.bg-img-cover.overlay.overlay-60(style='background-image: url("path/to/image")')
.z-1
| ...
//- 70% Overlay
.bg-img-cover.overlay.overlay-70(style='background-image: url("path/to/image")')
.z-1
| ...
//- 80% Overlay
.bg-img-cover.overlay.overlay-80(style='background-image: url("path/to/image")')
.z-1
| ...
//- 90% Overlay
.bg-img-cover.overlay.overlay-90(style='background-image: url("path/to/image")')
.z-1
| ...
.overlay
utility along with an opacity utility, 10-90, to change the opacity of the overlay.
//- Primary Overlay
.bg-img-cover.overlay.overlay-primary(style='background-image: url("path/to/image")')
.z-1
| ...
//- Secondary Overlay
.bg-img-cover.overlay.overlay-secondary(style='background-image: url("path/to/image")')
.z-1
| ...
//- Success Overlay
.bg-img-cover.overlay.overlay-success(style='background-image: url("path/to/image")')
.z-1
| ...
//- Info Overlay
.bg-img-cover.overlay.overlay-info(style='background-image: url("path/to/image")')
.z-1
| ...
//- Warning Overlay
.bg-img-cover.overlay.overlay-warning(style='background-image: url("path/to/image")')
.z-1
| ...
//- Danger Overlay
.bg-img-cover.overlay.overlay-dagner(style='background-image: url("path/to/image")')
.z-1
| ...
.overlay
utility along with an overlay color utility, for example,
.overlay-primary
. You can also use overlay colors that are part of the extended color system, like
.overlay-red
.
.bg-img-cover.overlay.overlay-70.overlay-primary(style='background-image: url("path/to/image")')
| ...
.overlay
utility with
.overlay-70
and
.overlay-primary
.