Backgrounds

Use these classes to change a section's background style.

Attachment

bg--<attachment>

ClassProperty & Value
bg--fixedbackground-attachment: fixed
bg--localbackground-attachment: local
bg--scrollbackground-attachment: scroll

Color

Applies a background color based on color pallette

bg--<color>

ClassProperty & Value
bg--nonebackground-color: none
bg--whitebackground-color: $white
bg--white-alphabackground-color: $white-alpha
bg--blackbackground-color: $black
bg--black-alphabackground-color: $black-alpha
bg--graybackground-color: $gray
bg--gray-50background-color: $gray-50
bg--gray-100background-color: $gray-100
bg--gray-200background-color: $gray-200
bg--gray-300background-color: $gray-300
bg--gray-400background-color: $gray-400
bg--gray-500background-color: $gray-500
bg--gray-600background-color: $gray-600
bg--gray-700background-color: $gray-700
bg--gray-800background-color: $gray-800
bg--gray-900background-color: $gray-900
bg--redbackground-color: $red
bg--red-darkbackground-color: $red-dark
bg--red-lightbackground-color: $red-light
bg--orangebackground-color: $orange
bg--yellowbackground-color: $yellow
bg--greenbackground-color: $green
bg--tealbackground-color: $teal
bg--bluebackground-color: $blue
bg--blue-darkbackground-color: $blue-dark
bg--purplebackground-color: $purple
bg--beigebackground-color: $beige

Image

Applies background-size:cover and adds a black overlay at 0.7 opacity

bg--img

Overlay

Add a background opacity to pseudo element

bgo--<value>

ClassProperty & Value
bgo--nonebackground-color: none
bgo--10background-color: rgba(0, 0, 0, 0.10)
bgo--20background-color: rgba(0, 0, 0, 0.20)
bgo--30background-color: rgba(0, 0, 0, 0.30)
bgo--40background-color: rgba(0, 0, 0, 0.40)
bgo--50background-color: rgba(0, 0, 0, 0.50)
bgo--60background-color: rgba(0, 0, 0, 0.60)
bgo--70background-color: rgba(0, 0, 0, 0.70)
bgo--80background-color: rgba(0, 0, 0, 0.80)
bgo--90background-color: rgba(0, 0, 0, 0.90)

Position

Position a background image

bg--<position>

ClassProperty & Value
bg--ltbackground-position: left top
bg--lbackground-position: left center
bg--lbbackground-position: left bottom
bg--rtbackground-position: right top
bg--rbackground-position: right center
bg--rbbackground-position: right bottom
bg--tbackground-position: center top
bg--bbackground-position: center bottom

Repeat

bg--<repeat>

ClassProperty & Value
bg--repeatbackground-repeat: repeat
bg--no-repeatbackground-repeat: no-repeat
bg--repeat-xbackground-repeat: repeat-x
bg--repeat-ybackground-repeat: repeat-y

Size

bg--<size>

ClassProperty & Value
bg--autobackground-size: auto
bg--coverbackground-size: cover
bg--containbackground-size: contain