7 lines
238 B
JavaScript
7 lines
238 B
JavaScript
|
export default function colors(meta = {}) {
|
||
|
const { colors } = meta
|
||
|
return colors && Object.entries(colors)
|
||
|
.map(([name, [light, dark = light]]) => `--color-${name}-light:${light}; --color-${name}-dark:${dark};`)
|
||
|
.join(' ')
|
||
|
}
|