JS Obtenha todos os estilos de objeto

const htmlElement = document.getElementById('test')

const styles = window.getComputedStyle(htmlElement)
florinrelea