/* global coreui */ /** * -------------------------------------------------------------------------- * CoreUI Boostrap Admin Template colors.js * Licensed under MIT (https://github.com/coreui/coreui-free-bootstrap-admin-template/blob/main/LICENSE) * -------------------------------------------------------------------------- */ for (const element of document.querySelectorAll('.theme-color')) { const color = getComputedStyle(element, null).getPropertyValue('background-color') const table = document.createElement('table') table.classList.add('w-100') table.innerHTML = `
HEX: ${coreui.Utils.rgbToHex(color)}
RGB: ${color}
` element.parentNode.append(table) }