Skip to content

Commit c7eeddc

Browse files
Added a step to set up fonts
1 parent 2c4696f commit c7eeddc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,16 @@ $ cd my-project
1111
$ npm i --save-dev carbon-components-angular carbon-components @ngx-translate/core
1212
```
1313

14-
Then we need to include carbon-components in `src/styles.scss`:
14+
Then we need to include carbon-components in `src/styles.scss` and set our fonts path:
1515

1616
```scss
17+
$font-path: '/assets/fonts/';
1718
@import "~carbon-components/scss/globals/scss/styles.scss";
1819
```
1920

20-
And set up our translations in `src/app/app.module.ts`:
21+
And copy the fonts files from `node_modules/carbon-components/src/globals/fonts` into our app's `assets/fonts` folder.
22+
23+
Then set up our translations in `src/app/app.module.ts`:
2124

2225
```ts
2326
import { BrowserModule } from '@angular/platform-browser';

0 commit comments

Comments
 (0)