smelte
smelte copied to clipboard
CSS Variables are not supported in the rollup config colors section
When configuring the color palette I'd like to be able to configure the palette using css variables so that I have easier runtime control. It looks like the color.js in the utils section attempts to convert the var function into a hex value which produces a #000 color instead. Would it be possible to have an exclusion for this during the buildPalette function?
smelte({
tailwind: {
colors: {
primary: "var(--color-primary)"
}
}
})
A wonderful library well done!
Please find a proposed solution at https://github.com/matyunya/smelte/pull/164