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.
1 parent b732d33 commit 4921123Copy full SHA for 4921123
src/parse.js
@@ -103,6 +103,13 @@ export default function parse (str, {meta} = {}) {
103
Object.assign(meta, {formatId: "color", types});
104
}
105
106
+ if (colorSpec.id.startsWith("--") && !id.startsWith("--")) {
107
+ console.warn(`color(${id}) used instead of prefixed color(${colorSpec.id}).`);
108
+ }
109
+ if (id.startsWith("--") && !colorSpec.id.startsWith("--")) {
110
+ console.warn(`color(${id}) used instead of unprefixed color(${colorSpec.id}).`);
111
112
+
113
return {spaceId: space.id, coords, alpha};
114
115
0 commit comments