This commit is contained in:
Ray Elliott 2021-01-05 11:39:25 +00:00
parent 42607e30c8
commit 1133e71b16
1 changed files with 3 additions and 3 deletions

View File

@ -9,9 +9,9 @@ function defineColor(mixin, name, hex) {
obj[name] = hex;
// need to convert hue to string otherwise postcss (is it postcss?) appends
// 'px' to the property's value.
obj[`${name}-h`] = hue.toString();
obj[`${name}-s`] = `${sat}%`;
obj[`${name}-l`] = `${light}%`;
obj[`${name}__h`] = hue.toString();
obj[`${name}__s`] = `${sat}%`;
obj[`${name}__l`] = `${light}%`;
return obj;
}