Obtenez la valeur des propriétés CSS JS

const style = getComputedStyle(element)

const backgroundColor = style.backgroundColor
console.log(backgroundColor) // rgb(0, 0, 0)

honeyCodedAsterisk