Skip to content

Commit

Permalink
feat: make google fonts local to app
Browse files Browse the repository at this point in the history
  • Loading branch information
BePo65 committed Feb 2, 2023
1 parent d208a4f commit 7a9fdb2
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2 deletions.
22 changes: 22 additions & 0 deletions package-lock.json

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

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
"@angular/platform-browser": "^15.1.2",
"@angular/platform-browser-dynamic": "^15.1.2",
"@angular/router": "^15.1.2",
"material-icons": "^1.13.1",
"roboto-fontface": "^0.10.0",
"rxjs": "^7.8.0",
"tslib": "^2.4.1",
"zone.js": "^0.12.0"
Expand Down
2 changes: 0 additions & 2 deletions projects/mat-tristate-checkbox-demo/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
<body class="mat-typography">
<app-root></app-root>
Expand Down
6 changes: 6 additions & 0 deletions projects/mat-tristate-checkbox-demo/src/styles.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Fonts for material
@use "roboto-fontface/css/roboto/sass/roboto-fontface" with (
$roboto-font-path: "~roboto-fontface/fonts"
);
@use "material-icons/iconfont/material-icons";

@import url("~@angular/material/prebuilt-themes/indigo-pink.css");

html,
Expand Down

0 comments on commit 7a9fdb2

Please sign in to comment.