Skip to content

Commit

Permalink
add fontawesome via npm
Browse files Browse the repository at this point in the history
  • Loading branch information
creativenull committed Jul 23, 2019
1 parent 7267463 commit 378865a
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 44 deletions.
2 changes: 0 additions & 2 deletions html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
<meta charset="UTF-8">
<link rel="stylesheet" href="reset.css" type="text/css" media="screen" />
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Cantarell" />
<!-- TODO(#47): get fontawesome from npm -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous">
<link rel="stylesheet" href="main.css" type="text/css" media="screen" />
</head>
<body>
Expand Down
87 changes: 45 additions & 42 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"author": "",
"license": "MIT",
"dependencies": {
"@fortawesome/fontawesome-free": "^5.9.0",
"@types/markdown-it": "0.0.7",
"@types/moment": "^2.13.0",
"@types/moment-timezone": "^0.5.6",
Expand Down
19 changes: 19 additions & 0 deletions scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,25 @@ $green: #73c936;
$yellow: #ffdd33;
$red: #f43841;

// FontAwesome imports
$fa-font-path: './webfonts';
@import 'fontawesome';
@import 'brands';
@import 'regular';
@import 'solid';

// Example to add FontAwesome to an existing class
/*
.twitch {
@extend %fa-icon;
@extend .fab;
&:before {
content: fa-content($fa-var-twitch);
}
}
*/

body {
background: $background;
color: $foreground;
Expand Down

0 comments on commit 378865a

Please sign in to comment.