Skip to content

Commit 318e2df

Browse files
committed
Added colored class and change README.md
1 parent 940fd13 commit 318e2df

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,11 @@ _2 ways of using devicon:_
4343

4444
#### Icons font
4545

46-
- Upload devicon.css and font files to your project
46+
- Upload devicon.min.css and font files to your project
47+
- Note: the `devicon.css` file is not the same as the `devicon.min.css`. It doesn't contain any colors or aliases.
4748

4849
```html
49-
<link rel="stylesheet" href="devicon.css">
50-
51-
<!-- if you want colored versions -->
52-
<link rel="stylesheet" href="devicon-colors.css">
50+
<link rel="stylesheet" href="devicon.min.css">
5351
```
5452

5553
- Add icon using `<i>` tag

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function createColorsCSS(deviconJson) {
107107
console.log(`This object doesn't have a font or a color: ${name}`);
108108
return "";
109109
}
110-
let cssClasses = fonts.map(font => `.devicon-${name}-${font}`);
110+
let cssClasses = fonts.map(font => `.devicon-${name}-${font}.colored`);
111111
return `${cssClasses.join(",")}{color: ${color}}`;
112112
}).join(" ");
113113

0 commit comments

Comments
 (0)