JSFiddle - React, Tailwind, and code Playground
by mrtoxas
JavaScript
const colors = {
red: '11111',
black: '22222',
}
let total = Object.entries(colors).reduce((acc, curVal) => {
acc.push(`--color-${curVal[0]}: ${curVal[1]}`);
}, [])
console.log('ddddd');