aiming to convert a dynamic JavaScript object into a Zod schema, specifically focusing on the colors property to create an enum of its values. The challenge lies in the dynamic nature of the config object, where the colors property can have varying keys and values.
const config = {
theme: {},
extend: {
colors: {
emerald: '#ff00ff',
lightred: '#f5424b'
}
// sizes:{
// }
},
components: []
};```