We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c050f0e + 73fafe3 commit 7e0b5c8Copy full SHA for 7e0b5c8
src/utils.ts
@@ -45,6 +45,12 @@ export async function normalizeVars(
45
const propertyName = value.match(CSS_VAR_FUNCTION_NOTATION)?.groups?.args;
46
if (propertyName) {
47
const cssVar = cssVars.find(cssVar => cssVar.property === propertyName);
48
+ if (cssVar?.color) {
49
+ return {
50
+ isColor: true,
51
+ value: cssVar?.color,
52
+ };
53
+ }
54
return await normalizeVars(cssVar?.value || "");
55
}
56
} else if (cssVars && SCSS_COLOR_INTERPOLATION.test(value)) {
0 commit comments