smelte icon indicating copy to clipboard operation
smelte copied to clipboard

CSS Variables are not supported in the rollup config colors section

Open matt-psaltis opened this issue 4 years ago • 1 comments

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!

matt-psaltis avatar Jul 28 '20 14:07 matt-psaltis

Please find a proposed solution at https://github.com/matyunya/smelte/pull/164

csaltos avatar Sep 22 '20 09:09 csaltos