We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efa33b8 commit b1de9dcCopy full SHA for b1de9dc
1 file changed
gulpfile.js
@@ -101,13 +101,22 @@ function createColorsCSS(deviconJson) {
101
font: fonts
102
},
103
color,
104
+ aliases
105
} = fontObj;
106
107
if (fonts.length === 0 || typeof(color) !== "string") {
108
console.log(`This object doesn't have a font or a color: ${name}`);
109
return "";
110
}
111
+
112
+ // process the icons in the font attr
113
let cssClasses = fonts.map(font => `.devicon-${name}-${font}.colored`);
114
115
+ // process the icons in the aliases attr
116
+ aliases.forEach(aliasObj => {
117
+ cssClasses.push(`.devicon-${name}-${aliasObj["alias"]}.colored`);
118
+ });
119
120
return `${cssClasses.join(",")}{color: ${color}}`;
121
}).join(" ");
122
0 commit comments