Object.keys(tailwindColors) .filter( k => k !== 'inherit' && k !== 'current' && k !== 'transparent' && k !== 'default' && k !== 'black' && k !== 'white' ) .forEach(name => { const values = [] Object.keys(tailwindColors[name]) .filter(key => key === '500') .forEach(key => { values.push(tailwindColors[name][key]) }) console.log({ name, values })
// get only colors with the key 500.
// const colors = values
// console.log(colors)
})