File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments