Utilities for controlling how a background image behaves when scrolling.
Utilities for controlling the bounding box of an element's background.
Utilities for controlling an element's background color.
export default {
theme: {
backgroundColor: theme => ({
...theme('colors'),
primary: '#3490dc',
secondary: '#ffed4a',
danger: '#e3342f',
}),
},
}
Utilities for controlling the opacity of an element's background color.
export default {
theme: {
extend: {
opacity: {
light: '0.15',
},
},
},
}
Utilities for controlling the position of an element's background image.
export default {
theme: {
backgroundPosition: {
'bottom': 'bottom',
'bottom-4': 'center bottom 1rem',
'center': 'center',
'left': 'left',
'left-bottom': 'left bottom',
'left-top': 'left top',
'right': 'right',
'right-bottom': 'right bottom',
'right-top': 'right top',
'top': 'top',
'top-4': 'center top 1rem',
},
},
}
Utilities for controlling the repetition of an element's background image.
Utilities for controlling the background size of an element's background image.
export default {
theme: {
backgroundSize: {
'auto': 'auto',
'cover': 'cover',
'contain': 'contain',
'50%': '50%',
'16': '4rem',
},
},
}
Utilities for controlling the background origin of an element's background image.