From 63567a4d7bc131c8641532c076c1f04c2d22c420 Mon Sep 17 00:00:00 2001 From: ray Date: Thu, 18 Feb 2021 14:17:09 +0000 Subject: [PATCH] fix defineHSL to include full hsl color --- src/postcss/mixins.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/postcss/mixins.js b/src/postcss/mixins.js index c6ee150..31befe4 100644 --- a/src/postcss/mixins.js +++ b/src/postcss/mixins.js @@ -6,7 +6,7 @@ const postcssMixins = { // TODO - untest defineHSL(mixin, name, hue, sat, light) { const obj = {}; - obj[name] = name; + obj[name] = `hsl(${hue}, ${sat}, ${light})`; // need to ensure hue is a string otherwise postcss (is it postcss?) appends // 'px' to the property's value. obj[`${name}__h`] = hue.toString();